Spaces:
Runtime error
Runtime error
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
|