Spaces:
Running
on
Zero
Running
on
Zero
Update app_merged.py
Browse files- app_merged.py +1 -1
app_merged.py
CHANGED
@@ -380,7 +380,7 @@ def inpaint(image, width, height, overlap_percentage, num_inference_steps, resiz
|
|
380 |
result = result.convert("RGBA")
|
381 |
cnet_image.paste(result, (0, 0), mask)
|
382 |
|
383 |
-
return cnet_image
|
384 |
|
385 |
def preview_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom):
|
386 |
background, mask = prepare_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom)
|
|
|
380 |
result = result.convert("RGBA")
|
381 |
cnet_image.paste(result, (0, 0), mask)
|
382 |
|
383 |
+
return cnet_image #, background
|
384 |
|
385 |
def preview_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom):
|
386 |
background, mask = prepare_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom)
|