Skip to content

zcc0616/CTF-Net

Repository files navigation

An Effective CNN and Transformer Fusion Network for Camouflaged Object Detection

Authors: Dongdong Zhang, Chunping Wang, Huiying Wang, Qiang Fu, Zhaorui Li.

1. Preface

  • This repository provides code for "An Effective CNN and Transformer Fusion Network for Camouflaged Object Detection"

2. Proposed Baseline

2.1. Training/Testing

The training and testing experiments are conducted using PyTorch with a single NVIDIA GeForce RTX 3090 GPU of 24 GB Memory.

  1. Configuring your environment (Prerequisites):

    • Creating a virtual environment in terminal: conda create -n CTFNet python=3.7.

    • Installing necessary packages: pip install -r requirements.txt.

  2. Downloading necessary data:

  3. Training Configuration:

    • Assigning your costumed path, like --train_save and --train_path in etrain.py.
  4. Testing Configuration:

    • After you download all the pre-trained model and testing dataset, just run etest.py to generate the final prediction map: replace your trained model directory (--pth_path).

2.2 Evaluating your trained model:

Assigning your costumed path, like pred_root and model_lst in MyEval.py.

Just run MyEval.py to evaluate the trained model.

pre-computed maps of CTF-Net can be found in [download link (Baidu Pan)](https://pan.baidu.com/s/1IPxvXD49Oq5yyjhNyiRqpw irmx).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published