SpectraDiff: Enhancing the Realism and Physical Consistency of Infrared Image Translation with Semantic Guidance
- SpectraDiff Model Pipeline
- Sample Train/Inference
- Metrics (PSNR, SSIM, FID, LPIPS, DISTS)
pip install -r requirements.txt| Dataset | Safetensors & Configuration |
|---|---|
| FLIR | Google Drive |
| FMB | Google Drive |
| MFNet | Google Drive |
| RANUS | Google Drive |
| IDD-AW | Google Drive |
For segmentation: https://github.com/IDEA-Research/Grounded-Segment-Anything
| Dataset | URL |
|---|---|
| FLIR | URL |
| FMB | URL |
| MFNet | URL |
| RANUS | URL |
| IDD-AW | URL |
The config_base.yaml file contains important settings for both training and testing.
Make sure to review and modify this file if you’re using custom data or want to alter the network structure.
Please refer to the provided configuration file and update the data root in the data section.
- Navigate to the UNET/trainer folder
- Run one of the following commands:
python train.pyor
accelerate launch train.py- Navigate to the UNET/tester folder
- Modify the configuration path and safetensors path in test.py
- Run the following command:
python test.py