| #!/bin/bash |
|
|
| |
| |
| |
| |
|
|
| set -e |
|
|
| echo "" |
| echo "================================================" |
| echo " EcoPulse — Build Setup" |
| echo "================================================" |
| echo "" |
|
|
| |
| mkdir -p outputs/models |
|
|
| |
| SAM_CHECKPOINT="outputs/models/sam_vit_b_01ec64.pth" |
| SAM_URL="https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth" |
|
|
| if [ ! -f "$SAM_CHECKPOINT" ]; then |
| echo ">> Downloading SAM ViT-B checkpoint (350 MB)..." |
| curl -fL "$SAM_URL" -o "$SAM_CHECKPOINT" |
| echo ">> SAM checkpoint ready." |
| else |
| echo ">> SAM checkpoint already exists — skipping." |
| fi |
|
|
| |
| CNN_CHECKPOINT="outputs/models/resnet50_eurosat.pth" |
| CNN_URL="https://huggingface.co/datasets/acibZ/ecopulse-satellite-analysis-resnet50-model-weights/resolve/main/resnet50_eurosat.pth" |
|
|
| if [ ! -f "$CNN_CHECKPOINT" ]; then |
| echo ">> Downloading CNN weights (95 MB)..." |
| curl -fL "$CNN_URL" -o "$CNN_CHECKPOINT" |
| echo ">> CNN weights ready." |
| else |
| echo ">> CNN weights already exist — skipping." |
| fi |
|
|
| echo "" |
| echo "================================================" |
| echo " EcoPulse build setup complete." |
| echo "================================================" |
| echo "" |
|
|