4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

fix crop_center (#1844)

crop_center
This commit is contained in:
sasaki takeru 2023-05-02 01:59:27 +09:00 committed by GitHub
parent 7887b14ca0
commit 2da4eee9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ class ViewerState:
scene_box = SceneBox(aabb=torch.stack([crop_min, crop_max], dim=0))
self.viser_server.update_scene_box(scene_box)
crop_scale = crop_max - crop_min
crop_center = crop_max + crop_min
crop_center = (crop_max + crop_min) / 2.0
self.viser_server.send_crop_params(
crop_enabled=self.control_panel.crop_viewport,
crop_bg_color=self.control_panel.background_color,