Gainward777 commited on
Commit
199c895
·
verified ·
1 Parent(s): cd058e3

Update utils/utils.py

Browse files
Files changed (1) hide show
  1. utils/utils.py +2 -4
utils/utils.py CHANGED
@@ -28,7 +28,7 @@ def conventional_resize(img):
28
  resized_img = img.resize((new_width, new_height), Image.LANCZOS)
29
 
30
  return resized_img
31
-
32
 
33
  def get_substrate(img, color=(255, 255, 255, 255)):
34
  size=img.size
@@ -40,9 +40,7 @@ def sketch_process(img):
40
  substrate=conventional_resize(get_substrate(img))
41
  resized_img = conventional_resize(img)
42
  return substrate, resized_img
43
-
44
-
45
-
46
 
47
  #first stage prompt preprocess
48
  def remove_duplicates(base_prompt):
 
28
  resized_img = img.resize((new_width, new_height), Image.LANCZOS)
29
 
30
  return resized_img
31
+
32
 
33
  def get_substrate(img, color=(255, 255, 255, 255)):
34
  size=img.size
 
40
  substrate=conventional_resize(get_substrate(img))
41
  resized_img = conventional_resize(img)
42
  return substrate, resized_img
43
+
 
 
44
 
45
  #first stage prompt preprocess
46
  def remove_duplicates(base_prompt):