mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-08-31 17:50:35 +02:00
Enable measured provenance relaxation for the Microsoft badge
The OCR badge census split the 343 Microsoft-C2PA uploads into 86 badge carriers and 257 true badge-less files (the watermark is a per-user opt-in). Badge-less scores max 0.251 / p99 0.213, so the 0.266 relaxed gate admits the three faint badges in [0.251, 0.38) with zero measured false fills; re-verified on the provenance path as 3 band detections and 0/257 badge-less fires.
This commit is contained in:
@@ -76,9 +76,12 @@ class TestLocate:
|
||||
|
||||
|
||||
class TestConfig:
|
||||
def test_strict_only_no_provenance_relaxation(self):
|
||||
# Provenance names Microsoft, not the presence of this visible layout.
|
||||
assert MicrosoftEngine().config.provenance_ncc_factor == 1.0
|
||||
def test_provenance_relaxation_is_the_measured_07(self):
|
||||
# The relaxed band was measured on the OCR-censused MS cohort: 257
|
||||
# badge-less files max 0.251, so the 0.266 relaxed gate admits the three
|
||||
# faint badges in [0.251, 0.38) with zero measured false fills. Do not
|
||||
# move the factor without re-censusing the badge-less cohort.
|
||||
assert MicrosoftEngine().config.provenance_ncc_factor == 0.7
|
||||
|
||||
def test_long_scale_basis(self):
|
||||
assert MicrosoftEngine().config.scale_basis == "long"
|
||||
|
||||
Reference in New Issue
Block a user