A simple Canny edge detector for pytorch
Project description
Canny Edges
A simple Torch.nn.Module to return an image mask representing edges found by the Canny Edge-Finding algorithm.
Supports:
- PyTorch Tensor images formatted in image batches [B, C, h, w], with float32 data, and values spanning [0,1]
- any number of channels C
- TorchScript jit script, as well as the newer, traced torch-export, on the Canny
nn.Moduleclass
Usage
I use mise to handle project tools. Install it if you don't have it
git clone https://github.com/chrishenn/canny.git
cd canny
mise i
# list available just recipes
just --list
Available recipes:
interactive # Detect and display canny edges on a set of test images. Use ctrl+c to kill
lint # run project formatters/linters [alias: l]
test # run basic tests
unsafe # run ruff with unsafe-fixes
Dev
# build distrobution pkgs locally
uv build --package canny_chenn
# push tag to trigger pypi to build pkgs and publish to pypi
git tag -a v1.0.2 -m v1.0.2 -f && git push --tags -f
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
canny_chenn-1.0.2.tar.gz
(3.2 kB
view details)
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 canny_chenn-1.0.2.tar.gz.
File metadata
- Download URL: canny_chenn-1.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f4e01accde340af58c15d038ec1fff2aee05cd3b6dbb2171b6bfd87704abc77
|
|
| MD5 |
8f5d8cee707c38b43f2d81e2bfc7e61f
|
|
| BLAKE2b-256 |
905fa3cee810e3ade324d54d0a94dc376359381efe7cd8b6390df79fe5aa43ff
|
File details
Details for the file canny_chenn-1.0.2-py3-none-any.whl.
File metadata
- Download URL: canny_chenn-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a812a86db448f94c17592d3f2d2a637c6c09c6022f2cc1c1645eb606f915ca25
|
|
| MD5 |
391a5bb6390266b11955906a55c582b2
|
|
| BLAKE2b-256 |
c889402e6d1807e1023c8b80f15970a9dd8932977349b77828dc6edb8210a169
|