From 6a8cd6f8acc0fe4a7ac2462dd6fb4f561b02ee0b Mon Sep 17 00:00:00 2001 From: Hacker 17082006 Date: Fri, 17 Feb 2023 22:56:40 +0700 Subject: [PATCH] . --- comfy/annotator/canny/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy/annotator/canny/__init__.py b/comfy/annotator/canny/__init__.py index cb0da951d..a5c83aa34 100644 --- a/comfy/annotator/canny/__init__.py +++ b/comfy/annotator/canny/__init__.py @@ -2,5 +2,5 @@ import cv2 class CannyDetector: - def __call__(self, img, low_threshold, high_threshold): - return cv2.Canny(img, low_threshold, high_threshold) + def __call__(self, img, low_threshold, high_threshold, l2gradient): + return cv2.Canny(img, low_threshold, high_threshold, L2gradient=l2gradient)