Spaces:
Sleeping
Sleeping
File size: 736 Bytes
6810092 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#!/bin/bash
echo "Setting up Wall Color Visualizer Backend..."
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install dependencies
pip install -r requirements.txt
# Download SAM model checkpoint (vit_h - largest and most accurate)
echo "Downloading SAM model checkpoint..."
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
# Alternative: Download smaller models if needed
# wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth
# wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth
echo "Setup complete!"
echo "To start the server, run: uvicorn main:app --reload --host 0.0.0.0 --port 8000"
|