Skip to main content

Inference implementation for Dichotomous Image Segmentation

Project description

DIS-inference

PyPI - Version PyPI - Python Version

Inference implementation of Dichotomous Image Segmentation

Highly Accurate Dichotomous Image Segmentation (ECCV 2022)

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

Project Page, Arxiv, **中文 **.


Origin DIS
Before After

Table of Contents

Installation

pip install dis-inference

Usage

CLI

command: dis-inference arguments:--silent(optional) : Whether to print verbose. Source image

> dis-inference Lenna.png
Output saved as `Lenna_dis.png`
> dis-inference --silent Lenna.png

Python

from dis_inference import inference

# 1. Inference with path
output = inference('Lenna.png')
cv2.imwrite('Lenna_dis.png', output)

# 2. Inference cv2 image
image = cv2.imread('Lenna.png')
output = inference(image)
cv2.imwrite('Lenna_dis.png', output)

# 3. Inference cv2 image with save parameter
image = cv2.imread('Lenna.png')
output = inference(image, save=True, output='Lenna_dis.png')

# 3. With save parameter
image = inference('Lenna.png', save=True)

License

dis-inference is distributed under the terms of the AGPL-3.0-only license.

Reference

https://github.com/xuebinqin/DIS

Citation

@InProceedings{qin2022,
      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},
      booktitle={ECCV},
      year={2022}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dis_inference-1.1.3.tar.gz (790.7 kB view hashes)

Uploaded Source

Built Distribution

dis_inference-1.1.3-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page