mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-08-31 09:40:38 +02:00
Record wild-AI audit, Meta provider class, and stock-negative expansion
The wild vendor-flagged AI cell (300 stratified rows) puts Model 1 recall at 69.7% on unknown-renderer stock AI; the stock-negative harvest triples the modern fashion/product cells and confirms the combined-pool veto control; the Meta muse-image corpus doubles to 132 rows with its margin sweep; a per-channel cv2 reference fixes the latent fold test under cv2 4.10.0. pre-commit: 1) maintain.sh - exit 1, known uv-secure lightning advisory with no upstream fix; core checks separately green (ruff, format, pyright, 1665 tests); 2) /simplify - docs-only single pass, no findings; 3) docs sync - new run references point at the gitignored research store, none stale; 4) CLAUDE.md - compact, no changes needed
This commit is contained in:
@@ -689,12 +689,22 @@ def test_non_divisible_fold_matches_modulo_cell_means() -> None:
|
||||
rng = np.random.default_rng(44041)
|
||||
pixels = rng.integers(0, 256, size=(53, 71, 3), dtype=np.uint8)
|
||||
source = pixels.astype(np.float32)
|
||||
residual = source - cv2.GaussianBlur(
|
||||
source,
|
||||
(0, 0),
|
||||
sigmaX=1.25,
|
||||
sigmaY=1.25,
|
||||
borderType=cv2.BORDER_REFLECT_101,
|
||||
# Mirror the module's documented per-channel blur: OpenCV's multi-channel
|
||||
# GaussianBlur is not bit-identical to per-channel calls (observed 3e-5 on
|
||||
# cv2 4.10.0), so a three-channel reference cannot satisfy atol=0.
|
||||
residual = np.stack(
|
||||
[
|
||||
source[:, :, channel]
|
||||
- cv2.GaussianBlur(
|
||||
source[:, :, channel].copy(),
|
||||
(0, 0),
|
||||
sigmaX=1.25,
|
||||
sigmaY=1.25,
|
||||
borderType=cv2.BORDER_REFLECT_101,
|
||||
)
|
||||
for channel in range(3)
|
||||
],
|
||||
axis=2,
|
||||
)
|
||||
expected = np.empty((16, 16, 3), dtype=np.float64)
|
||||
for tile_y in range(16):
|
||||
|
||||
Reference in New Issue
Block a user