Files
hacksider-Deep-Live-Cam/modules
Max Buckley bcdd0ce2dd Apple Silicon performance: 1.5 → 10+ FPS (zero quality loss)
Fix CoreML execution provider falling back to CPU silently, eliminate
redundant per-frame face detection, and optimize the paste-back blend
to operate on the face bounding box instead of the full frame.

All changes are quality-neutral (pixel-identical output verified) and
benefit non-Mac platforms via the shared detection and paste-back
improvements.

Changes:
- Remove unsupported CoreML options (RequireStaticShapes, MaximumCacheSize)
  that caused ORT 1.24 to silently fall back to CPUExecutionProvider
- Add _fast_paste_back(): bbox-restricted erode/blur/blend, skip dead
  fake_diff code in insightface's inswapper (computed but never used)
- process_frame() accepts optional pre-detected target_face to avoid
  redundant get_one_face() call (~30-40ms saved per frame, all platforms)
- In-memory pipeline detects face once and shares across processors
- Fix get_face_swapper() to fall back to FP16 model when FP32 absent
- Fix pre_start() to accept either model variant (was FP16-only check)
- Make tensorflow import conditional (fixes crash on macOS)
- Add missing tqdm dep, make tensorflow/pygrabber platform-conditional

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 14:28:07 +02:00
..
2025-05-13 00:14:49 +08:00
2026-02-12 19:44:04 +08:00
2024-09-10 05:40:55 +05:30
2025-10-12 22:33:09 +08:00
2025-01-07 14:04:18 +08:00
2026-04-09 16:04:00 +08:00
2026-02-12 19:44:04 +08:00
2025-10-12 22:33:09 +08:00
2025-10-12 22:33:09 +08:00
2023-09-24 21:36:57 +08:00
2024-09-19 17:38:02 +08:00
2026-04-01 23:56:01 +08:00
2026-04-09 16:25:22 +08:00
2024-12-16 18:41:39 +05:30