Deepfake Authenticator commited on
Commit ·
f38836d
1
Parent(s): f5a4957
fix: Increase threshold reduction to 0.18 for high-confidence temporal artifacts
Browse files- backend/detector.py +2 -2
backend/detector.py
CHANGED
|
@@ -887,9 +887,9 @@ class ReportGeneratorAgent:
|
|
| 887 |
temporal_score = temporal.get("temporal_fake_score", 0.5)
|
| 888 |
temporal_conf = temporal.get("confidence", 0.0)
|
| 889 |
|
| 890 |
-
# If temporal detected strong artifacts, lower threshold
|
| 891 |
if temporal_score > 0.65 and temporal_conf > 0.85:
|
| 892 |
-
threshold -= 0.
|
| 893 |
logger.info(f"Strong temporal artifacts detected → threshold lowered to {threshold:.3f}")
|
| 894 |
elif consistency >= 0.70 and coverage >= 0.50:
|
| 895 |
threshold -= 0.06
|
|
|
|
| 887 |
temporal_score = temporal.get("temporal_fake_score", 0.5)
|
| 888 |
temporal_conf = temporal.get("confidence", 0.0)
|
| 889 |
|
| 890 |
+
# If temporal detected strong artifacts, lower threshold significantly
|
| 891 |
if temporal_score > 0.65 and temporal_conf > 0.85:
|
| 892 |
+
threshold -= 0.18 # Aggressive threshold reduction for high-confidence temporal detection
|
| 893 |
logger.info(f"Strong temporal artifacts detected → threshold lowered to {threshold:.3f}")
|
| 894 |
elif consistency >= 0.70 and coverage >= 0.50:
|
| 895 |
threshold -= 0.06
|