Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
imform-dev
/
stable-diffusion-webui
like
0
arxiv:
2211.06679
Model card
Files
Files and versions
Community
main
stable-diffusion-webui
/
extensions
/
sd-webui-controlnet
/
annotator
/
canny
/
__init__.py
방재호
init
5636c1c
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
123 Bytes
import
cv2
def
apply_canny
(
img, low_threshold, high_threshold
):
return
cv2.Canny(img, low_threshold, high_threshold)