Spaces:
Running
on
Zero
Running
on
Zero
udpate
Browse files- README.md +4 -1
- app.py +2 -1
- requirements.txt +3 -5
README.md
CHANGED
@@ -3,7 +3,10 @@ title: ViewCrafter
|
|
3 |
emoji: 🐨
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
-
|
|
|
|
|
|
|
7 |
pinned: false
|
8 |
license: other
|
9 |
---
|
|
|
3 |
emoji: 🐨
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
+
python_version: 3.9.16
|
7 |
+
sdk: gradio
|
8 |
+
sdk_version: 4.36.0
|
9 |
+
app_file: app.py
|
10 |
pinned: false
|
11 |
license: other
|
12 |
---
|
app.py
CHANGED
@@ -2,10 +2,11 @@ import os
|
|
2 |
import torch
|
3 |
import sys
|
4 |
|
|
|
|
|
5 |
os.system("wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/")
|
6 |
|
7 |
import gradio as gr
|
8 |
-
|
9 |
import random
|
10 |
from viewcrafter import ViewCrafter
|
11 |
from configs.infer_config import get_parser
|
|
|
2 |
import torch
|
3 |
import sys
|
4 |
|
5 |
+
# os.system('pip install iopath')
|
6 |
+
os.system("pip install -v -v -v 'git+https://github.com/facebookresearch/pytorch3d.git@stable'")
|
7 |
os.system("wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/")
|
8 |
|
9 |
import gradio as gr
|
|
|
10 |
import random
|
11 |
from viewcrafter import ViewCrafter
|
12 |
from configs.infer_config import get_parser
|
requirements.txt
CHANGED
@@ -3,7 +3,7 @@ decord==0.6.0
|
|
3 |
einops==0.6.1
|
4 |
imageio==2.27.0
|
5 |
imageio-ffmpeg==0.4.8
|
6 |
-
torch==
|
7 |
torchvision
|
8 |
kornia
|
9 |
matplotlib==3.9.2
|
@@ -26,8 +26,7 @@ tqdm==4.65.0
|
|
26 |
transformers==4.28.1
|
27 |
trimesh==4.4.3
|
28 |
xformers
|
29 |
-
gradio
|
30 |
-
gradio_client
|
31 |
omegaconf==2.3.0
|
32 |
triton
|
33 |
altair==5.4.0
|
@@ -38,6 +37,5 @@ Pygments==2.18.0
|
|
38 |
starlette==0.38.2
|
39 |
tifffile==2024.8.24
|
40 |
yarl==1.9.4
|
41 |
-
spaces
|
42 |
huggingface_hub
|
43 |
-
|
|
|
3 |
einops==0.6.1
|
4 |
imageio==2.27.0
|
5 |
imageio-ffmpeg==0.4.8
|
6 |
+
torch==1.13.1
|
7 |
torchvision
|
8 |
kornia
|
9 |
matplotlib==3.9.2
|
|
|
26 |
transformers==4.28.1
|
27 |
trimesh==4.4.3
|
28 |
xformers
|
29 |
+
gradio==4.42.0
|
|
|
30 |
omegaconf==2.3.0
|
31 |
triton
|
32 |
altair==5.4.0
|
|
|
37 |
starlette==0.38.2
|
38 |
tifffile==2024.8.24
|
39 |
yarl==1.9.4
|
|
|
40 |
huggingface_hub
|
41 |
+
spaces
|