Giter VIP home page Giter VIP logo

segmar's Introduction

Segment, Magnify and Reiterate Detecting Camouflaged Objects the Hard Way (CVPR2022)

image

Segment, Magnify and Reiterate: Detecting Camouflaged Objects the Hard Way. Jia Qi and Yao Shuilian and Liu Yu and Fan Xin and Liu Risheng and Luo Zhongxuan. CVPR2022.

paper download

Usage

The training and testing experiments are conducted using PyTorch with a single Tesla V100 GPU of 36 GB Memory.

1. Prerequisites

Note that SegMaR is only tested on Ubuntu OS with the following environments.

  • Creating a virtual environment in terminal: conda create -n SegMaR python=3.6.

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

  • Installing NVIDIA-Apex (Under CUDA-10.0 and Cudnn-7.4).

  • Installing MobulaOP for Sampler operation.

    # Clone the project
    git clone https://github.com/wkcn/MobulaOP
    
    # Enter the directory
    cd MobulaOP
    
    # Install MobulaOP
    pip install -v -e .
    
    

2. Downloading Training and Testing Datasets

  • Downloading training dataset (COD10K-train) and move it into ./OurModule/datasets/train/.

  • Downloading testing dataset (COD10K-test + CAMO-test + CHAMELEON) and move it into ./OurModule/datasets/test/.

  • You can use discriminative mask google drive link or discriminative mask baidu drive link, code e5ym, or run ./OurSampler/DiscriminativeMask.py to generate your discriminative mask. If you use a dataset without this mask (like COCO or Pascal VOC), you can replace discriminative mask with binary groundtruth.

3. Training Configuration

  • After you download all the training datasets, just run ./OurModule/train.py to generate the model.

  • For iterative training: generator.load_state_dict(torch.load('./OurModule/models/xxx.pth')).

  • For the first stage pretrained model, code y4v3, or google drive link

4. Testing Configuration

  • After you download all the pre-trained model and testing datasets, just run ./OurModule/test.py to generate the prediction map. Your save directory is ./OurModule/results.py.

  • Test results, code pxu7

  • New NC4K results or baidu drive link, code naif

5. Sampler Operation

  • Make sure that you have installed MobulaOP in your virtual environment.

  • For sampler operation, just run ./OurSampler/Sampler_Distort.py.

  • For restoration operation, just run ./OurSampler/Sampler_Restort.py.

  • For the directory of original prediction or restoration prediction, please see our codes details.

6. Evaluation

  • One-key evaluation is written in MATLAB code, please follow this the instructions in main.m and just run it to generate the evaluation results.

Citation

@InProceedings{Jia_2022_CVPR,
    author    = {Jia, Qi and Yao, Shuilian and Liu, Yu and Fan, Xin and Liu, Risheng and Luo, Zhongxuan},
    title     = {Segment, Magnify and Reiterate: Detecting Camouflaged Objects the Hard Way},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2022},
    pages     = {4713-4722}
}

segmar's People

Contributors

yaosl98 avatar dlut-dimt avatar

Stargazers

Charl1e avatar  avatar Guogq avatar Udeyx avatar Eric S. avatar  avatar Yang Yang avatar mowangchuzhong avatar hereisrain avatar Xiaobin HU(kevin) avatar 曹明伟,Mingwei Cao avatar  avatar  avatar Yuqing LIU avatar leo1 avatar An-zhi WANG avatar  avatar

Watchers

James Cloos avatar  avatar

segmar's Issues

关于GT标签的缩放方法问题

为什么GT标签采用双线性插值而不是最近邻插值?如果采用双线性插值就不会导致产生除了0(背景)或255(前景)以外的像素值了吗?这不就会导致GT标签不准确吗?

The results of the test.

Hello, would you please release the results on the four COD datasets, e.i., CAMO, CHAMELEON, COD10K, and NC4K? Thank you very much!

数据

请问一下,代码里gtl对应Gfix,这个是怎么得到的,需要重新标注么?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.