Spaces:
Sleeping
Sleeping
Download setup.sh from aliroohan179/wallpaint: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/spaces/aliroohan179/wallpaint/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/aliroohan179/wallpaint/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/aliroohan179/wallpaint/resolve/main/setup.sh
736 Bytes
| 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" | |