jordandotzel commited on
Commit
28405c9
1 Parent(s): 58d6d77
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -52,8 +52,9 @@ def infer(
52
  ):
53
  # Canny preprocessing
54
  control_image = load_image(image_in)
 
55
  control_image = np.array(control_image)
56
- control_image = np.concatenate([control_image[:, :, None]] * 3, axis=2)
57
  control_image = Image.fromarray(control_image)
58
 
59
  # Infer
 
52
  ):
53
  # Canny preprocessing
54
  control_image = load_image(image_in)
55
+ control_image = control_image.convert('L')
56
  control_image = np.array(control_image)
57
+ control_image = np.stack([control_image] * 3, axis=-1)
58
  control_image = Image.fromarray(control_image)
59
 
60
  # Infer