Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Qiyp
/
DiffICM
like
0
Model card
Files
Files and versions
xet
Community
main
DiffICM
/
3_ControlNet
/
annotator
/
canny
/
__init__.py
Qiyp
code of stage1 & 3, remove large files
1633fcc
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
155 Bytes
import
cv2
class
CannyDetector
:
def
__call__
(
self, img, low_threshold, high_threshold
):
return
cv2.Canny(img, low_threshold, high_threshold)