Spaces:
Sleeping
Sleeping
Commit History
-
Add batch QA test harness (scripts/batch_test.py)
Swaps N source faces x gender x location on GPU, saves results + a contact-sheet grid per location + a metrics CSV (blend/delta_e/naturalness). Face-only by default (~7-9s/swap, full 3800 matrix ~7-8h overnight); --hair adds HairFastGAN (slow, for small samples). Drop diverse faces in tests/faces/<gender>/. Verified: 1 swap in 8.9s on the RTX 4060.8a16253
-
test: fix false-positive pipeline test + cover super-res and face-mask paths
- test_pipeline.py: the old progress-callback test fed a faceless flat image, so the pipeline returned early at stage 5 and the test passed without ever exercising the swap path. Rewrote it to assert the real callback contract (fires at pct=5 'Detecting faces', returns error). Removed unused pytest import. - Added test_super_res_lanczos_fallback_upscales_4x — guarantees enhance_resolution delivers a 4x image even when SR model weights are absent (never silent no-op). - Added test_match_skin_tone_confined_to_face_mask — verifies the tone transfer stays inside the mask and leaves the rest of the image bit-exact. - skin_tone.py: composite match_skin_tone in BGR (not LAB) so masked-out pixels keep their exact original values — no LAB round-trip ±1 drift. - test_skin_tone.py: removed unused pytest import.f3c5fbe
-
Initial commit: DeepFace Studio - AI face swap web application
Features: - React + Vite frontend with Firebase Google authentication - 10-day session persistence - Flask backend with face swap pipeline - InsightFace inswapper deep swap model - Hair-to-neck seamless blending - Skin tone matching (CIE LAB) - Laplacian + Poisson blending - Live camera capture + image upload - Quality metrics dashboard - Responsive UI with olive/green color palette - GPU + CPU support (auto-detected)e7a5a81