vis4d.vis.base

Visualizer base class.

Classes

Visualizer([vis_freq, image_mode])

Base visualizer class.

class Visualizer(vis_freq=50, image_mode='RGB')[source]

Base visualizer class.

Initialize the visualizer.

Parameters:
  • vis_freq (int) – Visualization frequency. Defaults to 0.

  • image_mode (str) – Image channel mode (RGB or BGR).

process(cur_iter, *args)[source]

Process data of single sample.

Return type:

None

reset()[source]

Reset visualizer for new round of evaluation.

Return type:

None

save_to_disk(cur_iter, output_folder)[source]

Saves the visualization to disk.

Parameters:
  • cur_iter (int) – Current iteration.

  • output_folder (str) – Folder where the output should be written.

Return type:

None

show(cur_iter, blocking=True)[source]

Shows the visualization.

Parameters:
  • cur_iter (int) – Current iteration.

  • blocking (bool) – If the visualization should be blocking and wait for human input. Defaults to True.

Return type:

None