app.py
CHANGED
@@ -86,7 +86,7 @@ def get_3D_model_from_scene(outdir, silent, scene, min_conf_thr=3, as_pointcloud
|
|
86 |
transparent_cams=transparent_cams, cam_size=cam_size, show_cam=show_cam, silent=silent, save_name=save_name,
|
87 |
cam_color=cam_color)
|
88 |
|
89 |
-
@spaces.GPU(duration=180)
|
90 |
def generate_monocular_depth_maps(img_list, depth_prior_name):
|
91 |
depth_list = []
|
92 |
focallength_px_list = []
|
@@ -121,7 +121,7 @@ def generate_monocular_depth_maps(img_list, depth_prior_name):
|
|
121 |
#np.savez_compressed(path_depthanything, depth=depth)
|
122 |
return depth_list, focallength_px_list
|
123 |
|
124 |
-
@spaces.GPU(duration=180)
|
125 |
def local_get_reconstructed_scene(filelist, min_conf_thr, as_pointcloud, mask_sky, clean_depth, transparent_cams, cam_size, depth_prior_name, **kw):
|
126 |
depth_list, focallength_px_list = generate_monocular_depth_maps(filelist, depth_prior_name)
|
127 |
imgs = load_images(filelist, depth_list, focallength_px_list, size=image_size, verbose=not silent,traj_format='custom', depth_prior_name=depth_prior_name)
|
|
|
86 |
transparent_cams=transparent_cams, cam_size=cam_size, show_cam=show_cam, silent=silent, save_name=save_name,
|
87 |
cam_color=cam_color)
|
88 |
|
89 |
+
# @spaces.GPU(duration=180)
|
90 |
def generate_monocular_depth_maps(img_list, depth_prior_name):
|
91 |
depth_list = []
|
92 |
focallength_px_list = []
|
|
|
121 |
#np.savez_compressed(path_depthanything, depth=depth)
|
122 |
return depth_list, focallength_px_list
|
123 |
|
124 |
+
# @spaces.GPU(duration=180)
|
125 |
def local_get_reconstructed_scene(filelist, min_conf_thr, as_pointcloud, mask_sky, clean_depth, transparent_cams, cam_size, depth_prior_name, **kw):
|
126 |
depth_list, focallength_px_list = generate_monocular_depth_maps(filelist, depth_prior_name)
|
127 |
imgs = load_images(filelist, depth_list, focallength_px_list, size=image_size, verbose=not silent,traj_format='custom', depth_prior_name=depth_prior_name)
|