SAM2.1
SAM2.1 checkpoints + training code + Demo
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
" !wget -P images https://raw.githubusercontent.com/facebookresearch/segment-anything-2/main/notebooks/images/cars.jpg\n",
|
||||
"\n",
|
||||
" !mkdir -p ../checkpoints/\n",
|
||||
" !wget -P ../checkpoints/ https://dl.fbaipublicfiles.com/segment_anything_2/072824/sam2_hiera_large.pt"
|
||||
" !wget -P ../checkpoints/ https://dl.fbaipublicfiles.com/segment_anything_2/092824/sam2.1_hiera_large.pt"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -255,8 +255,8 @@
|
||||
"from sam2.build_sam import build_sam2\n",
|
||||
"from sam2.automatic_mask_generator import SAM2AutomaticMaskGenerator\n",
|
||||
"\n",
|
||||
"sam2_checkpoint = \"../checkpoints/sam2_hiera_large.pt\"\n",
|
||||
"model_cfg = \"sam2_hiera_l.yaml\"\n",
|
||||
"sam2_checkpoint = \"../checkpoints/sam2.1_hiera_large.pt\"\n",
|
||||
"model_cfg = \"configs/sam2.1/sam2.1_hiera_l.yaml\"\n",
|
||||
"\n",
|
||||
"sam2 = build_sam2(model_cfg, sam2_checkpoint, device=device, apply_postprocessing=False)\n",
|
||||
"\n",
|
||||
|
Reference in New Issue
Block a user