Commit Graph

34 Commits

Author SHA1 Message Date
Alosh Denny b96c72b34f Merge pull request #17 from mrbeandev/add-nb-pro-reference-images
Add 93 black reference images (gemini_black_nb_pro)
2026-04-10 14:14:49 +05:30
mrbeandev a48b414623 Add 93 black reference images from Gemini (nb_pro) for SynthID analysis
Generated via Gemini Pro web UI with "Create image" tool enabled,
uploading a pure black (#000000) 1024x1024 image and prompting
"recreate this as it is". All images verified to contain SynthID
watermarks (confidence 0.52-0.67, carrier strength ~9300-9900).

These reference images are critical for carrier frequency discovery,
phase validation, and improving cross-resolution robustness.
2026-04-10 13:22:59 +05:30
Alosh Denny 2a303112e8 Merge pull request #14 from BensonRen/contrib/multi-resolution-references
Add 1062 reference images at 2 new resolutions + expanded codebook
2026-04-10 11:47:28 +05:30
Ben Ren 7bf9545df9 Add validation results for new codebook profiles
4 test images generated via Gemini API with real content:
  - 2x 9:16 (cat, mountain) at 1344x768
  - 2x 4:3 (coffee, city) at 864x1184

V3 bypass results with expanded codebook:
  | Image          | Resolution | PSNR    | SSIM   | Exact Match |
  | city (4:3)     | 864x1184   | 45.7 dB | 0.9972 | yes         |
  | coffee (4:3)   | 864x1184   | 50.0 dB | 0.9981 | yes         |
  | cat (9:16)     | 1344x768   | 50.2 dB | 0.9978 | yes         |
  | mountain (9:16)| 1344x768   | 49.1 dB | 0.9971 | yes         |

PSNR/SSIM are excellent. Phase coherence drop is near-zero, suggesting
the API-generated images may have weaker watermark embedding than
web-UI outputs, or the carrier extraction needs further tuning.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:37:22 +00:00
Ben Ren 1138f0b51a Add expanded codebook with 1344x768 and 864x1184 profiles
Extends spectral_codebook_v3 from 2 to 4 resolution profiles:
  - 1024x1024 (existing, 100b+100w refs)
  - 1536x2816 (existing, 88 watermarked refs)
  - 1344x768  (new, 154b+364w refs, top carrier coherence 0.946)
  - 864x1184  (new, 268b+295w refs, top carrier coherence 0.979)

Key findings at new resolutions:
  - 1344x768 carriers sit on the vertical axis (fy=0, fx=3..10)
  - 864x1184 carriers are at mid-frequency diagonals (13,-16), (23,-24)
  - Both show distinct carrier structures vs existing profiles,
    confirming resolution-dependent embedding

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:37:11 +00:00
Ben Ren 22d7acc575 Add 4:3 (864x1184) reference images from Gemini API
268 black + 281 white pure-color reference images at 864x1184 (4:3
landscape aspect ratio). Generated via gemini-2.5-flash-image model.

This complements the 9:16 portrait images and covers the classic photo
aspect ratio commonly used in Gemini outputs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:36:58 +00:00
Ben Ren dd04dbef41 Add 9:16 (1344x768) reference images from Gemini API
154 black + 359 white pure-color reference images at 1344x768 (9:16
portrait aspect ratio). Generated via gemini-2.5-flash-image model.

This resolution is not covered by the existing codebook and is one of
the most common mobile Gemini output formats.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:36:49 +00:00
Ben Ren 52133eadde Add reference image generation script and .env to gitignore
generate_references.py automates generating pure-black and pure-white
reference images via the Gemini API at multiple aspect ratios (9:16, 4:3).
Includes rate-limit retry logic and per-resolution output directories.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:36:42 +00:00
Alosh Denny ce1b20490e Update README with PitchHut link and badges
Added a link to PitchHut and updated badges.
2026-04-10 10:29:46 +05:30
Alosh Denny d8afdfd95c Add maintainer section with contact details
Added maintainer contact information for Alosh Denny.
2026-04-10 09:36:19 +05:30
Alosh Denny aa709bc9f4 Merge pull request #13 from hobostay/fix/multiple-bugs
Fix multiple bugs in extraction pipeline
2026-04-10 09:32:15 +05:30
Test User 49a7cfc9d8 Fix multiple bugs in extraction pipeline
1. bypass_v2() ignores iterations parameter — the function accepted
   `iterations` but ran the transform pipeline only once. Now properly
   loops, with diminishing strength on subsequent iterations.

2. denoise_bilateral() has identical if/else branches — both 2D and 3D
   cases called the same cv2.bilateralFilter(). Removed dead branch.

3. apply_noise_replacement() allows negative sigma — with passes > 5,
   the formula `sigma * (1 - i * 0.2)` produces negative values. Added
   clamping and early break.

4. Broken import paths — synthid_bypass.py and watermark_remover.py
   used bare module imports that fail when scripts are run from outside
   their directory. Added sys.path.insert like benchmark_extraction.py.

5. Misleading "Python 3.14 bug" comment — the SSIM gate was disabled
   with a comment blaming Python 3.14, but the real reason is that
   heavy multi-pass transforms naturally depress SSIM. Updated comment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 10:49:22 +08:00
Alosh Denny 7d4dc9a11b Invite contributors for image generation to improve detection
Added a section inviting contributors to help expand the codebook by generating pure black and white images using Nano Banana Pro.
2026-04-08 16:37:21 +05:30
Alosh Denny 2d32b0fc48 spectral codebook 2026-03-28 18:58:52 +05:30
Alosh Denny d3db4c3cd9 remove LFS tracking 2026-03-28 18:58:35 +05:30
Alosh Denny 4e6a9987bb sparsified spectral codebook 2026-03-28 18:40:00 +05:30
Alosh Denny 9eadacaced spectral_codebook_v3.npz 2026-03-28 18:17:48 +05:30
Alosh Denny 5463363dcb Merge branch 'main' of https://github.com/aloshdenny/reverse-SynthID 2026-03-28 18:15:01 +05:30
Alosh Denny a9079c74c4 updated carriers 2026-03-28 18:14:51 +05:30
Alosh Denny c1f0fd8b58 multi-resolution carriers 2026-03-28 17:20:37 +05:30
Alosh Denny 5e43b389fe updated carriers 2026-03-28 17:20:08 +05:30
Alosh Denny f2ace3dead improved dataset 2026-03-28 15:56:48 +05:30
Alosh Denny 52c62c669c updated gitignore 2026-03-28 15:54:44 +05:30
Alosh Denny 31b0e07c46 Merge branch 'main' of https://github.com/aloshdenny/reverse-SynthID 2026-03-28 15:53:42 +05:30
Alosh Denny 8169824232 ran bypass on NB-2 2026-03-28 15:53:24 +05:30
Alosh Denny 908bf54ab9 Update repository URL in installation instructions 2026-03-06 21:20:00 +05:30
Alosh Denny c2acc5d259 updated refs 2026-02-15 18:14:55 +05:30
Alosh Denny 091a56761f updated images 2026-02-15 18:13:58 +05:30
Alosh Denny 4c95814928 updated images 2026-02-15 18:10:29 +05:30
Alosh Denny 25483c159a v3 2026-02-15 18:04:20 +05:30
Alosh Denny ad79ba532f fix cv2.resize scale bug 2026-02-15 17:54:52 +05:30
Alosh Denny e02b4a11da watermark investigation 2025-12-16 16:34:03 +05:30
Alosh Denny 21b094474e codebook analysis 2025-12-16 09:18:47 +05:30
Alosh Denny 01d2b45dd4 codebook analysis 2025-12-15 22:11:23 +05:30