firelight package¶
firelight.config_parsing module¶
-
firelight.config_parsing.get_single_key_value_pair(d)[source]¶ Returns the key and value of a one element dictionary, checking that it actually has only one element
-
firelight.config_parsing.get_visualizer(config, indentation=0)[source]¶ Parses a yaml configuration file to construct a visualizer.
- Parameters
- Returns
BaseVisualizer
firelight.inferno_callback module¶
-
firelight.inferno_callback.get_visualization_callback(config)[source]¶ Gets an
infernocallback for logging of firelight visualizations.Uses the
inferno.trainers.basic.Trainerstate dictionary as input for the visualizers.The logging frequency is taken from the trainer’s
inferno.trainers.callbacks.logging.tensorboard.TensorboardLogger.- Parameters
If
str, will be converted todictusing pyyaml.If
dict, the keys are the tags under which the visualizations will be saved in Tensorboard, while the values are the configuration dictionaries to get the visualizers producing these visualizations, usingfirelight.config_parsing.get_visualizer().- Returns
Examples
The structure of a configuration file could look like this:
# visualize model predictions predictions: RowVisualizer: ... # visualize something else fancy_visualization: RowVisualizer: ...
This configuration would produce images that are saved under the tags
predictionsandfancy_visualizationin Tensorboard.