There was an error while loading. Please reload this page.
1 parent 6043741 commit 30d087aCopy full SHA for 30d087a
1 file changed
lib/align/objects.py
@@ -220,9 +220,9 @@ class PNGAlignments(DataclassDict):
220
"""The height of the bounding box"""
221
landmarks_xy: npt.NDArray[np.float32]
222
"""The (x, y) landmark points of the face"""
223
- mask: dict[str, MaskAlignmentsFile]
+ mask: dict[str, MaskAlignmentsFile] = field(default_factory=dict)
224
"""The masks stored for the face"""
225
- identity: dict[str, npt.NDArray[np.float32]]
+ identity: dict[str, npt.NDArray[np.float32]] = field(default_factory=dict)
226
"""The identity vectors stored for the face"""
227
228
def __repr__(self) -> str:
0 commit comments