Skip to content

Code of the paper "Efficient-End-to-end-Diffusion-Model-for-Onestep-SAR-to-Optical-Translation"

Notifications You must be signed in to change notification settings

DeepSARRS/E3Diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Efficient End-to-end Diffusion Model for Onestep SAR-to-Optical Translation

Brief

This is an official implementation of Efficient End-to-end Diffusion Model for Onestep SAR-to-Optical Translation (E3Diff) by PyTorch.

  • [√] released dataset and weights
  • [√] log / logger
  • [√] metrics evaluation
  • [√] multi-gpu support
  • [√] resume training / pretrained model
  • [√] [Weights and Biases Logging]
  • [√] 1/multi steps training and sampling

Pipeline

vis

Result of SEN12 Dataset

vis

Result of SAR2EO Dataset

vis

Usage

Environment

  • create a new environment:
$ conda env create -f environment.yml
$ cd SoftPool/pytorch
$ make install
--- (optional) ---
$ make test

Training:

Download the dataset from here, and train your model using the following commands (about 1 week using 2 A6000 48GB GPU):

# stage 1 training for sen12 dataset
python main.py --config 'config/SEN12_256_s1.json'

# stage 2 training for sen12 dataset
python main.py --config 'config/SEN12_256_s2_1step.json'

Also, you might be willing to download the well-trained model of SEN12 from here, and test the model:

# stage 2 validation for sen12 dataset
python main.py --config 'config/SEN12_256_s2_test.json' --phase 'val'  --seed 1

🚀 Weights and Biases 🎉

The library now supports experiment tracking, model checkpointing and model prediction visualization with Weights and Biases. You will need to install W&B and login by using your access token.

pip install wandb

# get your access token from wandb.ai/authorize
wandb login

Acknowledgements

Our work is mainly based on the following projects:

Citation

If you find the project useful, please cite the papers:

@ARTICLE{10767752,
  author={Qin, Jiang and Zou, Bin and Li, Haolin and Zhang, Lamei},
  journal={IEEE Geoscience and Remote Sensing Letters}, 
  title={Efficient End-to-End Diffusion Model for One-step SAR-to-Optical Translation}, 
  year={2024},
  volume={},
  number={},
  pages={1-1},
  doi={10.1109/LGRS.2024.3506566}}

@article{qin2024conditional,
  title={Conditional Diffusion Model with Spatial-Frequency Refinement for SAR-to-Optical Image Translation},
  author={Qin, Jiang and Wang, Kai and Zou, Bin and Zhang, Lamei and van de Weijer, Joost},
  journal={IEEE Transactions on Geoscience and Remote Sensing},
  year={2024},
  publisher={IEEE}
}

About

Code of the paper "Efficient-End-to-end-Diffusion-Model-for-Onestep-SAR-to-Optical-Translation"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published