Pytorch Holistically-Nested Edge Detection (HED)
- Website: davidelanz.github.io/pytorch-hed
- Documentation: pytorch-hed.readthedocs.io
This is a reimplementation in the form of a python package of Holistically-Nested Edge Detection [1] using PyTorch based on the previous pytorch implementation by sniklaus [2]. If you would like to use of this work, please cite the paper accordingly. Also, make sure to adhere to the licensing terms of the authors. Moreover, if you will be making use of this particular implementation[3], please acknowledge it.
| GitHub | Ref | |
|---|---|---|
| Original version based on Caffe | https://github.com/s9xie/hed | [1] |
| Another reimplementation based on Caffe | https://github.com/zeakey/hed | |
| Original reimplementation based on PyTorch | https://github.com/sniklaus/pytorch-hed | [2] |
Usage
First, you have to install the package (stable) with
pip install pytorch-hed
or, for the current (unstable) version
pip install git+https://github.com/Davidelanz/pytorch-hed.git
Usage:
import torchHED
# process a single image file
torchHED.process_file("./images/sample.png", "./images/sample_processed.png")
# process all images in a folder
torchHED.process_folder("./input_folder", "./output_folder")
# process a PIL.Image loaded in memory and return a new PIL.Image
# img = PIL.Image.open("./images/sample.png")
img_hed = torchHED.process_img(img)
Results
| Input | Original Caffe Implementation [1] | pytorch-hed [3] |
|---|---|---|
References
[1] @inproceedings{Xie_ICCV_2015,
author = {Saining Xie and Zhuowen Tu},
title = {Holistically-Nested Edge Detection},
booktitle = {IEEE International Conference on Computer Vision},
year = {2015}
}
[2] @misc{pytorch-hed,
author = {Simon Niklaus},
title = {A Reimplementation of {HED} Using {PyTorch}},
year = {2018},
howpublished = {\url{https://github.com/sniklaus/pytorch-hed}}
}
[3] @misc{pytorch-hed-2,
author = {Davide Lanza},
title = {The {pytorch-hed} Python Package},
year = {2020},
howpublished = {\url{https://github.com/Davidelanz/pytorch-hed}}
}
Metadata
Release files for pytorch-hed 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytorch-hed-0.5.tar.gz | 6.2 kB | Without provenance | Details for pytorch-hed-0.5.tar.gz |
Release files / pytorch-hed-0.5.tar.gz
| Download URL | pytorch-hed-0.5.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbb61b6efbf8aed2c70ec3b166b644c4afa46cf4fb9087e61cd5cd34cc7bb492
|
|
BLAKE2b-256 checksum How to use checksums |
9597a877a7415dc909e41d35dba1afb844b950ebfa78168172aa52c87a6cd1f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for pytorch-hed 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.