install sam2 the way facebook says
This commit is contained in:
@@ -36,13 +36,11 @@ if [ ! -d "segment-anything-2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Download SAM2 checkpoints using their official script
|
# Download SAM2 checkpoints using their official script
|
||||||
cd segment-anything-2
|
cd segment-anything-2/checkpoints
|
||||||
mkdir -p checkpoints
|
|
||||||
cd checkpoints
|
|
||||||
if [ ! -f "sam2.1_hiera_large.pt" ]; then
|
if [ ! -f "sam2.1_hiera_large.pt" ]; then
|
||||||
echo "📥 Downloading SAM2 checkpoints..."
|
echo "📥 Downloading SAM2 checkpoints..."
|
||||||
chmod +x ../download_ckpts.sh 2>/dev/null || true
|
chmod +x download_ckpts.sh
|
||||||
bash ../download_ckpts.sh || bash <(curl -s https://raw.githubusercontent.com/facebookresearch/segment-anything-2/main/download_ckpts.sh)
|
bash download_ckpts.sh
|
||||||
fi
|
fi
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user