Spaces:
Sleeping
Sleeping
kyleleey
commited on
Commit
·
c2c8e22
1
Parent(s):
faa1e2c
update
Browse files
app.py
CHANGED
@@ -10,15 +10,8 @@ import torch
|
|
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 |
-
pyt_version_str=torch.__version__.split("+")[0].replace(".", "")
|
14 |
-
version_str="".join([
|
15 |
-
f"py3{sys.version_info.minor}_cu",
|
16 |
-
torch.version.cuda.replace(".",""),
|
17 |
-
f"_pyt{pyt_version_str}"
|
18 |
-
])
|
19 |
os.system('pip install fvcore iopath')
|
20 |
-
os.system(
|
21 |
-
# os.system('pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"')
|
22 |
|
23 |
import cv2
|
24 |
import time
|
|
|
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 |
import cv2
|
17 |
import time
|