Spaces:
Runtime error
Runtime error
Update app_merged.py
Browse files- app_merged.py +2 -2
app_merged.py
CHANGED
@@ -328,7 +328,7 @@ def inpaint(image, width, height, overlap_percentage, num_inference_steps, resiz
|
|
328 |
|
329 |
#generator = torch.Generator(device="cuda").manual_seed(42)
|
330 |
|
331 |
-
|
332 |
prompt=final_prompt,
|
333 |
height=height,
|
334 |
width=width,
|
@@ -338,7 +338,7 @@ def inpaint(image, width, height, overlap_percentage, num_inference_steps, resiz
|
|
338 |
guidance_scale=30,
|
339 |
).images[0]
|
340 |
|
341 |
-
|
342 |
cnet_image.paste(result, (0, 0), mask)
|
343 |
|
344 |
return cnet_image, background
|
|
|
328 |
|
329 |
#generator = torch.Generator(device="cuda").manual_seed(42)
|
330 |
|
331 |
+
result = fill_pipe(
|
332 |
prompt=final_prompt,
|
333 |
height=height,
|
334 |
width=width,
|
|
|
338 |
guidance_scale=30,
|
339 |
).images[0]
|
340 |
|
341 |
+
result = result.convert("RGBA")
|
342 |
cnet_image.paste(result, (0, 0), mask)
|
343 |
|
344 |
return cnet_image, background
|