Spaces:
Runtime error
Runtime error
Commit
Β·
c74fa4c
1
Parent(s):
9f9752e
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def infer(
|
|
31 |
ill=0.6,
|
32 |
):
|
33 |
|
34 |
-
|
35 |
-
|
36 |
g_cpu = torch.Generator()
|
37 |
|
38 |
if seed == -1:
|
@@ -53,7 +53,8 @@ def infer(
|
|
53 |
|
54 |
).images[0]
|
55 |
|
56 |
-
del conditioning_image, conditioning_image_raw
|
|
|
57 |
gc.collect()
|
58 |
|
59 |
return output_image
|
|
|
31 |
ill=0.6,
|
32 |
):
|
33 |
|
34 |
+
conditioning_image_raw = Image.fromarray(conditioning_image)
|
35 |
+
conditioning_image = conditioning_image_raw.convert('L')
|
36 |
g_cpu = torch.Generator()
|
37 |
|
38 |
if seed == -1:
|
|
|
53 |
|
54 |
).images[0]
|
55 |
|
56 |
+
del conditioning_image, conditioning_image_raw
|
57 |
+
|
58 |
gc.collect()
|
59 |
|
60 |
return output_image
|