文件清单 线路:原始(huggingface.co) · 切换
下载后放进对应的 ComfyUI 目录。models/ 指 ComfyUI 的模型根目录。
说明
SnapRef
作者:0ppxnhximxr
Official Forge Neo support
SnapRef now has an official Forge Neo extension, with BF16 and FP8 adapters, up to eight reference images, per-reference Strength, Character & Style, Character and Style modes, and Fidelity.
- In Forge Neo, open Extensions → Install from URL and paste https://github.com/ArcAnima/SnapRef-Forge-Neo.
- Click Install, then restart Forge Neo.
- Open the SnapRef panel, select a v2s PRE1 or v2a adapter (BF16 or FP8), click Download, and add your reference images.
An Anima checkpoint, text encoder and VAE are required. Installation and update instructions.
The extension also supports the new Style mode of v2s PRE1: choose Style, add pictures in the art style you want and write the character and the scene in the prompt.
SnapRef v2s PRE1
SnapRef v2s PRE1 = SnapRef v2a + a new Style mode. Character & Style and Character give
bit-identical results to v2a, so updating changes nothing you already make. Style is new and is a preview.
See Style mode, the character stays out and several style pictures.
Download v2s PRE1 from the v2s-pre1 version on this page: the weights, an optional FP8 file and the node and workflows ZIP. If you only need the character modes, v2a stable gives the same Character & Style and Character results.
Please support SnapRef! Developing these models has taken 1,000+ H100 GPU-hours and 800,000 training images so far.
If SnapRef is useful to you, a ⭐ on GitHub, sharing your results or
reporting issues helps a lot, and GPU sponsorship is very welcome.
Support SnapRef on Ko-fi
Hugging Face: snapref-v2s model card and online demo.
One reference image. Its character, or only its style.
Character & Style and Character draw the character in the picture in any pose and scene, as in v2a.
Style takes only the art style of the picture: you write the character in the prompt.
Download v2s PRE1 · Quick start · Style mode · Several style pictures · Character modes · Evaluation
Each output is a different character written in the prompt (a maid, a boy with glasses, a reader in the park) drawn in the art style of the picture under it. The last one uses five pictures by the same artist.
What you can make
- 🖌️ Any character in a picture's art style (new): How to use it: Use Style and give a picture in the style you want. Write the character and the scene in the prompt.
- 🖼️ A steadier style from several pictures (new): How to use it: Give several pictures by the same artist, for example of different characters, with a Strength for each.
- 🎭 Character and scene: How to use it: Use Character & Style (cs) to carry the reference's appearance and visual treatment into another setting.
- 🎨 Character, your choice of style: How to use it: Use Character (char) and add watercolor, retro anime or flat-color tags to the prompt.
- 🧩 Several views of one character: How to use it: Combine a portrait with a full-body picture to provide more outfit and silhouette information.
- ⚖️ Per-reference weights: How to use it: Adjust each picture's contribution. Compare second-reference weights of 0.4 and 1.0 below.
The simple SnapRef node takes up to eight pictures and now has three modes:
Character & Style · Character · Style. SnapRef (Advanced) adds style to its mode list.
Style mode
Keep the prompt and the seed, change only the style picture. The character comes from the prompt, the rendering from
the picture: line weight, color palette, lighting and shading.
Same prompt and seed in every column of a row. The left column uses no style picture. Some pictures change the palette and lighting more than the construction of the face; see Things to watch for.
The character stays out
The same picture behaves differently in the two modes. Character & Style draws the character in the picture.
Style draws the character in your prompt, in the picture's style; the fox ears, the hat and the outfits of the
pictures do not carry over.
Same picture, same scene and same seed in each row. The Character & Style prompt describes only the scene; the Style prompt adds the character (a silver-haired maid, a boy with glasses).
Several style pictures
Give several pictures by the same artist. The idea: what the pictures share is the art style, so several of them
reinforce it. Below, five pictures of two different characters by one artist, each with its own Strength.
Same prompt and seed in each row. One picture already changes the rendering; five pictures can make it steadier and closer to the set, more visibly in some scenes (bottom row) than in others. Several style pictures were not part of training and are not in the evaluation below.
Style mode in three steps. Choose Style, put one or more pictures in the art style you want into the
picture slots, and write the character and the scene in the prompt. Keep Strength at 1.0 to start; lower a
picture's Strength (for example 0.35) when it pulls too much of its own look into the result.
Quick start
- Install Anima base v1.0 with its text encoder and VAE in ComfyUI.
- Update the node. Download and extract the node and workflows ZIP of the v2s-pre1 version. Delete or replace your old ComfyUI/custom_nodes/snapref/ folder, copy comfyui/snapref/ in its place and restart ComfyUI. Keep only one copy of SnapRef in custom_nodes. Style mode needs this node version; v2a and older adapter files keep working in it.
- Download snapref_v2s_pre1.safetensors from the same version to ComfyUI/models/loras/.
- Open workflows/snapref_v2s_style.json, choose a picture in the art style you want in the SnapRef node and queue. For the character modes, open workflows/snapref_v2s_simple.json.
Optional FP8 download: snapref_v2s_pre1_fp8.safetensors is approximately 278 MB (about 49% smaller). Put it in the same models/loras/ folder and select it in the SnapRef adapter field. It uses E4M3FN matrices with per-row scales; the node restores them to BF16 for inference. Its Character & Style and Character results are identical to the v2a FP8 file; Style results can differ slightly from the BF16 file.
Use an up-to-date ComfyUI installation. If your base-model, text-encoder or VAE filenames differ, select
the installed files in the loader nodes. In the advanced workflows, choose a picture in each Load Image node.
In Style mode, write the character and the scene, as you would without a reference:
masterpiece, best quality, score_7, safe, 1girl, solo, short silver hair, blue eyes, maid, apron, holding tray, cafe interior, smile, cowboy shot
In Character & Style and Character, keep writing only the scene, as in v2a:
masterpiece, best quality, score_7, safe, 1girl, solo, sitting on a wooden garden bench, looking at viewer, gentle smile, dappled sunlight, flowering trees
Choose the mode before writing style tags. Use Character & Style for the reference's look,
Character to try another rendering style, or Style to take only a picture's art style.
The Style button is dimmed? The selected adapter has no Style mode (v2a and older files). Select
snapref_v2s_pre1.safetensors. A workflow saved in Style mode keeps that setting and shows a warning until you do.
SnapRef uses its own node. Loading these weights through LoraLoader or a generic Diffusers
pipeline is not supported.
Prefer v2a stable? Download the v2a node and workflows ZIP and snapref_v2a.safetensors, then open workflows/snapref_v2a_simple.json. The v2s node also runs the v2a file.
Workflows
All eight workflows are included in the v2s-pre1 node and workflows ZIP.
- Style (new): Use: Simple node in Style mode: pictures in the art style you want, character and scene in the prompt.
- Style (Advanced) (new): Use: SnapRef (Advanced) with mode style and a separate image input.
- Simple: Use: Pick images inside the SnapRef node; Character & Style, Strength and Fidelity.
- Single reference: Use: SnapRef (Advanced) with a separate image input.
- Character mode: Use: Take the character from the reference and set the style in the prompt.
- Multi-reference: Use: Two views of the same character.
- Reference weights: Use: Two references with the second weight set to 0.4.
- Two characters: Use: Stitch references side by side and describe two characters in the prompt.
Settings
The showcased images use CFG 4.5 · Euler / simple · 28 steps · Fidelity 1.0 on Anima base v1.0.
- Adapter: Starting point: snapref_v2s_pre1.safetensors; Purpose: Select the v2s PRE1 weights.
- Mode: Starting point: Character & Style · Character · Style; Purpose: Style: only the art style of the pictures; the character comes from the prompt.
- Strength per picture: Starting point: 1.0; Purpose: Contribution of that picture; 0 disables it. In Style mode, values above 1.0 start to bring in the pictures' character.
- Fidelity: Starting point: 1.0; Purpose: Lower values allow more prompt freedom.
SnapRef (Advanced) settings
- mode: Starting value: cs; Purpose: cs: character and style; char: character with prompt-driven styling; style: art style only.
- strength: Starting value: 0.0; Purpose: Global reference attention on a log scale; different from the simple node's per-picture Strength. Keep 0.0 in style.
- fidelity: Starting value: 1.0; Purpose: Ignored when ref_in_uncond or ref_guidance_on is enabled.
- ref_megapixels: Starting value: 1.0; Purpose: Maximum area of each encoded reference; smaller images are not enlarged.
- ref_caption: Starting value: empty; Purpose: Optional reference appearance tags. Leave empty in style.
- ref_in_uncond: Starting value: off; Purpose: Keep the reference out of the negative branch at the showcased default.
- ref_guidance_on: Starting value: off; Purpose: Additional reference guidance; the figures use it disabled.
- image_2, image_3: Starting value: optional; Purpose: Additional images: the same character (cs, char) or the same artist (style).
- use_batch: Starting value: off; Purpose: Read multiple images from an IMAGE batch.
- multi_layout: Starting value: separate; Purpose: Encode references independently. stitch combines them into one image.
- weight_1 … weight_3: Starting value: 1.0; Purpose: Per-reference contribution in separate layout.
Character modes, unchanged from v2a
Character & Style and Character use exactly the v2a computation: the v2s file contains the v2a weights byte for byte,
and the Style parts switch on only in Style mode. The v2a examples below are therefore also what v2s draws.
Four references, three scene prompts. Orange outlines mark the inputs. The prompts describe the scene, pose and lighting without character names or appearance tags.
Character styles
Keep the reference, change the style prompt (char mode). These examples use watercolor, 1990s anime
and flat-color treatments; the scene and seed stay the same within each row.
The reference supplies the character, while the style prompt changes the rendering. Fine details such as eyewear and collars can still vary.
Multi-reference
Use two pictures of the same character: one with a clear face and another showing the full outfit.
In separate layout, the references are encoded individually and used together during generation.
One reference versus two, with the same prompt and seed in each row. The second-reference weight is 1.0 for Persica and 0.4 for Mia. These are selected examples, not an aggregate improvement score.
Reference weights
Start with both weights at 1.0. If a second picture changes the look too much, try lowering its weight.
0.4 gives it a smaller contribution; 0 skips it. Per-reference weights apply in separate layout.
Each row keeps the prompt and seed fixed. The first-reference weight remains 1.0. Higher weight is not a guarantee of a better result.
More character-mode scenes
The same two pictures can guide a walking pose outdoors or a seated portrait in a study.
Keep solo in the prompt when you want one character.
Persica from a single reference: a museum atrium, a railway platform and a garden bench.
After the rain: three independent characters under the same scene prompt.
Selected examples generated with SnapRef v2a.
How Style mode works
SnapRef reads the reference once and keeps what it saw as a set of attention keys and values; the image being
generated reads them at every step. The v2a part that draws from them is unchanged and frozen. v2s adds a small
style-only branch to the part that reads the reference, active only in Style mode, so the reference is summarized
as "how it is drawn" rather than "who it is".
The branch was trained on pairs drawn from about 150,000 generated pictures by 3,674 artists: a picture by one
artist as the reference and another picture by the same artist, of a different character, as the target, with
that character written in the prompt and no artist tag. Copying the reference's
character makes such a pair harder to match, while its line work and coloring help, so the branch learned to keep
the style and leave the character out.
a The two readings of one picture: the reader and drawer are the frozen v2a parts, and only Style mode adds the branch. b What Style mode keeps and leaves out; the numbers are the held-out evaluation below. c Why the branch drops the character. d Swap test; each gray line is one held-out artist.
How it compares
Character & Style and Character: bit-identical to v2a on our fixed parity set and on the v2a release
workflows; the v2a weights inside the file are byte-identical. The v2a evaluation below applies unchanged.
Style: 24 held-out artists that were never used in training, one style picture each.
- Distance to the picture's character (CCIP) ↑, higher = less copied: No reference: 0.418; v2a Character & Style: 0.178; v2s Style: 0.398
- Distance to the prompted character (CCIP) ↓: No reference: 0.0535; v2a Character & Style: 0.220; v2s Style: 0.0545
Swap test (same prompt and seed, the style picture replaced by another artist's):
- Closer to the right artist's style with the right picture (CSD): +0.063 [0.046, 0.081], 92% of cases
- With another artist's picture, the output moves toward that artist (CSD): +0.045 [0.023, 0.067], 83% of cases
Style mode copies the picture's character about as little as using no reference at all, keeps the prompted
character as well as no reference does, and follows that artist's style: swapping the picture moves the output
toward the new artist. Brackets are 95% bootstrap intervals. The metrics are sensitive to framing, pose and
lighting; the figures above are selected examples.
v2a evaluation (Character & Style)
The fixed evaluation contains 64 cases × 2 seeds, separate from the curated figures above.
- Appearance tag recall ↑: v1a: 0.8722; v2a: 0.8727
- Extra appearance tags ↓: v1a: 0.1341; v2a: 0.1401
- Head SigLIP similarity ↑: v1a: 0.8989; v2a: 0.8903
- Head DINO similarity ↑: v1a: 0.7431; v2a: 0.7407
- Head CCIP distance ↓: v1a: 0.0684; v2a: 0.0715
- Full-image CCIP distance ↓: v1a: 0.0725; v2a: 0.0757
Appearance-tag recall improves slightly, while our qualitative assessment shows substantially better
reference following than v1a. A remaining issue is that the model can struggle to reproduce facial
details when the face in the reference image is very bright.
Things to watch for
- Style is a preview. Some pictures change the palette, lighting and line quality more than the way faces are drawn.
- A little of a picture's coloring can carry over, such as a dark outfit or a skin tone. Name colors in the prompt when they matter.
- In Style mode, Strength above 1.0 (or Advanced strength above 0) brings in more of the pictures' character and follows the prompt less.
- One node uses one mode. Combining a character reference and a style reference in the same generation is not supported yet.
- Use pictures you have the right to use, and respect the artists whose work you reference.
- Small accessories and fine patterns can change in the character modes, as in v2a. Artwork text or signature-like marks can be copied from a reference. Inspect outputs before sharing them.
- An upper-body reference does not define unseen lower-body clothing; a second full-body view can help.
Changelog
v2s PRE1
- New Style mode. Takes only the art style of the pictures; the character comes from the prompt. Several style pictures can be combined, each with its own Strength.
- Character & Style and Character are unchanged: bit-identical to v2a stable. The v2a weights are inside the file byte for byte, and the Style parts switch on only in Style mode.
- ComfyUI node: Style in SnapRef and SnapRef (Advanced). The picture panel shows each mode in its own color with matching card labels and a one-line prompt hint, and dims the Style button for adapters without Style mode. v2a and older adapter files keep working.
- Two new workflows: Style and Style (Advanced).
- Weight files: 543 MB, about 162 MB more than v2a for the Style branch; optional FP8 file 278 MB.
v2a stable
Character reference, several views of one character and per-reference weights. See the v2a model card and the v2a version on this page.
Release details
- Release: SnapRef v2s PRE1 (v2a + Style mode, preview)
- Base used for these examples: Anima base v1.0
- Weight file: snapref_v2s_pre1.safetensors
- File size: 543,395,968 bytes, approximately 543 MB
- SHA-256: 95f91797827cbf5efd86e29fac5b2646df1505d46acb20f913877b3c9a429609
- Current download until then: SnapRef v2a stable, snapref_v2a.safetensors (381,821,960 bytes, approximately 382 MB)
Files
Files of the v2s-pre1 version. The node and workflows ZIP includes every item below except the model weights.
- snapref_v2s_pre1.safetensors: Contents: v2s PRE1 adapter weights: the v2a weights plus the Style branch.
- snapref_v2s_pre1_fp8.safetensors: Contents: Optional FP8 storage variant, 278,127,904 bytes; inference computes in BF16.
- comfyui/snapref/: Contents: SnapRef and SnapRef (Advanced) with Style mode, including the image-picker interface.
- workflows/: Contents: Eight ComfyUI workflows configured for v2s PRE1.
- README.md: Contents: Install, Style mode and limits in short.
- LICENSE.md · NOTICE.txt: Contents: Weight license and attribution.
License
The weights are a derivative of the CircleStone Model and use the CircleStone Labs Non-Commercial
License v1.2 (LICENSE.md, NOTICE.txt). Non-commercial use only.
SnapRef is not affiliated with or endorsed by CircleStone Labs.
The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone Non-Commercial License. Copyright CircleStone Labs LLC.
IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
Modification notice: snapref_v2s_pre1.safetensors (SnapRef v2s PRE1) is a derivative of the
CircleStone Model (Anima base v1.0). It contains trained adapter weights that modify the
model behavior when applied. It is not an official product of CircleStone Labs LLC and is not
endorsed, approved or validated by it.
Modification notice: snapref_v2a.safetensors (SnapRef v2a stable) is a derivative of the
CircleStone Model (Anima base v1.0). It contains trained adapter weights that modify the
model behavior when applied. It is not an official product of CircleStone Labs LLC and is not
endorsed, approved or validated by it.
Anima base v1.0 is a Derivative Model of NVIDIA Cosmos-Predict2-2B-Text2Image and is subject to the NVIDIA Open
Model License Agreement insofar as it applies to Derivative Models.
These weights are distributed under the CircleStone Non-Commercial License (LICENSE.md). Your rights to use the
CircleStone Model and this derivative come directly from CircleStone Labs LLC under that license.
THE WEIGHTS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND; IN NO EVENT SHALL THE AUTHOR OR CIRCLESTONE LABS
LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THEIR USE.
