Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ import tempfile
|
|
34 |
from huggingface_hub import hf_hub_download
|
35 |
|
36 |
def install_cuda_toolkit():
|
37 |
-
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
38 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
39 |
-
|
40 |
CUDA_TOOLKIT_FILE = "/tmp/%s" % os.path.basename(CUDA_TOOLKIT_URL)
|
41 |
subprocess.call(["wget", "-q", CUDA_TOOLKIT_URL, "-O", CUDA_TOOLKIT_FILE])
|
42 |
subprocess.call(["chmod", "+x", CUDA_TOOLKIT_FILE])
|
@@ -343,9 +343,9 @@ def make_mesh(mesh_fpath, planes):
|
|
343 |
install_cuda_toolkit()
|
344 |
@spaces.GPU
|
345 |
def make3d(images):
|
346 |
-
os.environ['CUDA_HOME'] = '/usr/local/cuda-
|
347 |
-
os.environ['PATH'] += ':/usr/local/cuda-
|
348 |
-
os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda-
|
349 |
|
350 |
cuda_path = find_cuda()
|
351 |
|
|
|
34 |
from huggingface_hub import hf_hub_download
|
35 |
|
36 |
def install_cuda_toolkit():
|
37 |
+
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
38 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
39 |
+
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run"
|
40 |
CUDA_TOOLKIT_FILE = "/tmp/%s" % os.path.basename(CUDA_TOOLKIT_URL)
|
41 |
subprocess.call(["wget", "-q", CUDA_TOOLKIT_URL, "-O", CUDA_TOOLKIT_FILE])
|
42 |
subprocess.call(["chmod", "+x", CUDA_TOOLKIT_FILE])
|
|
|
343 |
install_cuda_toolkit()
|
344 |
@spaces.GPU
|
345 |
def make3d(images):
|
346 |
+
os.environ['CUDA_HOME'] = '/usr/local/cuda-12.1'
|
347 |
+
os.environ['PATH'] += ':/usr/local/cuda-12.1/bin'
|
348 |
+
os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda-12.1/lib64'
|
349 |
|
350 |
cuda_path = find_cuda()
|
351 |
|