tori29umai commited on
Commit
deca380
1 Parent(s): 86331a2
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -171,9 +171,8 @@ class webui:
171
  lineart = process_XDoG(image_path).convert('L')
172
  replace_color_image = process_image(rgb_image, lineart).convert('RGBA')
173
 
174
- # if alpha:
175
- # inverted_alpha = ImageOps.invert(alpha) # アルファチャンネルを反転
176
- # replace_color_image.putalpha(inverted_alpha)
177
 
178
  replace_color_image_path = f"{image_name}_noline.png"
179
  replace_color_image.save(replace_color_image_path)
 
171
  lineart = process_XDoG(image_path).convert('L')
172
  replace_color_image = process_image(rgb_image, lineart).convert('RGBA')
173
 
174
+ if alpha:
175
+ replace_color_image.putalpha(alpha)
 
176
 
177
  replace_color_image_path = f"{image_name}_noline.png"
178
  replace_color_image.save(replace_color_image_path)