init project
Browse files- app.py +1 -1
- modules/pe3r/demo.py +0 -7
app.py
CHANGED
|
@@ -589,7 +589,7 @@ def get_reconstructed_scene(outdir, filelist, schedule='linear', niter=300, min_
|
|
| 589 |
focals = scene.get_focals().detach().cpu()
|
| 590 |
cams2world = scene.get_im_poses().detach().cpu()
|
| 591 |
pts3d = to_numpy(scene.get_pts3d())
|
| 592 |
-
min_conf_thr = float(scene.conf_trf(torch.tensor(3.0)))
|
| 593 |
msk = to_numpy(scene.get_masks())
|
| 594 |
scene_cpu = Scene_cpu(fix_imgs, cogs, focals, cams2world, pts3d, min_conf_thr, msk)
|
| 595 |
|
|
|
|
| 589 |
focals = scene.get_focals().detach().cpu()
|
| 590 |
cams2world = scene.get_im_poses().detach().cpu()
|
| 591 |
pts3d = to_numpy(scene.get_pts3d())
|
| 592 |
+
min_conf_thr = float(to_numpy(scene.conf_trf(torch.tensor(3.0))))
|
| 593 |
msk = to_numpy(scene.get_masks())
|
| 594 |
scene_cpu = Scene_cpu(fix_imgs, cogs, focals, cams2world, pts3d, min_conf_thr, msk)
|
| 595 |
|
modules/pe3r/demo.py
CHANGED
|
@@ -1,10 +1,3 @@
|
|
| 1 |
-
# Copyright (C) 2024-present Naver Corporation. All rights reserved.
|
| 2 |
-
# Licensed under CC BY-NC-SA 4.0 (non-commercial use only).
|
| 3 |
-
#
|
| 4 |
-
# --------------------------------------------------------
|
| 5 |
-
# gradio demo
|
| 6 |
-
# --------------------------------------------------------
|
| 7 |
-
|
| 8 |
import math
|
| 9 |
|
| 10 |
import gradio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import math
|
| 2 |
|
| 3 |
import gradio
|