Spaces:
Running
on
L40S
Running
on
L40S
Update app_hg.py
Browse files
app_hg.py
CHANGED
@@ -58,6 +58,7 @@ def install_cuda_toolkit():
|
|
58 |
|
59 |
def install_requirements():
|
60 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/NVlabs/nvdiffrast"])
|
|
|
61 |
# subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/facebookresearch/pytorch3d@stable"])
|
62 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/facebookresearch/[email protected]"])
|
63 |
|
@@ -93,7 +94,7 @@ def download_models():
|
|
93 |
except Exception as e:
|
94 |
print(f"Error downloading DUSt3R: {e}")
|
95 |
|
96 |
-
install_cuda_toolkit()
|
97 |
install_requirements()
|
98 |
download_models() ### download weights !!!!
|
99 |
|
|
|
58 |
|
59 |
def install_requirements():
|
60 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/NVlabs/nvdiffrast"])
|
61 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "setuptools", "wheel"])
|
62 |
# subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/facebookresearch/pytorch3d@stable"])
|
63 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/facebookresearch/[email protected]"])
|
64 |
|
|
|
94 |
except Exception as e:
|
95 |
print(f"Error downloading DUSt3R: {e}")
|
96 |
|
97 |
+
# install_cuda_toolkit()
|
98 |
install_requirements()
|
99 |
download_models() ### download weights !!!!
|
100 |
|