Runner#

class anomalib.pipelines.components.base.runner.Runner(generator)#

Base runner.

Parameters:

generator (JobGenerator) – Job generator.

abstract run(args, prev_stage_results=None)#

Run the pipeline.

Parameters:
  • args (dict) –

    Arguments specific to the job. For example, if there is a pipeline defined where one of the job generators is hyperparameter optimization, then the pipeline configuration file will look something like ```yaml arg1: arg2: hpo:

    param1: param2: …

    ``` In this case, the args will receive a dictionary with all keys under hpo.

  • prev_stage_results (PREV_STAGE_RESULT, optional) – Previous stage results. This is useful when the current stage depends on the results of the previous stage. Defaults to None.

Returns:

Gathered results from all the jobs.

Return type:

GATHERED_RESULTS

Available Runners#

Anomalib provides a few runners that can be used in your pipelines.

Serial Runner

Runner for serial jobs.

Serial Runner
Parallel Runner

Runner for parallel jobs.

Parallel Runner