Spaces:
Sleeping
Sleeping
Commit History
-
Add HF Spaces deployment config and temporal consistency detectionβ
- Add packages.txt with ffmpeg/libsndfile1 for Spaces - Add README.md frontmatter for HF Spaces SDK config - Detect SPACE_ID env var to reduce max_frames to 8 on CPU Spaces - Fix server_name to 0.0.0.0 in Spaces environment - Add temporal_consistency_score() to detect face-swap flickering - Integrate temporal signal into orchestrator video analysis - Lower fake verdict threshold from 0.60 to 0.57 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3dd8115 -
Improve deepfake detection: face cropping, aggressive aggregation, tighter thresholdsβ
detectors/video_detector.py: - Add OpenCV Haar-cascade face detection before inference. When a face is found the score is 75% face-crop + 25% full-frame. Deepfake artifacts (blending seams, texture inconsistencies) live in the face region; the background was diluting the signal and causing false 'Real' verdicts. - REAL_LABELS now includes 'realism' (label used by v1 model). utils/aggregation.py: - aggregate_frame_scores: top 25% of frames instead of top 50%, so a few highly suspicious frames dominate rather than being averaged away. - Added max-frame boost: if the most suspicious frame scores > 0.65 it gets 45% weight, pushing the aggregate up on spot-deepfake moments. - score_to_verdict thresholds: fake > 0.55 (was > 0.65), real < 0.40. app.py: - Display thresholds aligned: fake > 0.55, real β€ 0.40, inconclusive only 0.40β0.55 (was 0.40β0.60 β a wide dead zone that hid deepfakes). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>78312a3
-
Initial commit: Gradio deepfake detector with ViT image and audio modelsβ
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>80a5ec4