Extend non-SynthID image watermark routing, TrustMark P/Q/C removal, and benchmark adapters

This commit is contained in:
Victor Kuznetsov committed 2026-11-08 19:16:38 -08:00
1 parent 3168d87846
commit bc199dd556
23 files changed
+1293 -120

No files matched your search

+17
View File
@@ -202,6 +202,23 @@ The direct call needs the `pixels` extra. It writes atomically only after the
encoded output no longer decodes as a valid local payload. The result does not
claim acceptance by a proprietary Microsoft detector.
Callers with the `trustmark` extra can similarly inspect or apply Adobe
TrustMark's variant-matched neural remover (`"P"`, `"Q"`, or `"C"`) directly:
```python
from remove_ai_watermarks.trustmark_detector import (
detect_trustmark_detailed,
remove_trustmark,
)
detection = detect_trustmark_detailed("adobe.jpg", variant="P")
if detection is not None:
removed = remove_trustmark("adobe.jpg", "clean.jpg", variant=detection.variant)
```
`remove_trustmark` writes atomically only when the input passes the durable
re-encode gate for `variant` and the written file no longer passes that gate.
The complete field set, with the shipped defaults:
| Field | Default | Effect |