Saturn-He/DOGAN
关于
Official PyTorch implementation of DOGAN: DINO-based optical-prior-driven GAN for SAR-to-optical image translation (IEEE TGRS 2025).
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文DOGAN
DINO-Based Optical-Prior-Driven GAN
for SAR-to-Optical Image Translation
IEEE Transactions on Geoscience and Remote Sensing · 2025
Jingfei He†, Liang Chen†, Hao Shi, Yuhang Chen, Jingyi Yang, Wei Li
† Equal contribution
Overview · Visual Results · Setup · Training & Inference · Evaluation · Citation
🔍 Overview
DOGAN transfers optical priors from a pretrained DINO model into a SAR-to-optical translation GAN. During training, a frozen DINO backbone and lightweight adapters provide multiscale optical features that guide the generator through domain alignment. At inference, the trained generator translates SAR images into optical-like images.
Training framework. Optical priors guide the generator at multiple feature scales.
| Component | Role |
|---|---|
| DOE — DINO-based Optical-prior Extraction | Extracts multiscale optical priors from a pretrained DINO backbone. |
| SOA — Stacked Optical-Aware adapter | Adapts optical representations to remote sensing while keeping DINO frozen. |
| SO-MDA — SAR-optical Multi-scale Domain Alignment | Aligns optical and translation features using L1 and MK-MMD losses. |
Inference framework. The generator performs SAR-to-optical translation without the optical-prior extraction branch.
🖼️ Visual Results
Qualitative comparisons from the paper on SAR2Opt and SEN1-2. Click each figure to inspect the original resolution. These are the paper's results, not outputs of a new run of this release.
SAR2Opt
This repository provides training, inference, and image-quality evaluation code.
🛠️ Setup
Use Python 3.10. Install PyTorch 2.1 and torchvision 0.16 for your CUDA version, then run:
pip install -r requirements.txt
Download the DINO ViT-S/16 weights to pretrained_dino/dino_deitsmall16_pretrain.pth for training. The training code can download the torchvision ResNet-50 weights on first use. For inference supply a trained generator checkpoint under checkpoints/DOGAN/200_net_G_trans.pth, or use the checkpoint produced by the training command below.
Data and commands
Provide your own paired SAR and optical images. Put SAR images in trainA/ and testA/, and optical targets in trainB/ and testB/. Paired images must have matching relative filenames.
paired_dataset/
├── trainA/ # SAR training images
├── trainB/ # Paired optical training images
├── testA/ # SAR test images
└── testB/ # Paired optical test images
python scripts/run_dogan.py --mode train --dataroot /path/to/paired_dataset
python scripts/run_dogan.py --mode test --dataroot /path/to/paired_dataset
Run from the repository root. By default, training uses 256-pixel crops and testing processes all pairs in the supplied test folders. Use --num_test to set an optional test limit. To use the 512-pixel preprocessing profile, pass --config configs/crop512.json to both commands and use the corresponding DOGAN_512 checkpoint and output folders.
📊 Evaluation
Inference writes images under results/DOGAN/test_200/images/. Run the six paper image-quality metrics separately:
python evaluate.py --gt /path/to/paired_dataset/testB \
--pred results/DOGAN/test_200/images \
--output results/DOGAN/metrics.json
The evaluator matches GT and predictions by stem after removing _fake_B from the prediction name. Set --pred-suffix "" if the stems already match. Use --check-pairs to check alignment. By default it evaluates at the native resolution. Set --resize WIDTH HEIGHT for image pairs requiring common dimensions.
The evaluator reports PSNR, SSIM, CW-SSIM, RMSE, LPIPS and SAM. PSNR defaults to the legacy PIL luminance convention. Select --psnr-color rgb to measure RGB PSNR. SSIM and RMSE operate on RGB at an intensity range of 0–255. CW-SSIM uses pyssim 0.7. LPIPS uses AlexNet with spatial averaging, and SAM uses the legacy image-similarity-measures implementation. Resizing applies to all six metrics when requested. Scores on historical splits depend on the exact files, preprocessing and checkpoint used.
📖 Citation
If you use DOGAN in your research, please cite our paper:
J. He, L. Chen, H. Shi, Y. Chen, J. Yang, and W. Li, “DOGAN: DINO-Based Optical-Prior-Driven GAN for SAR-to-Optical Image Translation,” IEEE Transactions on Geoscience and Remote Sensing, vol. 63, pp. 1–16, 2025. DOI: 10.1109/TGRS.2025.3606979.
BibTeX
Copy the entry below into your LaTeX bibliography, or download DOGAN.bib. Cite it with \cite{he2025dogan}.
@article{he2025dogan,
author = {He, Jingfei and Chen, Liang and Shi, Hao and Chen, Yuhang and Yang, Jingyi and Li, Wei},
title = {{DOGAN}: {DINO}-Based Optical-Prior-Driven {GAN} for {SAR}-to-Optical Image Translation},
journal = {IEEE Transactions on Geoscience and Remote Sensing},
year = {2025},
volume = {63},
pages = {1--16},
doi = {10.1109/TGRS.2025.3606979},
url = {https://doi.org/10.1109/TGRS.2025.3606979}
}
Acknowledgments
The implementation builds on Parallel-GAN, CycleGAN and pix2pix, and DINOv2. Code derived from CycleGAN and pix2pix is used under their BSD license, reproduced in LICENSES/CycleGAN-pix2pix-BSD.txt; see the other upstream projects for their terms and notices.
We thank the authors for making their code publicly available.
🔗 Our Related Projects
Explore our related work on optical priors, colour control, and cross-tile consistency in SAR-to-optical image translation. Click an overview to view the full-size figure.
ColorS2O
Controllable SAR-to-Optical Image Translation with Sparse Colour Anchors
ColorS2O uses sparse colour anchors from an optical observation to control the colours of translated images.
XTile-S2O
Cross-Tile Coherent Full-Scene SAR-to-Optical Image Translation
XTile-S2O shares context across neighbouring tiles to improve spatial consistency in full-scene SAR-to-optical translation.
SADBM
Structure-Aware Diffusion Bridge Model for SAR-to-Optical Image Translation
SADBM uses an edge-enhanced SAR image as the starting point of a diffusion bridge to preserve scene structure in SAR-to-optical image translation.
探索相关项目
加载中…



