- We propose an attention-guided UNet leveraging spatial/channel attention and feature pyramid integration to correct color and restore details in underwater and also Enhansing the resolution of any Underwater Image using GANs.
- Code will be updated once the paper is published :)
- ✨UFPN
- ✨ESRGAN
- 🐳ESRGAN Training
- 🐳Testing UFPN+ESRGAN
- The "experiments” folder and "checkpoint_trial_37” has been uploaded on huggingface.co as the files were larger. The model can be downloaded via the following link, access for the model will be automatically granted once requested! https://huggingface.co/joshbaradia/esrgan_240000
- 🐳ESRGAN Training
We propose an attention-guided UNet leveraging spatial/channel attention and feature pyramid integration to correct color and restore details in underwater and also Enhansing the resolution of any Underwater Image using GANs.
Code will be updated once the paper is published :)
✨UFPN
🐳UFPN Training
Will be updated once the paper gets published. Our paper will be published in IEEE Xplore Library
✨ESRGAN
Enhancing images upto 4x times. Using UFPN output images as input to our ESRGAN model.
🐳ESRGAN Training
Make sure that all the dependencies are satisfield use requirements.txt file to load the required dependencies.
pip install -r requirements.txt
- Use the file
/options/train_test_dataset_4x.ymlto Fine-Tune the ESRGAN model which isRRDB_ESRGAN_x4.pthmodel. - The new fine-tuned model gets saved.
- You can find the model in
experiments/pretrained_models/folder.
🐳Testing UFPN+ESRGAN
Go to https://github.com/JoshBaradia/ML-PIE
Using our best UFPN model checkpoint_trial_37.pth and net_g_240000.pth
- Run the
test_test.pypython script. The UFPN model takes input, which are the Low Resolution-Degraded images from/testrun_enetfolder and the script saves it in/inputsfolder. - Then our testing script
inference_realesrgan.pyuses our ESRGAN model, takes input images from the/inputsfolder which now has enhanced images and saves it in/resultsfolder. - Thus the
/resultsfolder contains enhanced-super-resolution images.
python test_test.py; python inference_realesrgan.py --model_path experiments/pretrained_models/net_g_240000.pth --input inputs
The "experiments” folder and "checkpoint_trial_37” has been uploaded on huggingface.co as the files were larger. The model can be downloaded via the following link, access for the model will be automatically granted once requested! https://huggingface.co/joshbaradia/esrgan_240000
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support