ovshake commited on
Commit
6252c13
1 Parent(s): 152d97b

fix gpu error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ def process_image(args, inpainting_pipeline, net):
107
  num_inference_steps=args.num_steps).images[0]
108
  clothed_image_from_pipeline = remove(clothed_image_from_pipeline)
109
  clothed_image_from_pipeline = change_bg_color(clothed_image_from_pipeline, "WHITE")
110
- return clothed_image_from_pipeline.convert("RGB"). mask_PIL
111
 
112
  net = load_u2net()
113
  inpainting_pipeline = load_inpainting_pipeline()
 
107
  num_inference_steps=args.num_steps).images[0]
108
  clothed_image_from_pipeline = remove(clothed_image_from_pipeline)
109
  clothed_image_from_pipeline = change_bg_color(clothed_image_from_pipeline, "WHITE")
110
+ return clothed_image_from_pipeline.convert("RGB"), mask_PIL
111
 
112
  net = load_u2net()
113
  inpainting_pipeline = load_inpainting_pipeline()