Spaces:
Runtime error
Runtime error
Update PIFu/spaces.py
Browse files- PIFu/spaces.py +2 -3
PIFu/spaces.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import os
|
2 |
-
|
|
|
3 |
try:
|
4 |
os.system("pip install --upgrade torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html")
|
5 |
except Exception as e:
|
@@ -23,8 +24,6 @@ from types import SimpleNamespace
|
|
23 |
import trimesh
|
24 |
import glob
|
25 |
|
26 |
-
os.environ["CUDA_VISIBLE_DEVICES"]="0"
|
27 |
-
|
28 |
print(
|
29 |
"torch: ", torch.__version__,
|
30 |
"\ntorchvision: ", torchvision.__version__,
|
|
|
1 |
import os
|
2 |
+
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
|
3 |
+
os.environ["CUDA_VISIBLE_DEVICES"]="0"
|
4 |
try:
|
5 |
os.system("pip install --upgrade torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html")
|
6 |
except Exception as e:
|
|
|
24 |
import trimesh
|
25 |
import glob
|
26 |
|
|
|
|
|
27 |
print(
|
28 |
"torch: ", torch.__version__,
|
29 |
"\ntorchvision: ", torchvision.__version__,
|