HarborYuan commited on
Commit
aaf167c
1 Parent(s): 70aa930
Files changed (1) hide show
  1. main.py +2 -2
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 img_state, image, output_img, cls_info
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=[img_state_bbox, cond_img_bbox, segm_img_bbox, cls_info_bbox]
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