🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

About

Slim Scissors: Segmenting Thin Object from Synthetic Background

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Slim Scissors: Segmenting Thin Object from Synthetic Background

This is the official implementation of our work Slim Scissors: Segmenting Thin Object from Synthetic Background.

Slim Scissors: Segmenting Thin Object from Synthetic Background,
Kunyang Han, Jun Hao Liew, Jiashi Feng, Huawei Tian, Yao Zhao*, Yunchao Wei
In: European Conference on Computer Vision (ECCV), 2022 [pdf] [supplementary]

Installation

  1. Clone the repo:

    git clone https://github.com/KunyangHan/SlimScissors
    cd SlimScissors
    
  2. Install dependencies.

    pip install -r requirements.txt
    
  3. Download the dataset by running the script inside data/:

    cd data/
    chmod +x download_dataset.sh
    ./download_dataset.sh
    cd ..

    Data folder expects the following structure:

    data
    β”œβ”€β”€ COIFT
    β”‚   β”œβ”€β”€ images
    β”‚   β”œβ”€β”€ list
    β”‚   └── masks
    β”œβ”€β”€ HRSOD
    β”‚   β”œβ”€β”€ images
    β”‚   β”œβ”€β”€ list
    β”‚   └── masks
    β”œβ”€β”€ ThinObject5K
    β”‚   β”œβ”€β”€ images
    β”‚   β”œβ”€β”€ list
    β”‚   └── masks
    └── thin_regions
        β”œβ”€β”€ coift
        β”‚   β”œβ”€β”€ eval_mask
        β”‚   └── gt_thin
        β”œβ”€β”€ hrsod
        β”‚   β”œβ”€β”€ eval_mask
        β”‚   └── gt_thin
        └── thinobject5k_test
            β”œβ”€β”€ eval_mask
            └── gt_thin
  4. Download pretrain weights

    wget https://download.pytorch.org/models/resnet18-5c106cde.pth
    

Training

We provide the scripts for training our models on ThinObject-5K dataset. You can start training with the following commands:

python train.py --data_root path_to_data_folder

Testing

To evaluate, simply run following commands:

python evaluation.py --ckpt path_to_pth_file --data_root path_to_data_folder --dataset target_dataset

For example

python evaluation.py --ckpt ckpt/checkpoint_epoch_29.pth --data_root ../data --dataset HRSOD

License

This project is licensed under a Creative Commons Attribution-NonCommercial 4.0 International Public License.

Citation

If you use this code, please consider citing our paper:

@InProceedings{han2022slim,
    title     = {Slim Scissors: Segmenting Thin Object from Synthetic Background},
    author    = {Han, Kunyang and Liew, Jun Hao and Feng, Jiashi and Tian, Huawei and Zhao, Yao and Wei, Yunchao},
    booktitle = {eccv},
    year      = {2022},
}

About

Slim Scissors: Segmenting Thin Object from Synthetic Background

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages