Spaces:
Sleeping
Sleeping
HarborYuan
commited on
Commit
•
aaf167c
1
Parent(s):
70aa930
bugfix
Browse files
main.py
CHANGED
@@ -251,7 +251,7 @@ def segment_with_bbox(
|
|
251 |
output_img = (output_img * 0.7 + color * 0.3).astype(np.uint8)
|
252 |
|
253 |
output_img = Image.fromarray(output_img)
|
254 |
-
return
|
255 |
|
256 |
|
257 |
def extract_img_feat(img, img_state):
|
@@ -392,7 +392,7 @@ def register_point_mode():
|
|
392 |
).then(
|
393 |
segment_with_bbox,
|
394 |
inputs=[cond_img_bbox, img_state_bbox],
|
395 |
-
outputs=[
|
396 |
)
|
397 |
|
398 |
# clean prompts
|
|
|
251 |
output_img = (output_img * 0.7 + color * 0.3).astype(np.uint8)
|
252 |
|
253 |
output_img = Image.fromarray(output_img)
|
254 |
+
return image, output_img, cls_info
|
255 |
|
256 |
|
257 |
def extract_img_feat(img, img_state):
|
|
|
392 |
).then(
|
393 |
segment_with_bbox,
|
394 |
inputs=[cond_img_bbox, img_state_bbox],
|
395 |
+
outputs=[cond_img_bbox, segm_img_bbox, cls_info_bbox]
|
396 |
)
|
397 |
|
398 |
# clean prompts
|