Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aloshdenny/reverse-SynthID
/ functions
Functions
257 in github.com/aloshdenny/reverse-SynthID
⨍
Functions
257
◇
Types & classes
13
↓ 1 callers
Method
_subtract_fft_fallback
Resolution mismatch: build the watermark at the profile's native shape, resize spatially, subtract. Lower quality than the exact path
src/extraction/synthid_bypass_v4.py:1840
↓ 1 callers
Method
_subtract_native_bins
Per-channel bin-wise complex subtraction at native resolution. For each ``(fy, fx)`` we look up ``phase`` and a scale reference from
src/extraction/synthid_bypass_v4.py:1701
↓ 1 callers
Method
_union_profiles
Average across models at a fixed resolution (phase-aware).
src/extraction/synthid_bypass_v4.py:611
↓ 1 callers
Function
_unpad
(arr: np.ndarray, pads: Tuple[int, int, int, int])
src/extraction/vae_regen.py:121
↓ 1 callers
Method
add_calibrated_noise
Add calibrated Gaussian noise to disrupt watermark. The noise level is carefully chosen to be strong enough to disru
src/extraction/synthid_bypass.py:97
↓ 1 callers
Method
add_image
Add an image to the analysis.
src/analysis/synthid_codebook_finder.py:221
↓ 1 callers
Method
add_union_profiles
Synthesise a ``union`` pseudo-model that averages per-resolution profiles across all real models. Useful when encoders are believed id
src/extraction/synthid_bypass_v4.py:354
↓ 1 callers
Function
analyze_bit_patterns
Analyze bit-level patterns for watermark embedding.
src/analysis/deep_synthid_analysis.py:189
↓ 1 callers
Function
analyze_color_banding
Detect color banding artifacts common in AI-generated images.
watermark_investigation/watermark_ai_detection.py:195
↓ 1 callers
Function
analyze_color_consistency
Check if there's a consistent color shift that might indicate watermarking.
watermark_investigation/watermark_deep_analysis.py:212
↓ 1 callers
Function
analyze_color_shift
Analyze color shifts.
watermark_investigation/watermark_full_123k_analysis.py:57
↓ 1 callers
Function
analyze_color_shift
Analyze color shifts.
watermark_investigation/watermark_full_analysis.py:59
↓ 1 callers
Method
analyze_cross_image_correlation
Analyze correlation between images to find shared patterns.
src/analysis/synthid_codebook_finder.py:443
↓ 1 callers
Function
analyze_dct_embedding
Analyze DCT coefficients for quantization-based watermarking.
src/analysis/deep_synthid_analysis.py:277
↓ 1 callers
Function
analyze_frequency
Quick frequency domain analysis.
watermark_investigation/watermark_full_123k_analysis.py:34
↓ 1 callers
Function
analyze_frequency
Quick frequency domain analysis.
watermark_investigation/watermark_full_analysis.py:35
↓ 1 callers
Function
analyze_frequency_domain
Analyze frequency domain differences - watermarks often hide in high frequencies.
watermark_investigation/watermark_investigation.py:30
↓ 1 callers
Function
analyze_frequency_patterns
Analyze frequency domain for carrier signals.
src/analysis/deep_synthid_analysis.py:114
↓ 1 callers
Function
analyze_histogram_comparison
Compare histograms to show systematic modifications.
watermark_investigation/watermark_visual_evidence.py:158
↓ 1 callers
Method
analyze_image
Perform full analysis on a single image.
src/analysis/synthid_codebook_finder.py:182
↓ 1 callers
Function
analyze_jpeg_app_markers
Analyze JPEG APP markers for hidden data.
watermark_investigation/watermark_ai_detection.py:99
↓ 1 callers
Function
analyze_lsb_spatial_pattern
Analyze LSB spatial patterns for watermark location.
src/analysis/deep_synthid_analysis.py:231
↓ 1 callers
Function
analyze_noise_patterns
Analyze noise patterns across all images.
src/analysis/deep_synthid_analysis.py:62
↓ 1 callers
Function
analyze_pair
Analyze a single pair.
watermark_investigation/watermark_full_analysis.py:115
↓ 1 callers
Method
apply_noise_replacement
Apply multiple noise replacement passes. Similar to multiple KSampler passes in the diffusion workflow.
src/extraction/synthid_bypass.py:174
↓ 1 callers
Method
batch_remove
Remove watermark from all images in a directory.
src/extraction/watermark_remover.py:424
↓ 1 callers
Method
benchmark_detection
Benchmark detection accuracy. Returns: Dict with detection metrics
src/extraction/benchmark_extraction.py:106
↓ 1 callers
Method
benchmark_removal
Benchmark removal quality. Args: images: List of (path, image) tuples output_dir: Directory to save
src/extraction/benchmark_extraction.py:174
↓ 1 callers
Method
bilateral_denoise
Bilateral filter denoising (edge-preserving).
src/extraction/robust_extractor.py:161
↓ 1 callers
Function
build
( root: str, output: str, models: Optional[List[str]] = None, colors: Optional[List[str]] = No
scripts/build_codebook_v4.py:57
↓ 1 callers
Method
build_from_hierarchical_dataset
Walk ``root/{model}/{color}/{HxW}/*.png`` and build profiles. Args: root: Dataset root directory. models: Model subdi
src/extraction/synthid_bypass_v4.py:290
↓ 1 callers
Method
build_from_watermarked
Build a profile from diverse watermarked images at native resolution. Content averages out across images; the fixed watermark signal
src/extraction/synthid_bypass.py:1794
↓ 1 callers
Method
bypass
Main bypass pipeline - remove SynthID watermark. Args: image: Input image (RGB, uint8 or float) mode
src/extraction/synthid_bypass.py:728
↓ 1 callers
Method
bypass_file
Bypass watermark in image file and save result.
src/extraction/synthid_bypass.py:926
↓ 1 callers
Method
bypass_v2_file
Bypass watermark in image file using v2 pipeline.
src/extraction/synthid_bypass.py:1355
↓ 1 callers
Method
bypass_v3
V3 Spectral Bypass — multi-resolution codebook subtraction. Automatically selects the best-matching profile from the codebook
src/extraction/synthid_bypass.py:1378
↓ 1 callers
Method
bypass_v3_file
Bypass watermark using v3 spectral pipeline and save result.
src/extraction/synthid_bypass.py:1524
↓ 1 callers
Method
bypass_v4
Dissolve the SynthID watermark in ``image``. Args: image: RGB image, HxWx3, uint8 or float in [0, 255] / [0, 1]. code
src/extraction/synthid_bypass_v4.py:1068
↓ 1 callers
Method
bypass_v4_file
Read an image, dissolve, write result. Returns the BypassResult.
src/extraction/synthid_bypass_v4.py:1201
↓ 1 callers
Method
bypass_v4_final
Unified all-in-one attack targeting every Gemini-confirmed failure mode. Pipeline (each stage independently PSNR-gated via a soft floor):
src/extraction/synthid_bypass_v4.py:1505
↓ 1 callers
Method
bypass_v4_regen
Round-05 attack: diffusion-VAE re-generation + CombinationWorst geo. Pipeline (gated by PSNR floor at every step): 1. VAE roundt
src/extraction/synthid_bypass_v4.py:1364
↓ 1 callers
Method
bypass_v4_universal
Native-resolution absolute-bin subtraction. Targets a fixed set of ``(fy, fx)`` bin offsets (blog universals + codebook-harvested top
src/extraction/synthid_bypass_v4.py:1245
↓ 1 callers
Function
calibrate
Update ``carrier_weights`` in-place. Returns per-profile summary stats. The update rule, per profile ``P``: Let ``F`` = number of feedback r
scripts/calibrate_from_feedback.py:126
↓ 1 callers
Function
check_c2pa_manifest
Check for C2PA (Content Authenticity Initiative) manifest.
watermark_investigation/watermark_ai_detection.py:18
↓ 1 callers
Function
check_jpeg_artifacts
Analyze JPEG compression artifacts and quantization tables.
watermark_investigation/watermark_deep_analysis.py:243
↓ 1 callers
Method
chroma_subsample
Subsample and upsample chroma channels. This is similar to what JPEG does but more aggressive, disrupting watermark
src/extraction/synthid_bypass.py:376
↓ 1 callers
Method
color_jitter
Apply small random color adjustments. Subtle color variations break watermark coherence.
src/extraction/synthid_bypass.py:467
↓ 1 callers
Function
compare_spatial_differences
Analyze spatial differences between original and edited.
watermark_investigation/watermark_investigation.py:226
↓ 1 callers
Function
compute_perceptual_hash_diff
Compute perceptual hash difference to detect invisible modifications.
watermark_investigation/watermark_ai_detection.py:250
↓ 1 callers
Function
compute_phash_distance
Compute perceptual hash distance.
watermark_investigation/watermark_full_123k_analysis.py:72
↓ 1 callers
Function
compute_phash_distance
Compute perceptual hash distance.
watermark_investigation/watermark_full_analysis.py:74
↓ 1 callers
Method
compute_psnr
Compute Peak Signal-to-Noise Ratio.
src/extraction/watermark_remover.py:203
↓ 1 callers
Method
compute_ssim
Compute simplified SSIM.
src/extraction/watermark_remover.py:211
↓ 1 callers
Function
create_corner_analysis
Analyze corners for visible watermarks.
watermark_investigation/watermark_visual_evidence.py:121
↓ 1 callers
Function
create_difference_visualization
Create difference visualization between original and edited.
watermark_investigation/watermark_visual_evidence.py:54
↓ 1 callers
Function
create_summary_report
Create a summary report of all evidence.
watermark_investigation/watermark_visual_evidence.py:200
↓ 1 callers
Method
denoise_bilateral
Edge-preserving bilateral filter denoising.
src/extraction/synthid_bypass.py:116
↓ 1 callers
Method
detect_carriers_multi_scale
Detect carriers using multi-scale analysis with voting. Carriers that appear consistently across scales are more reliable.
src/extraction/robust_extractor.py:393
↓ 1 callers
Method
detect_carriers_single_scale
Detect carriers at a single scale.
src/extraction/robust_extractor.py:339
↓ 1 callers
Function
detect_compression_artifacts
Detect JPEG compression artifacts that might hide watermarks.
watermark_investigation/watermark_ai_detection.py:221
↓ 1 callers
Function
detect_neural_artifacts
Detect neural network-specific artifacts that might indicate AI generation.
watermark_investigation/watermark_ai_detection.py:139
↓ 1 callers
Function
detect_visible_watermark_corners
Check for visible watermarks in corners (common placement).
watermark_investigation/watermark_deep_analysis.py:186
↓ 1 callers
Function
dissolve_one
Dissolve one image at one strength; return a manifest row.
scripts/dissolve_batch.py:72
↓ 1 callers
Function
download
Download image folders from HF dataset repo.
scripts/download_images.py:29
↓ 1 callers
Function
extract_bit_planes
Extract all 8 bit planes from an image.
watermark_investigation/watermark_deep_analysis.py:18
↓ 1 callers
Method
extract_bit_planes
Extract all 8 bit planes from grayscale image.
src/analysis/synthid_codebook_finder.py:81
↓ 1 callers
Function
extract_codebook
Extract SynthID codebook from a collection of watermarked images.
src/extraction/synthid_codebook_extractor.py:44
↓ 1 callers
Method
extract_codebook
Extract comprehensive codebook from watermarked images. Uses multi-scale analysis and ensemble methods for robustness.
src/extraction/robust_extractor.py:532
↓ 1 callers
Method
extract_codebook
Main method: Extract the SynthID codebook from analyzed images.
src/analysis/synthid_codebook_finder.py:486
↓ 1 callers
Method
extract_dct_features
Extract DCT coefficients pattern.
src/analysis/synthid_codebook_finder.py:139
↓ 1 callers
Method
extract_fourier_features
Extract Fourier magnitude and phase.
src/analysis/synthid_codebook_finder.py:130
↓ 1 callers
Method
extract_from_references
Build a profile from black / white / random reference directories. The profile is stored at the native resolution of the black image
src/extraction/synthid_bypass.py:1678
↓ 1 callers
Method
extract_lsb_pattern
Extract LSB (Least Significant Bit) pattern from all channels.
src/analysis/synthid_codebook_finder.py:74
↓ 1 callers
Method
extract_noise_pattern
Extract noise residual using wavelet denoising.
src/analysis/synthid_codebook_finder.py:89
↓ 1 callers
Method
extract_signature_from_images
Extract watermark signature directly from pure black/white Gemini images. On a pure black image, every pixel > 0 IS the wate
src/extraction/watermark_remover.py:88
↓ 1 callers
Method
extract_structure
Extract structural information (edges and texture). This is similar to how Canny edges are used in ControlNet to pre
src/extraction/synthid_bypass.py:503
↓ 1 callers
Method
extract_watermark_ica
Use ICA to separate watermark pattern from image content. The watermark should appear as a consistent component across image
src/extraction/robust_extractor.py:468
↓ 1 callers
Function
extract_watermark_pattern
Extract the watermark by computing the difference.
watermark_investigation/extract_final_watermark.py:26
↓ 1 callers
Function
extract_watermark_signal
Extract the average watermark signal from all images.
src/analysis/deep_synthid_analysis.py:341
↓ 1 callers
Method
extract_wavelet_features
Extract wavelet coefficient patterns.
src/analysis/synthid_codebook_finder.py:160
↓ 1 callers
Method
find_bit_plane_watermark
Analyze bit planes for consistent patterns.
src/analysis/synthid_codebook_finder.py:386
↓ 1 callers
Method
find_carrier_peaks
Find carrier frequency peaks using combined magnitude and coherence.
src/extraction/robust_extractor.py:305
↓ 1 callers
Method
find_consistent_lsb_pattern
Find LSB bits that are consistent across all images.
src/analysis/synthid_codebook_finder.py:260
↓ 1 callers
Method
find_dct_watermark
Analyze DCT coefficients for embedding patterns.
src/analysis/synthid_codebook_finder.py:418
↓ 1 callers
Method
find_fourier_carriers
Find consistent frequency components (carrier frequencies).
src/analysis/synthid_codebook_finder.py:296
↓ 1 callers
Method
find_noise_watermark
Find consistent noise pattern (embedded signal).
src/analysis/synthid_codebook_finder.py:353
↓ 1 callers
Function
generate_single_image
Generate one watermarked reference image via Gemini. Args: client: google.genai.Client instance color: "black" or "white"
generate_references.py:73
↓ 1 callers
Function
get_client
()
generate_references.py:34
↓ 1 callers
Method
guided_filter
Apply guided filter for edge-preserving smoothing.
src/extraction/synthid_bypass.py:532
↓ 1 callers
Method
inject_bandpass_noise
Inject noise in specific frequency bands where watermark lives.
src/extraction/synthid_bypass.py:277
↓ 1 callers
Function
iter_input_images
Resolve ``--input`` (file, directory, or glob) to a sorted list.
scripts/dissolve_batch.py:58
↓ 1 callers
Method
jpeg_quality_cycle
Apply multiple JPEG compression cycles at varying qualities. This disrupts the watermark through quantization artifacts
src/extraction/synthid_bypass.py:358
↓ 1 callers
Function
load_feedback
Join manifest + tally on ``(source, variant)``; return labelled rows. Only rows whose tally has a parseable ``still_watermarked`` are returned.
scripts/calibrate_from_feedback.py:77
↓ 1 callers
Method
load_image
Load and preprocess image.
src/analysis/synthid_codebook_finder.py:65
↓ 1 callers
Function
load_image_pair
Load an original and AI-edited image pair.
watermark_investigation/watermark_investigation.py:18
↓ 1 callers
Function
load_images
Load all images.
src/analysis/deep_synthid_analysis.py:41
↓ 1 callers
Method
load_images
Load images from directory.
src/extraction/benchmark_extraction.py:84
↓ 1 callers
Function
load_pair
Load image pair.
watermark_investigation/watermark_visual_evidence.py:21
↓ 1 callers
Method
load_signature
Load watermark signature from pre-extracted files.
src/extraction/watermark_remover.py:72
↓ 1 callers
Function
load_vae
Lazy-load and cache the SD-VAE. Returns (vae, device_str). ``dtype`` is 'float32' on MPS (fp16 is broken for MPS conv on older torches) and c
src/extraction/vae_regen.py:50
← previous
next →
101–200 of 257, ranked by callers