Don't let face crop save failures abort the entire indexing
This commit is contained in:
parent
9abc22ade5
commit
6427c09f52
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ const indexFaces_ = async (enteFile: EnteFile, imageBitmap: ImageBitmap) => {
|
|||
if (detectedFaces.length > 0) {
|
||||
await Promise.all(
|
||||
detectedFaces.map((face) => saveFaceCrop(imageBitmap, face)),
|
||||
);
|
||||
).catch((e) => log.error("Ignoring error when saving face crop", e));
|
||||
|
||||
// Execute the face alignment calculations
|
||||
for (const face of mlFile.faces) {
|
||||
|
|
Loading…
Add table
Reference in a new issue