Output

class scripts.extract.Output(pipeline: ExtractRunner, output_folder: str | None, size: int, min_scale: int, batches: list[BatchInfo], save_interval: int, debug_landmarks: bool)

Bases: object

Handles output processing and saving of extracted faces

Parameters:
  • pipeline (ExtractRunner) – The output runner from the extraction pipeline

  • output_folder (str | None) – The full path to the output folder to save extracted faces. None to not save faces

  • size (int) – The size to save extracted faces at

  • min_scale (int) – The minimum percentage of the output size that should be accepted for outputting a face to disk

  • batches (list[BatchInfo]) – The information about each batch that is to be processed

  • save_interval (int) – How often to save the alignments file

  • debug_landmarks (bool) – True to annotate the output images with debug data

Methods Summary

join()

Join the output thread

start()

Start the output thread

Methods Documentation

join() None

Join the output thread

Return type:

None

start() None

Start the output thread

Return type:

None

join() None

Join the output thread

Return type:

None

start() None

Start the output thread

Return type:

None