Request access to the SnapRef Moss v1 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 SnapRef Moss, 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 Moss v1 training data
The encoded data that trained SnapRef Moss PRE1.
199,672 reference β target pairs of 12,175 characters,
stored as VAE latents, text-encoder states and foreground masks, ready to train on.
This is not an image dataset. It holds what the trainer reads: latents, text-encoder states and masks. 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 | SnapRef Moss PRE1, a reference adapter for MOSS-Image Base |
| Pairs | 199,672: 191,006 picture pairs and 8,666 two-panel sheets |
| Characters | 12,175 in the picture pairs |
| Held out | 200 characters, never trained on |
| Encoded | 170,206 target latents, 153,259 reference latents, 391,761 caption states, 153,294 masks |
| Resolutions | targets in 11 buckets of about 1 megapixel, from 720Γ1440 to 1440Γ720; references up to 0.5 megapixel |
| Size | 659.8 GB: text states 404.4 GB, target latents 176.7 GB, reference latents 77.9 GB |
What is inside
snapref-moss-v1-train-data/
βββ README.md
βββ SHA256SUMS sha256 of every file below
βββ catalog.json the index the trainer reads: pairs, captions, splits
βββ encode_p1.json what was encoded, with which model revision and settings
βββ config.json configuration of the v1_ta training run
βββ enc/v1/ pass this folder to the trainer as the encode directory
β βββ tgt/ 632 shards target latents
β βββ ref/ 290 shards reference latents
β βββ txt/ 1,410 shards text-encoder states
β βββ masks/ 16 files foreground masks of the references
βββ pairs/ the pair list and how it was filtered
βββ captions/ the captions that were encoded
βββ eval/ the held-out split and the pre-registered evaluation set
How a pair works
A pair is a reference and a target that show the same character in two different pictures. The trainer gives the model the reference and the caption of the target, and asks for the target. The caption describes the scene, the pose and the camera, so what the model has to take from the reference is the character.
A sheet is one picture with two panels of the same character. Its left panel is the reference and its right panel is the target.
File formats
Shards (enc/v1/tgt, ref, txt). A shard is a pair of files: rNN_pNNNNN.bin holds the tensors one after
another as raw bfloat16, and rNN_pNNNNN.json lists them.
| Field of an entry | Meaning |
|---|---|
key |
id of the picture, or for text the first 32 hex digits of the sha256 of the caption |
offset |
where the tensor starts in the .bin, counted in values (2 bytes each) |
shape |
latents [128, H/16, W/16], text [tokens, 4096] |
size, crop |
latents only: the bucket and the crop that was encoded |
import json
import numpy as np
import torch
index = json.load(open("enc/v1/tgt/r00_p00000.json"))
entry = index["entries"][0]
count = int(np.prod(entry["shape"]))
raw = np.fromfile("enc/v1/tgt/r00_p00000.bin", dtype=np.int16, count=count, offset=entry["offset"] * 2)
latent = torch.from_numpy(raw).view(torch.bfloat16).reshape(entry["shape"]) # [128, H/16, W/16]
Masks (enc/v1/masks/rNN.jsonl). One line per reference: key, size, grid (the mask size, one cell per
latent position) and fg (the foreground bits, packed and base64-encoded).
pairs/
| File | Rows | Meaning |
|---|---|---|
v1_pairs_ccip025.parquet |
191,006 | the pairs that were trained on |
v1_pairs.parquet |
198,244 | the pairs before the character-similarity filter |
v1_images.parquet |
273,665 | every picture the pairs use |
v1_ccip_scores.jsonl, v1_ccip_filter_025.json |
the similarity score of each pair and the pairs it removed | |
v1_stats.json |
counts at every step of the selection |
Files are joined by pair_key, which does not change when the list is sorted again.
captions/: v1_captions.parquet has one structured caption per pair (subject, scene, camera, pose, state,
appearance, outfit) and the caption variants built from it. v1_vlm_captions.jsonl.gz has the captions written by a
vision-language model.
eval/: eval_holdout.parquet names the 200 held-out characters and eval_heldout_tags.json lists the tags
that keep them out of training. eval_prereg/ is the evaluation set, fixed before training started.
How it was made
- Pairs. Two pictures of the same character make a pair. A pair is kept only when a character-similarity model (CCIP, threshold 0.25) agrees that both show the same character: 191,006 of 198,244 passed.
- Sheets. 8,666 of 10,000 two-panel sheets passed the automatic checks.
- Captions. Each target has a structured caption. Several variants are encoded, with and without the description of the character's appearance.
- Encoding. Pictures are encoded with the VAE, and captions with the text encoder, that MOSS-Image Base uses
(MOSS-Image revision
2929efe3). Everything is stored asbfloat16.
Verify
sha256sum -c SHA256SUMS
Access, use and license
- Access: manual approval. Requests are reviewed one by one.
- Use: research on, and reproduction of, SnapRef Moss. Do not redistribute the files.
- Terms: see LICENSE.md.
Related
- Model: 0ppxnhximxr/SnapRef-Moss-PRE1
- Demo: spaces/0ppxnhximxr/snapref-moss
- Code and ComfyUI node: github.com/ArcAnima/SnapRef
- Downloads last month
- 19