Spaces:
Running
on
Zero
Running
on
Zero
Update edit_space.py
Browse files- edit_space.py +2 -1
edit_space.py
CHANGED
|
@@ -269,7 +269,8 @@ class KontextEditModel():
|
|
| 269 |
}
|
| 270 |
|
| 271 |
# Prepare debug/output images
|
| 272 |
-
|
|
|
|
| 273 |
|
| 274 |
# Run inference
|
| 275 |
result_pil = self.pipe(
|
|
|
|
| 269 |
}
|
| 270 |
|
| 271 |
# Prepare debug/output images
|
| 272 |
+
colored_image_np = np.array(self._tensor_to_pil(colored_image))
|
| 273 |
+
debug_image = lineart_output if lineart_output is not None else self.color_processor(colored_image_np, detect_resolution=1024, output_type="pil")
|
| 274 |
|
| 275 |
# Run inference
|
| 276 |
result_pil = self.pipe(
|