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

nerfbaselines.viewer.build_static_viewer(output, params=None)[source]

Builds the viewer in the given path.

Parameters:

output – The path to write the viewer to.

nerfbaselines.viewer.export_viewer_dataset(train_dataset=None, test_dataset=None) Dict[source]
nerfbaselines.viewer.get_viewer_params_from_dataset_metadata(dataset_metadata, include_registry_data: bool = True)[source]
nerfbaselines.viewer.get_viewer_params_from_nb_info(nb_info, include_registry_data: bool = True)[source]
nerfbaselines.viewer.merge_viewer_params(*args)[source]
nerfbaselines.viewer.write_dataset_pointcloud(file, points3D_xyz, points3D_rgb=None)[source]