Skip to content

iLearn-Lab/TGRS24-HFCNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

HFCNet: Heterogeneous Feature Collaboration Network for Salient Object Detection in Optical Remote Sensing Images

Official PyTorch implementation of the IEEE TGRS 2024 paper "Heterogeneous Feature Collaboration Network for Salient Object Detection in Optical Remote Sensing Images".

Authors

Yutong Liu1, Mingzhu Xu1*, Tianxiang Xiao1, Haoyu Tang1, Yupeng Hu1, Liqiang Nie2

1 Shandong University
2 Harbin Institute of Technology (Shen Zhen)
* Corresponding author

Links


Table of Contents


Introduction

This project is the official implementation of the paper "Heterogeneous Feature Collaboration Network for Salient Object Detection in Optical Remote Sensing Images".

This work focuses on the task of Salient Object Detection (SOD) in optical remote sensing images, and proposes a Heterogeneous Feature Collaboration Network (HFCNet):

  • Problem Addressed: Effectively collaborate heterogeneous features from different backbone networks to handle challenges such as multi-scale objects and complex backgrounds in remote sensing images.
  • Core Idea: Leverage a heterogeneous feature collaboration mechanism to fully exploit the global modeling capability of Swin Transformer and the local detail extraction capability of VGG.
  • This Repository Provides: Complete training and testing code, pretrained weight interfaces, and configurations for ORSSD, EORSSD, and ORSI-SOD datasets.

Example Description

We present HFCNet, a framework for Salient Object Detection in Optical Remote Sensing Images.
Our method addresses feature heterogeneity by introducing a collaboration network that fuses multi-scale spatial and semantic info.
This repository provides the official implementation, trained checkpoints, and evaluation scripts.


Highlights

  • Supports heterogeneous feature fusion (Swin Transformer & VGG).
  • Provides complete training and testing pipelines on three benchmark datasets (ORSSD, EORSSD, ORSI-SOD).
  • Includes an efficient feature collaboration module to improve boundary detection accuracy.

Project Structure

.
├── config/                # Dataset configuration files (dataset_o, dataset_e, dataset_orsi)
├── pretrained/            # Stores pretrained classification weights (.pth)
├── main.py                # Main entry script
├── README.md
└── requirements.txt

Installation

1. Clone the repository

git clone [https://github.com/iLearn-Lab/HFCNet.git](https://github.com/iLearn-Lab/HFCNet.git)
cd HFCNet

2. Create environment

python -m venv .venv
source .venv/bin/activate   # Linux / Mac

3. Install dependencies

pip install -r requirements.txt

Checkpoints / Models

1. Initialization Weights (for Training)

Please download the following pretrained classification weights and place them in the ./pretrained directory:

2. Trained Weights (for Testing)


Dataset / Benchmark

Please download the datasets and generate the corresponding path list files (.txt).

  • ORSSD
  • EORSSD
  • ORSI-SOD

Usage

Training

Use nohup to start training in the background:

# ORSSD
nohup python -u main.py --flag train --model_id HFCNet --config config/dataset_o.yaml --device cuda:0 > train_ORSSD.log &

# EORSSD
nohup python -u main.py --flag train --model_id HFCNet --config config/dataset_e.yaml --device cuda:0 > train_EORSSD.log &

# ORSI-SOD
nohup python -u main.py --flag train --model_id HFCNet --config config/dataset_orsi.yaml --device cuda:0 > train_ORSI.log &

Testing

Download the trained weights, create directories, and run testing:

# ORSSD
mkdir ./modelPTH-ORSSD
python main.py --flag test --model_id HFCNet --config config/dataset_o.yaml

# EORSSD
mkdir ./modelPTH-EORSSD
python main.py --flag test --model_id HFCNet --config config/dataset_e.yaml 

# ORSI-SOD
mkdir ./modelPTH-ORSI
python main.py --flag test --model_id HFCNet --config config/dataset_orsi.yaml

Citation

If you use this work in your research, please cite:

@ARTICLE{HFCNet2024TGRS,
  author={Liu, Yutong and Xu, Mingzhu and Xiao, Tianxiang and Tang, Haoyu and Hu, Yupeng and Nie, Liqiang},
  journal={IEEE Transactions on Geoscience and Remote Sensing}, 
  title={Heterogeneous Feature Collaboration Network for Salient Object Detection in Optical Remote Sensing Images}, 
  year={2024},
  volume={62},
  number={},
  pages={1-14},
  doi={10.1109/TGRS.2024.3351234}}

License

This project is released under the Apache License 2.0.

About

The related files of a paper published on IEEE TGRS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages