ConvertItem

class scripts.convert.ConvertItem(inbound: FrameFaces, feed_faces: list[AlignedFace] = <factory>, reference_faces: list[AlignedFace] = <factory>, swapped_faces: ndarray = <factory>)

Bases: object

A single frame with associated objects passing through the convert process.

Parameters:
  • input – The FrameFaces object holding the filename, image and attr:list of DetectedFace objects loaded from disk

  • feed_faces (list[lib.align.aligned_face.AlignedFace]) – list of lib.align.AlignedFace objects for feeding into the model’s predict function

  • reference_faces (list[lib.align.aligned_face.AlignedFace]) – list of lib.align.AlignedFace objects at model output sized for using as reference in the convert function for feeding into the model’s predict

  • swapped_faces (numpy.ndarray) – The swapped faces returned from the model’s predict function

  • inbound (FrameFaces)