mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-08-31 09:40:38 +02:00
Tiled diffusion was never provider-oracle calibrated with verified text restoration: the tiled VAE donor path ran anyway and produced results no oracle had certified. The combination is now rejected at both the pipeline and the engine seam (ValueError with the reason), and the CLI help no longer implies support. The invisible help is generalized and the metadata container list corrected (MKA/OGA/Opus/AAC). scripts/contentseal_transforms.py reproduces the deterministic crop, resize, and JPEG variants of the Content Seal corpus from manifest.csv, hash-verifying every output; its README gains scripts/README.md context and new data tests. The corpus README is honest about the one crop the daily oracle limit left unchecked, and the eval CSVs carry the updated verdicts. The byte-scan SynthID suppression hoists its soft-binding lookup so the guard is computed once. Staged on top of 0.33.1; no version bump in this commit.
24 lines
865 B
Python
24 lines
865 B
Python
"""Cross-corpus integrity checks for tracked evaluation tables."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import csv
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
EVALUATIONS = ROOT / "data" / "evaluations"
|
|
SHA256 = re.compile(r"^[0-9a-f]{64}$")
|
|
|
|
|
|
def test_every_recorded_evaluation_sha256_is_well_formed() -> None:
|
|
checked = 0
|
|
for path in sorted(EVALUATIONS.rglob("*.csv")):
|
|
with path.open(newline="", encoding="utf-8") as stream:
|
|
for line_number, row in enumerate(csv.DictReader(stream), start=2):
|
|
for field, value in row.items():
|
|
if field is not None and field.endswith("sha256") and value:
|
|
assert SHA256.fullmatch(value), f"{path.relative_to(ROOT)}:{line_number} {field}={value!r}"
|
|
checked += 1
|
|
assert checked > 0
|