P3ngLiu commited on
Commit
24ae542
·
verified ·
1 Parent(s): 5ddd5a7

Update demo/gradio_demo2.py

Browse files
Files changed (1) hide show
  1. demo/gradio_demo2.py +1 -1
demo/gradio_demo2.py CHANGED
@@ -360,7 +360,7 @@ if __name__ == "__main__":
360
 
361
  # Load SAM3
362
  sam3_model = build_sam3_image_model(checkpoint_path='./sam3.pt', device="cuda",bpe_path='/home/user/app/resources/bpe_simple_vocab_16e6.txt.gz')
363
- sam3_processor = Sam3Processor(sam3_model, confidence_threshold=0.0, device="cuda")
364
 
365
  # Load UPN
366
  upn_model = UPNWrapper(upn_ckpt_path)
 
360
 
361
  # Load SAM3
362
  sam3_model = build_sam3_image_model(checkpoint_path='./sam3.pt', device="cuda",bpe_path='/home/user/app/resources/bpe_simple_vocab_16e6.txt.gz')
363
+ sam3_processor = Sam3Processor(sam3_model, confidence_threshold=0.5, device="cuda")
364
 
365
  # Load UPN
366
  upn_model = UPNWrapper(upn_ckpt_path)