snapref-v2a

0ppxnhximxr/snapref-v2a

作者
0ppxnhximxr
任务
图像生成
下载量
521
点赞数
27
趋势分
27
许可证
other
收录时间
2026/11/10

license: other license_name: circlestone-labs-non-commercial-license license_link: LICENSE.md base_model: circlestone-labs/Anima base_model_relation: adapter pipeline_tag: text-to-image library_name: diffusers tags:

  • anima
  • comfyui
  • reference-image
  • character-consistency
  • anime
  • snapref
  • stable

SnapRef v2a

[!NOTE] SnapRef v2a stable. Character reference, several views of one character, and per-reference weights. See the examples and v1a / v2a evaluation. Also available on Civitai, with the node and workflows ZIP.

[!IMPORTANT] Please support SnapRef! Developing these models has taken 400+ H100 GPU-hours 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

Four references, three scene prompts. Orange outlines mark the inputs. The prompts describe the scene, pose and lighting without character names or appearance tags.

What you can make

How to use it
🎭 Character and sceneUse Character & Style (cs) to carry the reference's appearance and visual treatment into another setting.
🎨 Character, your choice of styleUse Character (char) and add watercolor, retro anime or flat-color tags to the prompt.
🧩 Several views of one characterCombine a portrait with a full-body picture to provide more outfit and silhouette information.
⚖️ Per-reference weightsAdjust each picture's contribution. Compare second-reference weights of 0.4 and 1.0 below.

The simple SnapRef node accepts up to eight pictures of the same character. SnapRef (Advanced) exposes the reference layout, individual weights and additional controls.

Character styles

Keep the reference, change the style prompt. These examples use char mode with 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.

The same pair, another scene

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.

Both references contribute to every output. These scenes use independently selected seeds; the controlled one-versus-two comparison is the figure above.

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 scenes

Persica, from a single reference

A museum atrium, a railway platform and a garden bench: different framing and lighting from one input.

After the rain

Three independent characters under the same scene prompt. Cool platform lighting and warm reflections give the reference designs a different atmosphere.

Selected examples generated with SnapRef v2a.

Quick start

  1. Install Anima base v1.0 with its text encoder and VAE in ComfyUI.
  2. Copy comfyui/snapref/ from this repository into ComfyUI/custom_nodes/snapref/, then restart ComfyUI.
  3. Download snapref_v2a.safetensors to ComfyUI/models/loras/.
  4. Open workflows/snapref_v2a_simple.json, choose your own reference image in the SnapRef node and queue. The adapter is already set to snapref_v2a.safetensors.

Optional FP8 download: snapref_v2a_fp8.safetensors is approximately 195 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. Generation results can differ slightly from the original weights.

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.

Try a scene-only prompt like this:

masterpiece, best quality, score_7, safe, 1girl, solo, sitting on a wooden garden bench,
looking at viewer, gentle smile, dappled sunlight, flowering trees

[!TIP] Choose the mode before writing style tags. Use Character & Style for the reference's look, or Character to try another rendering style. In the simple node, fill two picture slots and click + beside Character to add more views.

[!NOTE] SnapRef uses its own node. Loading these weights through LoraLoader or a generic Diffusers pipeline is not supported.

Workflows

WorkflowUse
SimplePick images inside the SnapRef node; Character & Style, Strength and Fidelity.
Single referenceSnapRef (Advanced) with a separate image input.
Character modeTake the character from the reference and set the style in the prompt.
Multi-referenceTwo views of the same character.
Reference weightsTwo references with the second weight set to 0.4.
Two charactersStitch references side by side and describe two characters in the prompt.

Settings

The showcased images use CFG 4.5 · Euler / simple · Fidelity 1.0 on Anima base v1.0.

Simple SnapRef controlStarting pointPurpose
Adaptersnapref_v2a.safetensorsSelect the v2a stable weights.
ModeCharacter & StyleUse Character when the prompt should set the rendering style.
Strength per picture1.0Contribution of that reference; 0 disables it.
Fidelity1.0Lower values allow more prompt freedom.
InputStarting valuePurpose
modecscs: character and style; char: character with prompt-driven styling.
strength0.0Global reference attention on a log scale; different from the simple node's per-picture Strength.
fidelity1.0Ignored when ref_in_uncond or ref_guidance_on is enabled.
ref_megapixels1.0Maximum area of each encoded reference; smaller images are not enlarged.
ref_captionemptyOptional reference appearance tags.
ref_in_uncondoffKeep the reference out of the negative branch at the showcased default.
ref_guidance_onoffAdditional reference guidance; the figures use it disabled.
image_2, image_3optionalAdditional images of the same character.
use_batchoffRead multiple images from an IMAGE batch.
multi_layoutseparateEncode references independently. stitch combines them into one image.
weight_1 … weight_31.0Per-reference contribution in separate layout.

How it compares

The fixed evaluation contains 64 cases × 2 seeds, separate from the curated figures above.

Metricv1av2a
Appearance tag recall ↑0.87220.8727
Extra appearance tags ↓0.13410.1401
Head SigLIP similarity ↑0.89890.8903
Head DINO similarity ↑0.74310.7407
Head CCIP distance ↓0.06840.0715
Full-image CCIP distance ↓0.07250.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.

The metrics are sensitive to framing, pose, lighting and head detection.

Things to watch for

  • Small accessories, collar shapes and fine patterns can change, especially with a strong style prompt.
  • An upper-body reference does not define unseen lower-body clothing; a second full-body view can help.
  • Artwork text or signature-like marks can be copied from a reference. Inspect outputs before sharing them.

Release details

ReleaseSnapRef v2a stable
Base used for these examplesAnima base v1.0
Weight filesnapref_v2a.safetensors
File size381,821,960 bytes, approximately 382 MB

Files

File or folderContents
snapref_v2a.safetensorsv2a stable adapter weights.
snapref_v2a_fp8.safetensorsOptional FP8 storage variant, 194,652,680 bytes; inference computes in BF16.
comfyui/snapref/SnapRef and SnapRef (Advanced), including the image-picker interface.
workflows/Six ComfyUI workflows configured for v2a.
figures/Release figures and hero preview.
SHA256SUMSChecksums for the weights and release files.
LICENSE.md · NOTICE.txtWeight 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.

内容来源:Hugging Face 模型卡

在 Hugging Face 查看