LandmarkType
- class lib.align.constants.LandmarkType(*values)
Bases:
EnumEnumeration for the landmark types that Faceswap supports
Attributes Summary
Attributes Documentation
- LM_2D_4 = 1
- LM_2D_51 = 2
- LM_2D_68 = 3
- LM_2D_98 = 4
- LM_3D_26 = 5
- classmethod from_shape(shape: tuple[int, int]) LandmarkType
The landmark type for a given shape
- Parameters:
shape (tuple[int, int]) – The shape to get the landmark type for
- Return type:
The enum for the given shape
- Raises:
ValueError – If the requested shape is not valid