Skip to content

jiesihu/DECOR-Net

Repository files navigation

DECOR-Net

Code for paper: DECOR-NET: A COVID-19 LUNG INFECTION SEGMENTATION NETWORK IMPROVED BY EMPHASIZING LOW-LEVEL FEATURES AND DECORRELATING FEATURES. Specifically, we design a channel re-weighting strategy and a decorrelation loss to improve COVID-19 infection segmentation. The model is built based on the MONAI framework.

Usage

Installation

  1. Requirements
  • Linux
  • Python 3.6+
  1. Dependencies.
  • numpy>=1.21.5
  • pandas>=1.1.5
  • torch>=1.7.0
  • torchvision>=0.11.1
  • monai>=0.8.1
  • pillow
  • yaml
  • json
  • torchmetrics

Dataset

The preprocessed COVID-19 Challenge dataset can be found in BaiduDisk (key = tu1h).

The COVID-19 Challenge dataset can be found here.

Training and Evaluation

The path of dataset need to be set in ./DecorNet/Unet.yaml before training.

python train.py

Evaluation

Set runs_file in evaluation.sh before running it. You can find your folder's name in ./DecorNet/runs/

bash evaluation.sh

All the metrics generated by evaluation.sh will be save in the folder of runs_file.

You can find the code for Decor loss in ./Decor_loss.py.

About

code for DECOR-Net paper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published