Skip to content

LilBabines/Seg-CycleGAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seg-CycleGAN:SAR-to-optical image translation guided by a downstream task

Paper link: Seg-CycleGAN : SAR-to-optical image translation guided by a downstream task

Introduction

Optical remote sensing and synthetic aperture radar (SAR) remote sensing are crucial for earth observation, offering complementary capabilities. While optical sensors provide high-quality images, they are limited by weather and lighting conditions. In contrast, SAR sensors can operate effectively under adverse conditions. This letter proposes a generative adversarial network (GAN)-based SAR-to-optical image translation method named Seg-CycleGAN, designed to enhance the accuracy of ship target translation by leveraging semantic information from a pretrained semantic segmentation model. Our method utilizes the downstream task of ship target semantic segmentation to guide the training of the image translation network, improving the quality of output optical-styled images. The potential of foundation-model-annotated datasets in SAR-to-optical translation tasks is revealed. This work suggests broader research and applications for downstream-task-guided frameworks.

Structure of Seg-CycleGAN

image

Results on HRSID-DIOR Dataset

image

Qualitative results on HRSID-DIOR Dataset

Method mPA⬆ mIoU ⬆ FwIoU⬆ FID⬇
Seg-CycleGAN 0.824 0.678 0.933 146.395
CycleGAN 0.802 0.661 0.924 159.319
NICE-GAN 0.681 0.573 0.930 153.703
SteroGAN 0.495 0.489 0.926 47.991
PatchGCL 0.500 0.479 0.923 135.757
Ground Truth SAR 0.734 0.652 0.898 -

This repository provides:

  1. the official code implementation of Seg-CycleGAN.
  2. the HRSID-DIOR dataset used in our research.

Dataset Download

The HRSID-DIOR Dataset is used to support SAR-to-Optical image translation for ship targets.

This dataset is composed of 2 parts:

  1. DIOR-ship : 3202 samples containing ship targets from DIOR dataset further augmented and labeled with SAM.
  2. HRSID subset: 1031 inshore images and corresponding ship segmentation labels are selected and cropped.

Download the dataset through GoogleDrive.

Usage

See options/ for hyperparameter tuning, and see SegNet.py, cycle_gan_model.py in models/ for model structure.

Dependencies

pip install -r requirements.txt

Build Environment

conda env create -f environment.yml -n Seg-CycleGAN

Evaluation

python sar2opt_eval.py

Training

python train.py

Citation

If you find our work useful in your research, please consider citing our paper:

@ARTICLE{10872937,
  author={Zhang, Hannuo and Li, Huihui and Lin, Jiarui and Zhang, Yujie and Fan, Jianghua and Liu, Hang and Liu, Kun},
  journal={IEEE Geoscience and Remote Sensing Letters}, 
  title={Seg-CycleGAN: SAR-to-Optical Image Translation Guided by a Downstream Task}, 
  year={2025},
  volume={22},
  number={},
  pages={1-5},
  keywords={Marine vehicles;Translation;Optical imaging;Optical sensors;Semantic segmentation;Training;Generators;Adaptive optics;Optical fiber networks;Radar polarimetry;Cycle-consistency;downstream-task-guided framework;semantic segmentation synthetic aperture radar (SAR)-to-optical image translation},
  doi={10.1109/LGRS.2025.3538868}}

Acknowledgements

This project is based on Cyclegan/Pix2pix. We thank the original authors for their excellent works.

About

BBox-CycleGAN: Optical-to-SAR Image Translation Guided by a Downstream Task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 95.4%
  • Shell 2.5%
  • MATLAB 1.1%
  • TeX 1.0%