NumpyToList
- class lib.align.updater.NumpyToList(alignments: dict[str, Any], version: float)
Bases:
_UpdaterLandmarks stored as a numpy array instead of a list
Attributes Summary
Trueif this updater has been run otherwiseFalseMethods Summary
test()check for legacy landmarks and thumbnails stored as
numpy.ndarrayrather than listupdate()Update landmarks and thumbnails stored as
numpy.ndarrayto list.Attributes Documentation
- Parameters:
alignments (dict[str, T.Any])
version (float)
- is_updated
Trueif this updater has been run otherwiseFalse
Methods Documentation
- test() bool
check for legacy landmarks and thumbnails stored as
numpy.ndarrayrather than list- Return type:
Trueif any landmarks or thumbnails are a numpy array otherwiseFalse
- update() int
Update landmarks and thumbnails stored as
numpy.ndarrayto list.- Return type:
The number of faces that were changed
- test() bool
check for legacy landmarks and thumbnails stored as
numpy.ndarrayrather than list- Return type:
Trueif any landmarks or thumbnails are a numpy array otherwiseFalse
- update() int
Update landmarks and thumbnails stored as
numpy.ndarrayto list.- Return type:
The number of faces that were changed