ConvertItem
- class scripts.convert.ConvertItem(inbound: FrameFaces, feed_faces: list[AlignedFace] = <factory>, reference_faces: list[AlignedFace] = <factory>, swapped_faces: ndarray = <factory>)
Bases:
objectA single frame with associated objects passing through the convert process.
- Parameters:
input – The FrameFaces object holding the
filename,imageand attr:list ofDetectedFaceobjects loaded from diskfeed_faces (list[lib.align.aligned_face.AlignedFace]) – list of
lib.align.AlignedFaceobjects for feeding into the model’s predict functionreference_faces (list[lib.align.aligned_face.AlignedFace]) – list of
lib.align.AlignedFaceobjects at model output sized for using as reference in the convert function for feeding into the model’s predictswapped_faces (numpy.ndarray) – The swapped faces returned from the model’s predict function
inbound (FrameFaces)