nerfbaselines.viewer¶ class nerfbaselines.viewer.Viewer(model=None, train_dataset=None, test_dataset=None, nb_info=None, host: str = 'localhost', port: int | None = None)[source]¶ Bases: object close()[source]¶ property port¶ run()[source]¶ Starts the update loop that continuously processes render tasks. The function will block until the viewer is closed by the user. show_in_notebook(width: str = '100%', height: str = '600')[source]¶ update() → bool[source]¶ Performs a single render task from the queue. This function should be called within the train step function to update the viewer when rendering is available. Returns: True if there are more tasks in the queue Return type: bool