SnapRef Moss PRE1
[!NOTE] SnapRef Moss PRE1 is the first SnapRef for MOSS-Image. Give it one to four pictures of a character and write only the scene. It is a preview with a single mode: the character comes together with the look of its picture. It is a separate adapter from SnapRef for Anima; the files and the nodes are not interchangeable.
[!IMPORTANT] Like SnapRef? A ⭐ on GitHub or a coffee on Ko-fi keeps the GPUs running.
One reference image. Any pose, any scene.
Drop a picture of your character on the node and write the scene. No LoRA training, no caption for the picture.
Add more pictures of the same character when one view does not show enough.
Download · Civitai · Try the demo · Quick start · Same scene, other picture · Several pictures · Reference weights · Changing the outfit · Checks
Each picture was made from reference pictures of its character and a prompt that names only the scene. The girl in the hat appears nine times, always from the same single reference picture.
What you can make
| How to use it | |
|---|---|
| 🎭 Your character in a new scene | Drop one picture on SnapRef Moss and write the pose, the place and the camera. Do not describe the character. |
| 🎨 In the look of your picture | Nothing to set. The result is drawn the way the reference is drawn. |
| 🧩 Several views of one character | Add up to four pictures of the same character, for example a face close-up and a full-body picture. |
| ⚖️ A choice between two looks | Give two pictures of one character in different outfits and set a Weight for each. |
| 👗 A new outfit | Name the outfit in the prompt. If the old one holds on, lower Fidelity to between 0.5 and 0.75. |
The look comes with the picture
Keep the prompt and the seed, change only the reference.
Same prompt and seed in every column of a row. The left column is MOSS-Image alone. With a reference, the character arrives together with the way its picture is drawn, from flat cut-out colors to soft painting.
One picture, many scenes
One reference picture, eight prompts. The prompts name only the place, the light, the pose and the framing.
Small things change from scene to scene. Here the hat is missing in four of the eight pictures and the suit turns into a shirt in the flower field; see Things to watch for.
Several pictures of one character
One picture cannot show everything. A close-up has the face but not the outfit; a full-body picture has the outfit, but its face is small. Give both and the node reads each picture on its own.
Top row: same prompt and seed for all three outputs. With the full-body picture alone the hair color drifts; with the close-up alone the lower half of the outfit is unknown; with both, the hair and the armband come from the close-up and the shorts from the full-body picture. Below: three pictures of one character given together, in three scenes each. Hairstyles can still drift: the first character's side ponytail became twin tails.
[!TIP] Up to four pictures, all of the same character. Two different characters in one node blend into one person, also with a two-character prompt.
Reference weights
Two pictures of one character in different outfits, and a Weight for each. The weights are relative:
1 : 0.25 reads mostly the first picture, and the total stays what Strength says.
Same prompt and seed across each row; only the two weights change. With one picture, Weight changes nothing: use Strength there.
Changing the outfit
By default the outfit of the picture comes along. Name another outfit in the prompt, and lower Fidelity if the old one holds on.
Top: the prompt names a white sundress and a straw hat. At Fidelity 1 the outfit of each reference is replaced, while hair and eye color stay. Bottom: an outfit that holds on. At Fidelity 1 the sweater is there, but her own skirt and belt stay; at 0.75 and 0.5 the jeans come through. Near 0 the character itself drifts.
More examples
One reference picture each (inset) and a scene-only prompt, at 832 × 1216 and 1216 × 832. Selected examples; parts of an outfit differ from the reference in some of them.
Quick start
- Install MOSS-Image in ComfyUI. From Comfy-Org/MOSS-Image:
moss_image_base_bf16.safetensorsintomodels/diffusion_models/,qwen3.5_9b_bf16.safetensorsintomodels/text_encoders/,flux2-vae_small.safetensorsintomodels/vae/. Tested with ComfyUI 0.43.0; the MOSS-Image code the node hooks into is unchanged up to 0.47.0. - Copy
comfyui/ComfyUI-SnapRef-Moss/from this repository intoComfyUI/custom_nodes/, then restart ComfyUI. The folder itself is the node. - Download
snapref_moss_v1_pre1.safetensorstoComfyUI/models/snapref_moss/. The folder is created the first time ComfyUI starts with the node. - Open
workflows/snapref_moss.json, drop a picture of your character on the SnapRef Moss node (or click a card, or paste) and queue.
Write only the scene: pose, place, light, camera.
rating:general, 1girl, solo, cafe, chair, indoors, table, full body, looking at viewer, sitting
Backgrounds. The adapter reads the character and not the background of the reference. A picture with a
transparent background is used as it is. For other pictures, pip install onnxruntime in ComfyUI's Python lets the
node remove the background with isnetis (about 170 MB, downloaded once).
Without onnxruntime the node reads the whole picture and says so; it still works, but the background can leak into
the result.
Optional FP8 download: snapref_moss_v1_pre1_fp8.safetensors
is approximately 188 MB (about 48% smaller). Put it in the same folder and select it in the adapter field.
It saves disk and download only: the node restores it to BF16 when it loads the file, so memory and speed are the
same. Every weight is rounded, so pictures differ slightly from the BF16 file; the character stays the same.
[!NOTE] SnapRef Moss uses its own node. Loading the file through LoraLoader or a Diffusers pipeline is not supported, and the SnapRef node for Anima cannot read it.
Workflows
| Workflow | Use |
|---|---|
| Simple | Pick up to four pictures inside the SnapRef Moss node; Strength, Fidelity and a Weight per picture. |
| Advanced | SnapRef Moss (Advanced) with IMAGE and MASK inputs and the background option. |
Settings
The pictures on this page use 28 steps · CFG 4 · Euler / simple · skip-layer guidance on block 22
(SkipLayerGuidanceDiTSimple, as in the workflows) on MOSS-Image Base, at 1024 × 1024 unless noted.
| Control | Scale | What it does |
|---|---|---|
| Strength | 0 to 2, 1 = as trained | How strongly the pictures are read. 0 is exactly MOSS-Image without the node. |
| Fidelity | 0 to 1, 1 = as trained | 1 keeps every detail of the picture. Lower values give the prompt more room. |
| Weight per picture | 0 to 2 | How much a picture counts against the other pictures. 0 leaves it out. |
One scale everywhere: 1 is the trained behaviour and 0 is off, on both nodes.
SnapRef Moss (Advanced)
| Input | Starting value | Purpose |
|---|---|---|
image_1 … image_4 |
image_1 required |
Pictures of the same character. Each is reduced to at most 0.5 megapixels, as in training, and never enlarged. |
mask_1 … mask_4 |
optional | Load Image's MASK: the transparent part of a PNG, or whatever you paint out in the mask editor, is not read. |
background |
auto |
auto: the character only (mask or transparency when there is one, else isnetis). remove: the same, but an error when no mask can be made. keep: the whole picture. |
strength, fidelity, weight_1 … weight_4 |
1.0 |
Same scales as the simple node. |
Both nodes do the same read. The simple node decodes a file the way training did; ComfyUI's Load Image decodes JPEG and WebP slightly differently, so the same file through the Advanced node gives a slightly different picture (not a worse one). PNG is the same either way.
A LoRA can sit before or after the node: the reference is encoded with the model as it will sample.
Cost. On an A100 at 1024 × 1024 and 28 steps, MOSS-Image alone takes 16.0 s per picture; with one or two reference pictures it takes 17.2 s (1.08×), and 19.1 s when Fidelity is below 1 (1.19×). The adapter uses about 0.36 GB of VRAM and each reference picture 0.3 to 1.0 GB.
How it works
MOSS-Image reads the reference picture once, with a small reader LoRA switched on, and keeps what it saw as attention keys and values. While the new picture is generated, each image block reads those keys and values through one extra attention read, which is added to the block's own attention with a learned gain per layer and head. The prompt is encoded as usual and nothing else in the model changes.
The adapter was trained on about 199,000 pairs of pictures that show the same character: one picture is the reference, the other the target. In training, 60% of the samples are two illustrations by the same artist, 15% are illustrations by different artists, 10% are official art paired with fan art, and 15% are two-panel sheets drawn by MOSS-Image itself. The background of the reference is masked out in training, which is why the node reads the character and not the background. Because three quarters of the samples share one look, the look of the reference comes along with the character: PRE1 has no separate control for it.
Training ran for 18,623 steps at batch size 32. The released file is the average of the checkpoints at 15,000, 16,000 and 17,000 steps. In our paired checks it was closer to the references than each single checkpoint we compared it with (15,000, 17,000 and the last one).
How it was checked
41 reference pictures (among them several of the characters on this page, and two men), four prompts each (standing on white, sitting in a cafe, looking back on a street, a named new outfit), one seed, Strength 1 and Fidelity 1: 164 pictures, judged automatically with CCIP for the character and a tagger for outfit and pose.
| Check | Result |
|---|---|
| Judged the same character as the reference (CCIP distance ≤ 0.178) | 163 of 164 |
| Mean CCIP distance to the reference, lower = closer | 0.046 |
| Appearance tags of the reference found again (hair, eyes, ears and the like) | 85% |
| Outfit tags of the reference found again | 64% |
| "Sitting" followed | 40 of 41 |
| "From behind, looking back" followed | 32 of 41 |
| Named outfit (white sweater, blue jeans) drawn at Fidelity 1 | 70% of the named garments |
These are our own checks on pictures we chose, with one seed each. They are not a benchmark and no comparison with other methods is claimed. The metrics react to framing and pose; the figures above are selected examples.
FP8. On 7 test pictures the FP8 file gave the same character in all of them, and the mean distance to the reference stayed the same (0.036 against 0.035 for BF16).
Things to watch for
- One mode. The look of the reference comes with the character. Taking only the character and restyling it, or only the style, is not part of PRE1.
- Small things change. Hats, hair ties, accessories and parts of an outfit can be missing or different in some scenes, and a side ponytail can become twin tails. Try another seed, or add a picture that shows the detail.
- Full-body scenes. When the face is small in the result, it matches the reference less well.
- Poses. A prompt without a clear pose can take the pose of the reference. Name the pose and the camera.
- Outfits that hold on. Some hoodies and uniforms stay even at low Fidelity. In our checks the uniforms of the two male references did not change at all.
- Text in the reference. A signature, a watermark or a sprite's emote mark can come along. Crop it or mask it.
- Two different characters in one node blend into one person.
- Photo-like backgrounds. MOSS-Image on its own leans photographic. Some scenes, parks and streets for example, get a blurred photo-like background or passers-by behind a drawn character.
- Trained and checked on MOSS-Image Base. The SFT and the few-step variants are untested.
- The read cannot be combined with ComfyUI's own reference latents (edit conditioning) in the same sampler.
- Not tested: Apple MPS, Intel XPU,
torch.compile. - Use pictures you have the right to use, and inspect outputs before sharing them.
Changelog
PRE1
- First SnapRef for MOSS-Image: one to four pictures of one character, with Strength, Fidelity and a Weight per picture.
- ComfyUI nodes SnapRef Moss (pictures picked in the node: click, drop, paste) and SnapRef Moss (Advanced)
(
IMAGEandMASKinputs), with two workflows. - Weight files: 363 MB (BF16) and an optional 188 MB FP8 file.
Release details
| Release | SnapRef Moss PRE1 (preview of SnapRef Moss v1) |
| Base used for these examples | MOSS-Image Base (moss_image_base_bf16.safetensors) |
| Weight file | snapref_moss_v1_pre1.safetensors |
| File size | 363,411,912 bytes, approximately 363 MB |
| SHA-256 | 6cb398e06bdf58772c2632e1677078ae18ec94d4caaca69c6bc7895b65e7a1ad |
Files
| File or folder | Contents |
|---|---|
snapref_moss_v1_pre1.safetensors |
SnapRef Moss PRE1 adapter weights (BF16). |
snapref_moss_v1_pre1_fp8.safetensors |
Optional FP8 storage variant, 188,261,888 bytes; inference computes in BF16. |
| comfyui/ComfyUI-SnapRef-Moss/ | SnapRef Moss and SnapRef Moss (Advanced), including the picture panel. |
| workflows/ | Two ComfyUI workflows configured for PRE1. |
| figures/ | Release figures and hero. |
| SHA256SUMS | Checksums for the weights and release files. |
| LICENSE | License of the weights and the node. |
License
The SnapRef Moss weights and the ComfyUI node are released under the Apache License 2.0 (LICENSE), the license of MOSS-Image. Background removal uses isnetis from skytnt/anime-seg (Apache-2.0), downloaded separately. SnapRef is not affiliated with or endorsed by the OpenMOSS team.