mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +08:00
Set min render value for viewer (#1339)
This commit is contained in:
1 parent
ef9e00e614
commit
3ab9352be8
1 file changed
+1
-1
@@ -826,7 +826,7 @@ class ViewerState:
|
|||||||
else:
|
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 = max(min(self.max_resolution, image_height), 30)
|
||||||
image_width = int(image_height * aspect_ratio)
|
image_width = int(image_height * aspect_ratio)
|
||||||
if image_width > self.max_resolution:
|
if image_width > self.max_resolution:
|
||||||
image_width = self.max_resolution
|
image_width = self.max_resolution
|
||||||
|
|||||||
Reference in new issue
Block a user