Skip to content

This is a PyTorch implementation of Trans-DCN.

Notifications You must be signed in to change notification settings

hzh1231/Trans_dcn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trans-DCN

A High-Efficiency and Adaptive Deep Network for Bridge Cable Surface Defect Segmentation

Introduction

This is a PyTorch(1.8.0) implementation of Trans-DCN. It can use Modified backbone as train.py mentioned. Currently, we can train Trans-DCN using Pascal VOC 2012, SBD and Cityscapes datasets.

Installation

The code was tested with Anaconda and Python 3.8. After installing the Anaconda environment:

  1. Clone the repo:

    git clone https://github.com/hzh1231/Trans_dcn.git
    cd Trans_dcn
  2. Install dependencies:

    For PyTorch dependency, see pytorch.org for more details.

    For custom dependencies:

    pip install matplotlib pillow tensorboardX tqdm

Training

Follow steps below to train your model:

  1. Configure your dataset path in mypath.py.

  2. Input arguments: (see full input arguments via python train.py --help):

python train.py

Testing

Follow steps below to test your model:

  1. Configure your test data (images) path in predict.py.

  2. Input arguments: (see full input arguments via python predict.py --help):

python predict.py

About

This is a PyTorch implementation of Trans-DCN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages