diff --git a/nerfstudio/viewer/server/viewer_utils.py b/nerfstudio/viewer/server/viewer_utils.py index 1a3fefd51..93dc908b6 100644 --- a/nerfstudio/viewer/server/viewer_utils.py +++ b/nerfstudio/viewer/server/viewer_utils.py @@ -826,7 +826,7 @@ class ViewerState: else: image_height = (num_vis_rays / aspect_ratio) ** 0.5 image_height = int(round(image_height, -1)) - image_height = min(self.max_resolution, image_height) + image_height = max(min(self.max_resolution, image_height), 30) image_width = int(image_height * aspect_ratio) if image_width > self.max_resolution: image_width = self.max_resolution