Spaces:
Runtime error
Runtime error
Create setup.sh
Browse files
setup.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Upgrade pip
|
| 4 |
+
pip install --no-cache-dir --upgrade pip
|
| 5 |
+
|
| 6 |
+
# Install PyTorch and torchvision first
|
| 7 |
+
pip install torch==1.13.1+cpu torchvision==0.14.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
| 8 |
+
|
| 9 |
+
# Install Detectron2
|
| 10 |
+
pip install git+https://github.com/facebookresearch/detectron2.git
|
| 11 |
+
|
| 12 |
+
# Install other dependencies
|
| 13 |
+
pip install -r requirements.txt
|