Phaseformer
Phase-based Attention Mechanism for Underwater Image Restoration and Beyond
Install / Use
/learn @Mdraqibkhan/PhaseformerREADME
Evaluation
To evaluate the model on different datasets using the provided checkpoints and sample degraded images.
Dataset and Checkpoint Structure
- Sample degraded images for testing: Available in
dataset/dataset_name/. - Checkpoints for evaluation: Provided in
checkpoints/dataset-name/. - Results storage: After successful execution, the results will be saved in the
results/dataset-name/folder.
Folder Overview
├── dataset
│ ├── UIEB
│ ├── U-45
│ ├── SQUID
│ ├── UCCS
│ ├── UFO-120
│ ├── Low_light
├── checkpoints
│ ├── UIEB
│ ├── UFO-120
│ ├── Low_light
├── results
│ ├── UIEB
│ ├── U-45
│ ├── SQUID
│ ├── UCCS
│ ├── UFO-120
│ ├── Low_light
Running the Evaluation
To evaluate the model on different datasets, follow the instructions below for each specific dataset:
UIEB Dataset Evaluation
Run the following command to evaluate the model on the UIEB dataset:
python test.py --dataset datasets/UIEB/ --checkpoints_path /checkpoints/UIEB/ --save_path Results/UIEB
U-45 Dataset Evaluation
Run the following command to evaluate the model on the U-45 dataset:
python test.py --dataset dataset/U-45/ --checkpoints_path /checkpoints/UIEB/ --save_path Results/U-45
SQUID Dataset Evaluation
Run the following command to evaluate the model on the SQUID dataset:
python test.py --dataset dataset/SQUID/ --checkpoints_path /checkpoints/UIEB/ --save_path Results/SQUID
UCCS Dataset Evaluation
Run the following command to evaluate the model on the UCCS dataset:
python test.py --dataset dataset/UCCS/ --checkpoints_path /checkpoints/UIEB/ --save_path Results/UCCS
UFO-120 Dataset Evaluation
Run the following command to evaluate the model on the UCCS dataset:
python test.py --dataset dataset/UFO-120/ --checkpoints_path /checkpoints/UFO-120/ --save_path Results/UFO-120
Low-light Dataset Evaluation
Run the following command to evaluate the model on the UCCS dataset:
python test.py --dataset dataset/UCCS/ --checkpoints_path /checkpoints/Low_light/ --save_path Results/Low_light
Traing
- Structure of data for training should be like
uw_data/ # here uw_data can be any underwater datsets folder like UIEB,UFO-120 etc.
├── train/
│ ├── a/ # Input images
│ └── b/ # Reference (ground truth) images
└── test/
├── a/ # Input images
└── b/ # Reference (ground truth) images
- run
pyhthon train.py
Citation
If you find this work helpful, please reference it as follows:
@article{khan2024phaseformer,
title={Phaseformer: Phase-based Attention Mechanism for Underwater Image Restoration and Beyond},
author={Khan, MD and Negi, Anshul and Kulkarni, Ashutosh and Phutke, Shruti S and Vipparthi, Santosh Kumar and Murala, Subrahmanyam},
journal={arXiv preprint arXiv:2412.01456},
year={2024}
}
Acknowledgements
Special thanks to the awesome repositories UIPTA and Spectroformer, which made this project possible.
Related Skills
node-connect
331.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
331.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.5kCommit, push, and open a PR
