Skip to content

Commit

Permalink
Update run_sam.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mks0601 authored Dec 17, 2024
1 parent 8b32157 commit 43e9fb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fitting/tools/code_to_copy/run_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def parse_args():
# load SAM
ckpt_path = './sam_vit_h_4b8939.pth'
model_type = "vit_h"
assert osp.isfile(ckpt_path), 'Please download sam_vit_h_4b8939.pth'
sam = sam_model_registry[model_type](checkpoint=ckpt_path).cuda()
predictor = SamPredictor(sam)

Expand Down

0 comments on commit 43e9fb9

Please sign in to comment.