4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-10 18:17:31 +08:00

Show viewer resolution as WxH instead of HxW (#2948)

This commit is contained in:
Brent Yi 2024-02-23 10:21:02 -08:00 committed by GitHub
parent 29ddd2ca3a
commit 4dcbfc55fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,7 +306,7 @@ class RenderStateMachine(threading.Thread):
jpeg_quality=jpg_quality,
depth=depth,
)
res = f"{selected_output.shape[0]}x{selected_output.shape[1]}px"
res = f"{selected_output.shape[1]}x{selected_output.shape[0]}px"
self.viewer.stats_markdown.content = self.viewer.make_stats_markdown(None, res)
def _calculate_image_res(self, aspect_ratio: float) -> Tuple[int, int]: