mlreco.post_processing.metrics.deghosting_metrics module

mlreco.post_processing.metrics.deghosting_metrics.deghosting_metrics(cfg, module_cfg, data_blob, res, logdir, iteration, data_idx=None, input_data=None, seg_label=None, segmentation=None, seg_prediction=None, **kwargs)[source]

Some useful metrics to measure deghosting performance

Parameters
  • data_blob (dict) – Input dictionary returned by iotools

  • res (dict) – Results from the network, dictionary using analysis_keys

  • cfg (dict) – Configuration

  • idx (int) – Iteration number

  • Input

  • -----

  • the following analysis keys (Requires) –

  • segmentation (-) –

  • ghost only if 5+2 types architecture for GhostNet (-) –

  • the following input keys (Requires) –

  • input_data (-) –

  • segment_label (-) –

  • no minibatching (Assumes) –

Output

Writes to a CSV file `deghosting_metrics-*`