Sunnycodes3114 commited on
Commit
e389d2c
·
verified ·
1 Parent(s): 369e582

Create setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +13 -0
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