Update app.py
Browse files
app.py
CHANGED
@@ -32,9 +32,9 @@ import tempfile
|
|
32 |
from huggingface_hub import hf_hub_download
|
33 |
|
34 |
def install_cuda_toolkit():
|
35 |
-
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
36 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
37 |
-
|
38 |
print(f"==> install cuda {CUDA_TOOLKIT_URL}")
|
39 |
CUDA_TOOLKIT_FILE = "/tmp/%s" % os.path.basename(CUDA_TOOLKIT_URL)
|
40 |
subprocess.call(["wget", "-q", CUDA_TOOLKIT_URL, "-O", CUDA_TOOLKIT_FILE])
|
@@ -286,7 +286,7 @@ model.load_state_dict(state_dict, strict=True)
|
|
286 |
|
287 |
model = model.to(device)
|
288 |
if IS_FLEXICUBES:
|
289 |
-
model.init_flexicubes_geometry(device, fovy=30.0)
|
290 |
model = model.eval()
|
291 |
|
292 |
print('Loading Finished!')
|
|
|
32 |
from huggingface_hub import hf_hub_download
|
33 |
|
34 |
def install_cuda_toolkit():
|
35 |
+
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
36 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
37 |
+
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run"
|
38 |
print(f"==> install cuda {CUDA_TOOLKIT_URL}")
|
39 |
CUDA_TOOLKIT_FILE = "/tmp/%s" % os.path.basename(CUDA_TOOLKIT_URL)
|
40 |
subprocess.call(["wget", "-q", CUDA_TOOLKIT_URL, "-O", CUDA_TOOLKIT_FILE])
|
|
|
286 |
|
287 |
model = model.to(device)
|
288 |
if IS_FLEXICUBES:
|
289 |
+
model.init_flexicubes_geometry(device, fovy=30.0, use_renderer=False)
|
290 |
model = model.eval()
|
291 |
|
292 |
print('Loading Finished!')
|