Download microsoftexcel-controlnet/annotator/canny/__init__.py from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 123 Bytes
-
https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F3/microsoftexcel-controlnet/annotator/canny/__init__.py
- Command line
-
hf download hf://toto10/extensions@refs/pr/3/microsoftexcel-controlnet/annotator/canny/__init__.py
-
curl -L -o __init__.py https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F3/microsoftexcel-controlnet/annotator/canny/__init__.py
123 Bytes
| import cv2 | |
| def apply_canny(img, low_threshold, high_threshold): | |
| return cv2.Canny(img, low_threshold, high_threshold) | |