Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,19 +7,14 @@ import argparse
|
|
7 |
import sys
|
8 |
import torch
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
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
|