Spaces:
Running
on
Zero
Running
on
Zero
JianyuanWang
commited on
Commit
•
7c6db12
1
Parent(s):
a6567d4
close center order back
Browse files- vggsfm_code/hf_demo.py +5 -5
vggsfm_code/hf_demo.py
CHANGED
@@ -263,11 +263,11 @@ def run_one_scene(model, images, crop_params=None, query_frame_num=3, image_path
|
|
263 |
cfg=cfg,
|
264 |
)
|
265 |
|
266 |
-
if cfg.center_order:
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
|
272 |
if cfg.filter_invalid_frame:
|
273 |
raw_image_paths = np.array(raw_image_paths)[valid_frame_mask.cpu().numpy().tolist()].tolist()
|
|
|
263 |
cfg=cfg,
|
264 |
)
|
265 |
|
266 |
+
# if cfg.center_order:
|
267 |
+
# # NOTE we changed the image order previously, now we need to switch it back
|
268 |
+
# BA_cameras_PT3D = BA_cameras_PT3D[center_order]
|
269 |
+
# extrinsics_opencv = extrinsics_opencv[center_order]
|
270 |
+
# intrinsics_opencv = intrinsics_opencv[center_order]
|
271 |
|
272 |
if cfg.filter_invalid_frame:
|
273 |
raw_image_paths = np.array(raw_image_paths)[valid_frame_mask.cpu().numpy().tolist()].tolist()
|