Vo Minh Vu commited on
Commit
9c912d7
·
1 Parent(s): 76ca504

Update setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +10 -2
setup.sh CHANGED
@@ -1,5 +1,13 @@
1
  #!/usr/bin/env bash
2
  set -e
3
 
4
- # 2) Then install the rest
5
- pip install -r requirements.txt
 
 
 
 
 
 
 
 
 
1
  #!/usr/bin/env bash
2
  set -e
3
 
4
+ # 1) Upgrade pip itself
5
+ python3 -m pip install --upgrade pip
6
+
7
+ # 2) Install PyTorch FIRST (CPU‐only here; switch to +cu118 for GPU)
8
+ python3 -m pip install \
9
+ torch==2.0.1+cpu \
10
+ --extra-index-url https://download.pytorch.org/whl/cpu
11
+
12
+ # 3) Now install everything else (this includes torchmcubes --no-binary)
13
+ python3 -m pip install -r requirements.txt