Inference implementation for Dichotomous Image Segmentation
Project description
DIS-inference
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.
| Origin | DIS |
|---|---|
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dis_inference-1.1.3.tar.gz.
File metadata
- Download URL: dis_inference-1.1.3.tar.gz
- Upload date:
- Size: 790.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52733b5105103dc76b98d73b7b55747a86ba443e642fdb3c1fc64f72907f6184
|
|
| MD5 |
c4b98420d6c0853b67fed5afdc7ccfd3
|
|
| BLAKE2b-256 |
d7aa5d7760a4d9b734812948566b6ea2a514d674492c087ea3f979745951ba6f
|
File details
Details for the file dis_inference-1.1.3-py3-none-any.whl.
File metadata
- Download URL: dis_inference-1.1.3-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ad1c8b4fe5ea54c076a4f5b39be86d3413a6abfa7fca22c186bd38a897171d
|
|
| MD5 |
e2d3f69ed9387099d8ecf8de01baaf03
|
|
| BLAKE2b-256 |
a671e3641b8c0d2c562a7c45e413b162598e7228b8012790f751ff7bdad40c61
|