Files
test2/download_sam2_configs.sh
2025-07-26 08:07:31 -07:00

17 lines
756 B
Bash

#!/bin/bash
# Download SAM2 model configuration files
echo "📥 Downloading SAM2 configuration files..."
mkdir -p sam2_configs
cd sam2_configs
# Download SAM2 config files
wget -q --show-progress https://raw.githubusercontent.com/facebookresearch/segment-anything-2/main/sam2_configs/sam2_hiera_b+.yaml
wget -q --show-progress https://raw.githubusercontent.com/facebookresearch/segment-anything-2/main/sam2_configs/sam2_hiera_l.yaml
wget -q --show-progress https://raw.githubusercontent.com/facebookresearch/segment-anything-2/main/sam2_configs/sam2_hiera_s.yaml
wget -q --show-progress https://raw.githubusercontent.com/facebookresearch/segment-anything-2/main/sam2_configs/sam2_hiera_t.yaml
cd ..
echo "✅ SAM2 configs downloaded to sam2_configs/"