Downloads · 30 days
0
Atriclove/sd-extract-new
sd-extract-new is a machine learning model from Atriclove. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Research code for controlled, authorized memorization and training-data extraction experiments on publicly released Stable Diffusion checkpoints and datasets.
Downloads · 30 days
0
Access
Public
Updated Jul 15, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py185 KB · 98%
From the Hugging Face model README
Research code for controlled, authorized memorization and training-data extraction experiments on publicly released Stable Diffusion checkpoints and datasets.
The repository contains:
extract.py: baseline multi-seed prompt extraction and clique filtering.pia_extract.py: rho/PIA-guided DDIM extraction with optional branching.reference_lpips.py: ranking generated images against paired reference images.prepare_naruto_blip.py: converts a Hugging Face image-caption dataset into prompt and reference-image files.sd_pipeline.py, components.py, stable_attack.py: PIA/rho sampler implementation.No model weights, datasets, generated images, credentials, or caches are included.
python extract.py \
--model /path/to/diffusers-model \
--prompts prompts.json \
--output output \
--num_images 500 \
--batch_size 32 \
--steps 50
Use --start_prompt and --max_prompts to shard a run across GPUs.
Run a small diagnostic first and inspect guidance_diagnostics.jsonl before scaling up. Tune pia_scale, shift, and temperature from the observed rho and injection-to-epsilon ratio rather than assuming a universal value.
All experiments should use models and datasets for which the operator has permission to run the evaluation.