nicetoolbox.evaluation.in_out.IO¶
- class nicetoolbox.evaluation.in_out.IO(io_config: EvaluationIO, experiment_io: DetectorsRunIO, cfg_loader: ConfigLoader)[source]¶
Bases:
objectManages folder structure and reading/writing NPZ results.
Initialize the IO manager with the provided IO configuration.
- Parameters:
io_config (IOConfig) – Configuration object containing paths for experiment, output, and evaluation visualization folders.
Methods
Returns the path to the CSV folder within the output directory.
Returns the path to the detector results file based on the video configuration, component, and algorithm.
Returns the output folder path based on the provided parameters.
Dataset-specific IO initialization inside the main dataset loop.
Save arrays to a compressed NPZ file.
Save a summary dict to a CSV file.
Attributes
output_foldereval_visualization_folderexperiment_folderdataset_nameexperiment_results_folderpath_to_annotationspath_to_calibrations- get_detector_results_file(video_config, component, algorithm)[source]¶
Returns the path to the detector results file based on the video configuration, component, and algorithm.
- Parameters:
video_config (RunConfigVideo) – Configuration for the video run.
component (str) – Name of the component.
algorithm (str) – Name of the algorithm.
- Returns:
The path to the detector results file.
- Return type:
Path
- get_out_folder(selection='', component='')[source]¶
Returns the output folder path based on the provided parameters.
- Parameters:
selection (str) – Selection criteria for the output.
component (str) – Component name.
- Returns:
The output folder path.
- Return type:
Path