Ashoka74 commited on
Commit
b0b3f41
ยท
verified ยท
1 Parent(s): f5a3a91

Update app_merged.py

Browse files
Files changed (1) hide show
  1. 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
- fill_result = fill_pipe(
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
- fill_result = result.convert("RGBA")
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