fix: surface skip reasons and suppress norm_crop FutureWarning

process_face_mode now returns a descriptive string instead of None for
filtered-out faces ("face too small 45x38px, min 90px", "no face
metadata"), so the executor can print a useful reason rather than the
generic "no usable face data".

Also suppresses the InsightFace norm_crop FutureWarning about deprecated
estimate usage, which was noisy at INFO level on every aligned crop.
This commit is contained in:
2026-06-17 17:18:43 +00:00
parent c4910d82ef
commit b69f776378
2 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -202,8 +202,9 @@ def execute_jobs(jobs: list[dict]) -> None:
count += 1
else:
reason = saved if isinstance(saved, str) else "no usable face data"
progress.console.print(
f"[yellow]Skipped {asset['id']} (no usable face data)[/yellow]"
f"[yellow]Skipped {asset['id']} ({reason})[/yellow]"
)
except Exception as e:
logger.error("Failed to process asset %s: %s", asset.get("id", "<unknown>"), e)