Spaces:
Running
on
Zero
Running
on
Zero
Update demo/gradio_demo2.py
Browse files- 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.
|
| 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)
|