comdoleger commited on
Commit
6901125
1 Parent(s): c611491

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -292,7 +292,7 @@ def process_generate(fore, back, prompt, intensity, mode, refprompt, isrmbg, mod
292
 
293
 
294
  if back is not None:
295
- fore = Image.alpha_composite(back.resize(fore.size).convert('RGBA'), fore)
296
  print(f"Background Merged!")
297
  mode = "refiner"
298
 
 
292
 
293
 
294
  if back is not None:
295
+ fore = Image.alpha_composite(back.resize(fore.size).convert('RGBA'), fore.convert('RGBA'))
296
  print(f"Background Merged!")
297
  mode = "refiner"
298