Kyle-Liz commited on
Commit
03670ae
1 Parent(s): 16db640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -13
app.py CHANGED
@@ -7,19 +7,14 @@ import argparse
7
  import sys
8
  import torch
9
 
10
- # if os.getenv('SYSTEM') == 'spaces':
11
- # os.system('pip install --global-option="--no-networks" git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch')
12
-
13
- # os.system('pip install fvcore iopath')
14
- # os.system('pip install "git+https://github.com/facebookresearch/pytorch3d.git"')
15
-
16
- os.system('nvidia-smi')
17
-
18
- os.system('pip install --global-option="--no-networks" --use-pep517 git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch')
19
- os.system('pip install fvcore iopath')
20
- os.system('pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu113_pyt1100/download.html')
21
- # os.system('pip install "git+https://github.com/facebookresearch/pytorch3d.git"')
22
-
23
  import cv2
24
  import time
25
  import numpy as np
 
7
  import sys
8
  import torch
9
 
10
+ if os.getenv('SYSTEM') == 'spaces':
11
+ os.system('pip install --global-option="--no-networks" git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch')
12
+ print('tcnn done')
13
+ os.system('pip install fvcore iopath')
14
+ print('fvcore done')
15
+ os.system('pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu113_pyt1100/download.html')
16
+ print('pt3d done')
17
+
 
 
 
 
 
18
  import cv2
19
  import time
20
  import numpy as np