Spaces:
Running
on
L40S
Running
on
L40S
jordandotzel
commited on
Commit
•
28405c9
1
Parent(s):
58d6d77
asdf
Browse files
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.
|
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
|