hujiecpp commited on
Commit
e35a902
·
1 Parent(s): ed9f409

init project

Browse files
Files changed (1) hide show
  1. modules/pe3r/demo.py +3 -3
modules/pe3r/demo.py CHANGED
@@ -77,7 +77,7 @@ def _convert_scene_output_to_glb(outdir, imgs, pts3d, mask, focals, cams2world,
77
  scene.export(file_obj=outfile)
78
  return outfile
79
 
80
-
81
  def get_3D_model_from_scene(outdir, silent, scene, min_conf_thr=3, as_pointcloud=False, mask_sky=False,
82
  clean_depth=False, transparent_cams=False, cam_size=0.05):
83
  """
@@ -424,7 +424,7 @@ def get_cog_feats(images, pe3r, device):
424
 
425
  return cog_seg_maps, rev_cog_seg_maps, multi_view_clip_feats
426
 
427
-
428
  def get_reconstructed_scene(outdir, pe3r, device, silent, filelist, schedule, niter, min_conf_thr,
429
  as_pointcloud, mask_sky, clean_depth, transparent_cams, cam_size,
430
  scenegraph_type, winsize, refid):
@@ -511,6 +511,7 @@ def get_reconstructed_scene(outdir, pe3r, device, silent, filelist, schedule, ni
511
 
512
  return scene, outfile, imgs
513
 
 
514
  def get_3D_object_from_scene(outdir, pe3r, silent, device, text, threshold, scene, min_conf_thr, as_pointcloud,
515
  mask_sky, clean_depth, transparent_cams, cam_size):
516
 
@@ -547,7 +548,6 @@ def set_scenegraph_options(inputfiles, winsize, refid, scenegraph_type):
547
  maximum=num_files - 1, step=1, visible=False)
548
  return winsize, refid
549
 
550
- @spaces.GPU(duration=180)
551
  def main_demo(tmpdirname, server_name, server_port, silent=False):
552
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
553
 
 
77
  scene.export(file_obj=outfile)
78
  return outfile
79
 
80
+ @spaces.GPU(duration=180)
81
  def get_3D_model_from_scene(outdir, silent, scene, min_conf_thr=3, as_pointcloud=False, mask_sky=False,
82
  clean_depth=False, transparent_cams=False, cam_size=0.05):
83
  """
 
424
 
425
  return cog_seg_maps, rev_cog_seg_maps, multi_view_clip_feats
426
 
427
+ @spaces.GPU(duration=180)
428
  def get_reconstructed_scene(outdir, pe3r, device, silent, filelist, schedule, niter, min_conf_thr,
429
  as_pointcloud, mask_sky, clean_depth, transparent_cams, cam_size,
430
  scenegraph_type, winsize, refid):
 
511
 
512
  return scene, outfile, imgs
513
 
514
+ @spaces.GPU(duration=180)
515
  def get_3D_object_from_scene(outdir, pe3r, silent, device, text, threshold, scene, min_conf_thr, as_pointcloud,
516
  mask_sky, clean_depth, transparent_cams, cam_size):
517
 
 
548
  maximum=num_files - 1, step=1, visible=False)
549
  return winsize, refid
550
 
 
551
  def main_demo(tmpdirname, server_name, server_port, silent=False):
552
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
553