Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import spaces
|
|
6 |
# os.system('pip install iopath')
|
7 |
# os.system("pip install -v -v -v 'git+https://github.com/facebookresearch/pytorch3d.git@stable'")
|
8 |
# os.system("cd pytorch3d && pip install -e . && cd ..")
|
9 |
-
os.system("mkdir -p checkpoints/ && wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/")
|
10 |
|
11 |
import gradio as gr
|
12 |
import random
|
@@ -39,7 +38,9 @@ os.makedirs(opts.save_dir,exist_ok=True)
|
|
39 |
test_tensor = torch.Tensor([0]).cuda()
|
40 |
opts.device = str(test_tensor.device)
|
41 |
os.system('pip install iopath')
|
42 |
-
os.system("FORCE_CUDA=1
|
|
|
|
|
43 |
from viewcrafter import ViewCrafter
|
44 |
|
45 |
def viewcrafter_demo(opts):
|
|
|
6 |
# os.system('pip install iopath')
|
7 |
# os.system("pip install -v -v -v 'git+https://github.com/facebookresearch/pytorch3d.git@stable'")
|
8 |
# os.system("cd pytorch3d && pip install -e . && cd ..")
|
|
|
9 |
|
10 |
import gradio as gr
|
11 |
import random
|
|
|
38 |
test_tensor = torch.Tensor([0]).cuda()
|
39 |
opts.device = str(test_tensor.device)
|
40 |
os.system('pip install iopath')
|
41 |
+
os.system("FORCE_CUDA=1 pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'")
|
42 |
+
os.system("mkdir -p checkpoints/ && wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/")
|
43 |
+
|
44 |
from viewcrafter import ViewCrafter
|
45 |
|
46 |
def viewcrafter_demo(opts):
|