[New Feature] Support SAM 2.1 (#59)
* support sam 2.1 * refine config path and ckpt path * update README
This commit is contained in:
@@ -32,8 +32,8 @@ if torch.cuda.get_device_properties(0).major >= 8:
|
||||
torch.backends.cudnn.allow_tf32 = True
|
||||
|
||||
# init sam image predictor and video predictor model
|
||||
sam2_checkpoint = "./checkpoints/sam2_hiera_large.pt"
|
||||
model_cfg = "sam2_hiera_l.yaml"
|
||||
sam2_checkpoint = "./checkpoints/sam2.1_hiera_large.pt"
|
||||
model_cfg = "configs/sam2.1/sam2.1_hiera_l.yaml"
|
||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||
print("device", device)
|
||||
|
||||
|
Reference in New Issue
Block a user