mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Use max resolution when not moving or training (#1091)
use max resolution when not moving or training
This commit is contained in:
1 parent
2a62d8a14e
commit
f3442c8b7b
1 file changed
+3
@@ -672,6 +672,9 @@ class ViewerState:
|
|||||||
|
|
||||||
aspect_ratio = camera_object["aspect"]
|
aspect_ratio = camera_object["aspect"]
|
||||||
|
|
||||||
|
if not self.camera_moving and not is_training:
|
||||||
|
image_height = self.max_resolution
|
||||||
|
else:
|
||||||
image_height = (num_vis_rays / aspect_ratio) ** 0.5
|
image_height = (num_vis_rays / aspect_ratio) ** 0.5
|
||||||
image_height = int(round(image_height, -1))
|
image_height = int(round(image_height, -1))
|
||||||
image_height = min(self.max_resolution, image_height)
|
image_height = min(self.max_resolution, image_height)
|
||||||
|
|||||||
Reference in new issue
Block a user