kadirnar commited on
Commit
8b65acb
1 Parent(s): b4dfcc9

Update diffusion_webui/utils/preprocces_utils.py

Browse files
diffusion_webui/utils/preprocces_utils.py CHANGED
@@ -64,7 +64,6 @@ def resize_image_with_pad(input_image, resolution, skip_hwc3=False):
64
 
65
 
66
  def scribble_xdog(img, res=512, thr_a=32, **kwargs):
67
- img = cv2.imread(img)
68
  img, remove_pad = resize_image_with_pad(img, res)
69
  g1 = cv2.GaussianBlur(img.astype(np.float32), (0, 0), 0.5)
70
  g2 = cv2.GaussianBlur(img.astype(np.float32), (0, 0), 5.0)
 
64
 
65
 
66
  def scribble_xdog(img, res=512, thr_a=32, **kwargs):
 
67
  img, remove_pad = resize_image_with_pad(img, res)
68
  g1 = cv2.GaussianBlur(img.astype(np.float32), (0, 0), 0.5)
69
  g2 = cv2.GaussianBlur(img.astype(np.float32), (0, 0), 5.0)