Spaces:
Running
on
T4
Running
on
T4
yizhangliu
commited on
Commit
•
08c23ad
1
Parent(s):
881ab59
update app.py
Browse files
app.py
CHANGED
@@ -739,7 +739,7 @@ def run_anything_task(input_image, text_prompt, task_type, inpaint_prompt, box_t
|
|
739 |
size = image_pil.size
|
740 |
H, W = size[1], size[0]
|
741 |
|
742 |
-
if remove_use_segment and task_type == 'remove':
|
743 |
remove_mode = 'rectangle'
|
744 |
|
745 |
# run grounding dino model
|
|
|
739 |
size = image_pil.size
|
740 |
H, W = size[1], size[0]
|
741 |
|
742 |
+
if remove_use_segment == False and task_type == 'remove':
|
743 |
remove_mode = 'rectangle'
|
744 |
|
745 |
# run grounding dino model
|