Generator#

class anomalib.pipelines.components.base.job.JobGenerator#

Bases: ABC

Generate Job.

The runners accept a generator that generates the jobs. The task of this class is to parse the config and return an iterator of specific jobs.

abstract generate_jobs(args=None, prev_stage_result=None)#

Return an iterator based on the arguments.

This can be used to generate the configurations that will be passed to run.

Return type:

Generator[Job, None, None]

abstract property job_class: type[Job]#

Return the job class that will be generated.