Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -302,7 +302,7 @@ def infer(video_in, trim_value, prompt, background_prompt, background_type, box_
|
|
302 |
|
303 |
matte_img = run_grounded_sam(image_array, prompt, "text", background_prompt, background_type, box_threshold, text_threshold, iou_threshold, scribble_mode, guidance_mode)
|
304 |
#print(pix2pix_img)u
|
305 |
-
|
306 |
#rgb_im = image.convert("RGB")
|
307 |
|
308 |
# exporting the image
|
|
|
302 |
|
303 |
matte_img = run_grounded_sam(image_array, prompt, "text", background_prompt, background_type, box_threshold, text_threshold, iou_threshold, scribble_mode, guidance_mode)
|
304 |
#print(pix2pix_img)u
|
305 |
+
matte_img = Image.open(matte_img)
|
306 |
#rgb_im = image.convert("RGB")
|
307 |
|
308 |
# exporting the image
|