mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
MediaPipe >= 0.10.30 removed the mp.solutions namespace. This broke face blur, face enhance, red-eye removal, and photo restoration for users running newer mediapipe versions (closes #43). All 5 Python scripts that use mediapipe now try the legacy mp.solutions API first and fall back to the new mp.tasks API on AttributeError. Model files (blaze_face_short_range.task, face_landmarker.task) are pre-downloaded during Docker build into /opt/models/mediapipe/ so the image works fully airgapped. Local dev auto-downloads to .models/. Co-authored-by: stirling-image <stirling-image@users.noreply.github.com>