NuaaYH / MSCNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSCNet: A lightweight multi-scale context network for Salient Object Detection in Optical Remote Sensing Images

Code for ICPR 2022 paper "A lightweight multi-scale context network for Salient Object Detection in Optical Remote Sensing Images", by Yuhan Lin, Han Sun, Ningzhong Liu, Yetong Bian, Jun Cen, and Huiyu Zhou

Requirement

python-3.6
pytorch-1.8.1
torchvision
numpy
tqdm
cv2

Usage

training

  1. Comment out line 57 of run.py like #self.net.load_state_dict......
  2. Comment out line 173 of run.py like #run.test() and ensure that the run.train() statement is executable
  3. python run.py

testing

  1. Put the model weights in ./Checkpoints/trained and ensure that line 57 of run.py is executable
  2. Comment out line 172 of run.py like #run.train() and ensure that the run.test() statement is executable
  3. python run.py

evaluation

The evaluation code can be available at https://github.com/zyjwuyan/SOD_Evaluation_Metrics.

Results

About


Languages

Language:Python 100.0%