Request access to the SnapRef v2s training data
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Access is reviewed by hand. These files are the encoded training set of the SnapRef v2s Style mode, kept here so the released model can be reproduced and studied. Tell us who you are and what you plan to do with them.
Log in or Sign Up to review the conditions and access this dataset content.
SnapRef v2s training data
The exact data that trained the Style mode of SnapRef v2s PRE1.
274,094 generated pictures, with 152,470 of them drawn in the styles of 3,674 artists,
stored as VAE latents and text-encoder states, ready to train on.
This is not an image dataset. It holds what the trainer reads: one latent per picture and one text-encoder state per prompt. There are no image files here.
Access is approved by hand. Send a request with the form above. Files cannot be downloaded until it is accepted.
At a glance
| Trains | the Style branch of SnapRef v2s PRE1, 10,000 steps on a frozen v2a (adapter sha256 95f91797β¦429609) |
| Pictures | 274,094 (269,071 train, 4,225 held-out artists, 798 held-out characters) |
| Groups | 52,881 (52,010 train, 711 held-out artists, 160 held-out characters) |
| Style part | 152,470 pictures in 30,494 groups: one artist, several different characters |
| Held out | 32 characters and 241 artists, never trained on in any mode |
| Prompts | 1,077,640 encoded prompts |
| Resolutions | 832Γ1216, 896Γ1152, 1024Γ1024, 1216Γ832 |
| Source | Generated with Anima base v1.0. No scraped images |
| Size | 303.74 GB: 35 latent files (140.1 GB) and 24 context files (163.2 GB) |
What is inside
Three parts in one index. The first is new in v2s and teaches Style. The other two are the v2a training data, re-encoded into the same format so one run can read everything.
| Part | source |
Pictures | Groups | What a group is |
|---|---|---|---|---|
| Style | style_v1 |
152,470 | 30,494 | one artist, different characters |
| Character | scenes_v2 |
63,324 | 10,554 | one character, different poses and scenes |
| Character | scenes3x4 |
58,300 | 11,833 | one character, different poses and scenes |
snapref-v2s-train-data/
βββ README.md
βββ SHA256SUMS sha256 of every file below
βββ index.json records, groups, splits, held-out lists
βββ prompts.json the 1,077,640 prompt texts, in the order of the contexts
βββ manifest.json what was built, when, from what
βββ prep_audit.json counts and checks made at build time
βββ contexts_000 β¦ 023.safetensors text-encoder states
βββ latents_000 β¦ 034.safetensors one latent per picture
Why the groups look like this
Style mode takes only the art style of the reference picture. The character comes from the prompt.
The Style part teaches that with its pairing rule: the reference and the target are always the same artist and a different character. Anything about the reference character that reaches the output makes the target wrong, so the model learns to drop it. The line work and colouring are shared by both pictures, so the model learns to keep them. No extra loss is needed.
File formats
Format tag: anima_ref_style_prep/1.
latents_NNN.safetensors: one tensor per picture, keyed by record id (sty1_a0001_c07_00, s2_v000000_00,
s3_s000000_00). bfloat16, shape [16, 1, H/8, W/8], already in the model's input space (scaled and shifted),
so the trainer uses it without further processing. Each record names its file in latent_file.
contexts_NNN.safetensors: two tensors per part, 24 parts.
| Key | Type | Shape | Meaning |
|---|---|---|---|
data |
bfloat16 |
[tokens in this part, 1024] |
text-encoder states, concatenated |
offsets |
int64 |
[prompts in this part + 1] |
prompt i of the part is data[offsets[i] : offsets[i + 1]] |
The file metadata gives prompts, part and parts. Prompt ids run through the parts in order.
index.json
| Key | Meaning |
|---|---|
records |
per picture: group_id, source, character, width, height, seed, focus, framing, scene_key, latent_file, and prompts (variant β prompt id) |
groups |
per group: split, character, artists, solo_artist, source, record_ids |
group_splits |
train, heldout_artist, eval |
held_out_characters, heldout_artists |
the 32 characters and 241 artists kept out of training |
config, files, audit |
build configuration, file lists, build-time counts |
Prompt variants per picture: stripped, partial, minimal, with_artist, with_character, ref_caption,
negative.
import json
from safetensors import safe_open
index = json.load(open("index.json", encoding="utf-8"))
rid = "sty1_a0001_c07_00"
rec = index["records"][rid]
with safe_open(rec["latent_file"], "pt") as f:
latent = f.get_tensor(rid) # [16, 1, H/8, W/8], bfloat16, model space
How it was made
- Style part. For each of 3,674 artists, several characters were drawn with that artist's tag and nothing else in common: 152,515 pictures, generated with Anima base v1.0.
- Character parts. The two parts of the v2a training data, unchanged in content.
- Splits. 200 new artists and the artists held out in earlier versions, 241 in total, are excluded from training in every mode, together with the 32 held-out characters.
- Encoding. Latents are converted to model space and stored as
bfloat16. Every prompt variant is encoded once with Anima's text encoder.
Training pairs are not stored. The trainer draws artists uniformly, then a reference and a target from different groups of the same artist.
Verify
sha256sum -c SHA256SUMS
Access, use and license
- Access: manual approval. Requests are reviewed one by one.
- Use: research on, and reproduction of, SnapRef v2s. Do not redistribute the files.
- License: the files are derived from Anima outputs and are covered by the CircleStone Labs Non-Commercial License.
Related
- Model: 0ppxnhximxr/snapref-v2s
- Training data of the character modes: 0ppxnhximxr/snapref-v2a-train-data
- Code and ComfyUI node: github.com/ArcAnima/SnapRef
- Downloads last month
- -