Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import spaces
|
2 |
import os
|
|
|
|
|
3 |
subprocess.run(
|
4 |
shlex.split(
|
5 |
"pip install ./nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
|
@@ -33,11 +35,11 @@ from src.utils.camera_util import (
|
|
33 |
)
|
34 |
from src.utils.mesh_util import save_obj, save_glb
|
35 |
from src.utils.infer_util import remove_background, resize_foreground, images_to_video
|
36 |
-
|
37 |
import sys
|
38 |
import tempfile
|
39 |
from huggingface_hub import hf_hub_download
|
40 |
-
|
41 |
|
42 |
def install_cuda_toolkit():
|
43 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
|
|
1 |
import spaces
|
2 |
import os
|
3 |
+
import subprocess
|
4 |
+
import shlex
|
5 |
subprocess.run(
|
6 |
shlex.split(
|
7 |
"pip install ./nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
|
|
|
35 |
)
|
36 |
from src.utils.mesh_util import save_obj, save_glb
|
37 |
from src.utils.infer_util import remove_background, resize_foreground, images_to_video
|
38 |
+
|
39 |
import sys
|
40 |
import tempfile
|
41 |
from huggingface_hub import hf_hub_download
|
42 |
+
|
43 |
|
44 |
def install_cuda_toolkit():
|
45 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|