Spaces:
Running
on
Zero
Running
on
Zero
kxhit
commited on
Commit
•
5fab9f2
1
Parent(s):
de95953
clean requirements
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import gradio as gr
|
|
6 |
import os
|
7 |
import shutil
|
8 |
import numpy as np
|
|
|
9 |
import open3d as o3d
|
10 |
from PIL import Image
|
11 |
import torchvision
|
@@ -263,7 +264,6 @@ from dust3r.utils.image import load_images, rgb
|
|
263 |
from dust3r.utils.device import to_numpy
|
264 |
from dust3r.viz import add_scene_cam, CAM_COLORS, OPENGL, pts3d_to_trimesh, cat_meshes
|
265 |
from dust3r.cloud_opt import global_aligner, GlobalAlignerMode
|
266 |
-
import math
|
267 |
|
268 |
@spaces.GPU
|
269 |
def _convert_scene_output_to_glb(outdir, imgs, pts3d, mask, focals, cams2world, cam_size=0.05,
|
|
|
6 |
import os
|
7 |
import shutil
|
8 |
import numpy as np
|
9 |
+
import math
|
10 |
import open3d as o3d
|
11 |
from PIL import Image
|
12 |
import torchvision
|
|
|
264 |
from dust3r.utils.device import to_numpy
|
265 |
from dust3r.viz import add_scene_cam, CAM_COLORS, OPENGL, pts3d_to_trimesh, cat_meshes
|
266 |
from dust3r.cloud_opt import global_aligner, GlobalAlignerMode
|
|
|
267 |
|
268 |
@spaces.GPU
|
269 |
def _convert_scene_output_to_glb(outdir, imgs, pts3d, mask, focals, cams2world, cam_size=0.05,
|