Instructions to use 0ppxnhximxr/snapref-v2a with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use 0ppxnhximxr/snapref-v2a with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("0ppxnhximxr/snapref-v2a", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download workflows/snapref_v2a_multi_reference.json from 0ppxnhximxr/snapref-v2a: direct link, hf CLI and curl.
- Browser
- Download file 9.06 kB
-
https://huggingface.co/0ppxnhximxr/snapref-v2a/resolve/main/workflows/snapref_v2a_multi_reference.json
- Command line
-
hf download hf://0ppxnhximxr/snapref-v2a/workflows/snapref_v2a_multi_reference.json
-
curl -L -o snapref_v2a_multi_reference.json https://huggingface.co/0ppxnhximxr/snapref-v2a/resolve/main/workflows/snapref_v2a_multi_reference.json
9.06 kB
| { | |
| "last_node_id": 13, | |
| "last_link_id": 14, | |
| "nodes": [ | |
| { | |
| "id": 1, | |
| "type": "UNETLoader", | |
| "pos": [ | |
| 0, | |
| 0 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 3 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "UNETLoader" | |
| }, | |
| "widgets_values": [ | |
| "anima-base-v1.0.safetensors", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 2, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| 0, | |
| 160 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 1, | |
| 2, | |
| 4 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPLoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen_3_06b_base.safetensors", | |
| "stable_diffusion", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 3, | |
| "type": "VAELoader", | |
| "pos": [ | |
| 0, | |
| 320 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 5, | |
| 13 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAELoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen_image_vae.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 4, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 0, | |
| 460 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 6 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": [], | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "reference.png", | |
| "image" | |
| ] | |
| }, | |
| { | |
| "id": 5, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 360, | |
| 0 | |
| ], | |
| "size": [ | |
| 420, | |
| 260 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 9 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "masterpiece, best quality, score_7, safe, 1girl, solo, full body, standing, looking at viewer, smile, park, day" | |
| ], | |
| "title": "positive (scene only)" | |
| }, | |
| { | |
| "id": 6, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 360, | |
| 300 | |
| ], | |
| "size": [ | |
| 420, | |
| 260 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 2 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 10 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "worst quality, low quality, score_1, score_2, score_3, artist name, blurry, jpeg artifacts, chromatic aberration" | |
| ], | |
| "title": "negative" | |
| }, | |
| { | |
| "id": 7, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 0, | |
| 760 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 7 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": [], | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "reference_full_body.png", | |
| "image" | |
| ] | |
| }, | |
| { | |
| "id": 8, | |
| "type": "EmptyLatentImage", | |
| "pos": [ | |
| 360, | |
| 600 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 11 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 832, | |
| 1216, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 9, | |
| "type": "SnapRef", | |
| "pos": [ | |
| 820, | |
| 0 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 3 | |
| }, | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 4 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 5 | |
| }, | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 6 | |
| }, | |
| { | |
| "name": "image_2", | |
| "type": "IMAGE", | |
| "link": 7 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 8 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "SnapRef" | |
| }, | |
| "widgets_values": [ | |
| "snapref_v2a.safetensors", | |
| "cs", | |
| false, | |
| 1.0, | |
| 0.0, | |
| "", | |
| false, | |
| 4.5, | |
| "apg", | |
| 1.0, | |
| false, | |
| "separate", | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0 | |
| ], | |
| "title": "SnapRef v2a-pre2 (Advanced)" | |
| }, | |
| { | |
| "id": 10, | |
| "type": "KSampler", | |
| "pos": [ | |
| 820, | |
| 300 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 8 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 9 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 10 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 11 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 12 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 20261029, | |
| "fixed", | |
| 28, | |
| 4.5, | |
| "euler", | |
| "simple", | |
| 1.0 | |
| ] | |
| }, | |
| { | |
| "id": 11, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1160, | |
| 300 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 12 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 13 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 14 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 12, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 1380, | |
| 300 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 14 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "SaveImage" | |
| }, | |
| "widgets_values": [ | |
| "snapref/multi_reference" | |
| ] | |
| }, | |
| { | |
| "id": 13, | |
| "type": "Note", | |
| "pos": [ | |
| 820, | |
| 620 | |
| ], | |
| "size": [ | |
| 420, | |
| 260 | |
| ], | |
| "flags": {}, | |
| "order": 12, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "Note" | |
| }, | |
| "widgets_values": [ | |
| "Several references of the SAME character: e.g. an upper-body shot (face, hair) in image and a full-body shot (shoes, legs) in image_2; image_3 is free for a third. Keep solo in the prompt. multi_layout separate (default) encodes each at ref_megapixels; stitch puts them side by side in one reference (same speed as one image). For two DIFFERENT characters use the two_characters workflow instead." | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 2, | |
| 0, | |
| 5, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 0, | |
| 6, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 3, | |
| 1, | |
| 0, | |
| 9, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 4, | |
| 2, | |
| 0, | |
| 9, | |
| 1, | |
| "CLIP" | |
| ], | |
| [ | |
| 5, | |
| 3, | |
| 0, | |
| 9, | |
| 2, | |
| "VAE" | |
| ], | |
| [ | |
| 6, | |
| 4, | |
| 0, | |
| 9, | |
| 3, | |
| "IMAGE" | |
| ], | |
| [ | |
| 7, | |
| 7, | |
| 0, | |
| 9, | |
| 4, | |
| "IMAGE" | |
| ], | |
| [ | |
| 8, | |
| 9, | |
| 0, | |
| 10, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 9, | |
| 5, | |
| 0, | |
| 10, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 10, | |
| 6, | |
| 0, | |
| 10, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 11, | |
| 8, | |
| 0, | |
| 10, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 12, | |
| 10, | |
| 0, | |
| 11, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 13, | |
| 3, | |
| 0, | |
| 11, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 14, | |
| 11, | |
| 0, | |
| 12, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": {}, | |
| "version": 0.4 | |
| } | |