This is the repo for our new project Highly Accurate Dichotomous Image Segmentation
Alternatives To Dis
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Opencv71,4603718 hours ago29February 15, 20232,525apache-2.0C++
Open Source Computer Vision Library
Cs Video Courses60,439
a day ago2
List of Computer Science courses with video lectures.
D2l Zh48,2731116 days ago47December 15, 202248apache-2.0Python
a month ago269otherC++
OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation
Applied Ml24,714
24 days ago3mit
📚 Papers & tech blogs by companies sharing their work on data science & machine learning in production.
Mediapipe23,5041553 days ago34August 01, 2023301apache-2.0C++
Cross-platform, customizable ML solutions for live and streaming media.
3 months agon,ullotherC
YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
Pytorch Cyclegan And Pix2pix20,036
4 months ago493otherPython
Image-to-Image Translation in PyTorch
8 days ago253Jupyter Notebook
Learn OpenCV : C++ and Python Examples
D2l En19,251
14 hours ago2November 13, 202294otherPython
Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
Alternatives To Dis
Select To Compare

Alternative Project Comparisons


Highly Accurate Dichotomous Image Segmentation ECCV 2022

Xuebin Qin, Hang Dai, Xiaobin Hu, Deng-Ping Fan*, Ling Shao, Luc Van Gool.

This is the official repo for our newly formulated DIS task:

Project Page, Arxiv, ****.

Currently, only a few sample images of our DIS V2.0 dataset are included in this repo. The complete DIS V2.0 dataset and model have NOT been released yet! (quick response to many emails regarding to the DIS V2.0.)

We are trying our best to release that as early as possible!


Updates !!!

** (2022-Aug.-17)** The optimized model for general use of our IS-Net is now released: isnet-general-use.pth (for general use, this is NOT DIS V2.0.) from (Google Drive) or (Baidu Pan :6jh2), please feel free to try it with the newly created simple inference.py code on your own datasets. u2net-isnet-cmp

** (2022-Jul.-30)** Thank AK391 for the implementaiton of a Web Demo: Integrated into Huggingface Spaces using Gradio. Try out the Web Demo Hugging Face Spaces.

Notes for official DIS group: Currently, the released DIS deep model is the academic version that was trained with DIS V1.0, which includes very few animal, human, cars, etc. So it may not work well on these targets. We will release another version for general use and test. In addition, our DIS V2.0 will cover more categories with extremely well-annotated samples. Please stay tuned.

** (2022-Jul.-17)** Our paper, code and dataset are now officially released!!! Please check our project page for more details: Project Page.

** (2022-Jul.-5)** Our DIS work is now accepted by ECCV 2022, the code and dataset will be released before July 17th, 2022. Please be aware of our updates.

1. Our Dichotomous Image Segmentation (DIS) Dataset

1.1 DIS dataset V1.0: DIS5K

Download Google Drive or Baidu Pan rtgw

dis5k-dataset-v1-sailship complexities-qual categories

1.2 DIS dataset V2.0

Although our DIS5K V1.0 includes samples from more than 200 categories, many categories, such as human, animals, cars and so on, in real world are not included. So the current version (v1.0) of our dataset may limit the robustness of the trained models. To build the comprehensive and large-scale highly accurate dichotomous image segmentation dataset, we are building our DIS dataset V2.0. The V2.0 will be released soon. Please stay tuned.

Samples from DIS dataset V2.0. dis-v2

2. APPLICATIONS of Our DIS5K Dataset

3D Modeling


Image Editing


Art Design Materials


Still Image Animation




3D Rendering


3. Architecture of Our IS-Net


4. Human Correction Efforts (HCE)


5. Experimental Results

Predicted Maps, (Google Drive), (Baidu Pan ph1d), of Our IS-Net and Other SOTAs

Qualitative Comparisons Against SOTAs


Quantitative Comparisons Against SOTAs


6. Run Our Code

(1) Clone this repo

git clone https://github.com/xuebinqin/DIS.git

(2) Configuring the environment: go to the DIS/ISNet folder and run

conda env create -f pytorch18.yml

Or you can check the requirements.txt to configure the dependancies.

(3) activate the conda environment by

conda activate pytorch18

(4) Train:

(a) Open train_valid_inference_main.py, set the path of your to-be-inferenced train_datasets and valid_datasets, e.g., valid_datasets=[dataset_vd]
(b) Set the hypar["mode"] to "train"
(c) Create a new folder your_model_weights in the directory saved_models and set it as the hypar["model_path"] ="../saved_models/your_model_weights" and make sure hypar["valid_out_dir"](line 668) is set to "", otherwise the prediction maps of the validation stage will be saved to that directory, which will slow the training speed down
(d) Run

python train_valid_inference_main.py

(5) Inference

Download the pre-trained weights (for fair academic comparisons) isnet.pth from (Google Drive) or (Baidu Pan xbfk) OR the optimized model weights isnet-general-use.pth (for general use) from (Google Drive) or (Baidu Pan :6jh2), and store them in saved_models/IS-Net

I. Simple inference code for your own dataset without ground truth:

(a) Open \ISNet\inference.py and configure your input and output directories (b) Run

python inference.py

II. Inference for dataset with/without ground truth

(a) Open train_valid_inference_main.py, set the path of your to-be-inferenced valid_datasets, e.g., valid_datasets=[dataset_te1, dataset_te2, dataset_te3, dataset_te4]
(b) Set the hypar["mode"] to "valid"
(c) Set the output directory of your predicted maps, e.g., hypar["valid_out_dir"] = "../DIS5K-Results-test"
(d) Run

python train_valid_inference_main.py

(5) Use of our Human Correction Efforts(HCE) metric

Set the ground truth directory gt_root and the prediction directory pred_root. To reduce the time costs for computing HCE, the skeletion of the DIS5K dataset can be pre-computed and stored in gt_ske_root. If gt_ske_root="", the HCE code will compute the skeleton online which usually takes a lot for time for large size ground truth. Then, run python hce_metric_main.py. Other metrics are evaluated based on the SOCToolbox.

7. Term of Use

Our code and evaluation metric use Apache License 2.0. The Terms of use for our DIS5K dataset is provided as DIS5K-Dataset-Terms-of-Use.pdf.


We would like to thank Dr. Ibrahim Almakky for his helps in implementing the dataloader cache machanism of loading large-size training samples and Jiayi Zhu for his efforts in re-organizing our code and dataset.


      author={Xuebin Qin and Hang Dai and Xiaobin Hu and Deng-Ping Fan and Ling Shao and Luc Van Gool},
      title={Highly Accurate Dichotomous Image Segmentation},

Our Previous Works: U2-Net, BASNet.

      title = {U2-Net: Going Deeper with Nested U-Structure for Salient Object Detection},
      author = {Qin, Xuebin and Zhang, Zichen and Huang, Chenyang and Dehghan, Masood and Zaiane, Osmar and Jagersand, Martin},
      journal = {Pattern Recognition},
      volume = {106},
      pages = {107404},
      year = {2020}

        author = {Qin, Xuebin and Zhang, Zichen and Huang, Chenyang and Gao, Chao and Dehghan, Masood and Jagersand, Martin},
        title = {BASNet: Boundary-Aware Salient Object Detection},
        booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
        month = {June},
        year = {2019}

       title={Boundary-aware segmentation network for mobile and web applications},
       author={Qin, Xuebin and Fan, Deng-Ping and Huang, Chenyang and Diagne, Cyril and Zhang, Zichen and Sant'Anna, Adri{\`a} Cabeza and Suarez, Albert and Jagersand, Martin and Shao, Ling},
       journal={arXiv preprint arXiv:2101.04704},
Popular Deep Learning Projects
Popular Computer Vision Projects
Popular Machine Learning Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Jupyter Notebook
Deep Learning
Computer Vision