Text-to-Image
Diffusers
anima
comfyui
reference-image
character-consistency
style-reference
anime
snapref
preview
Instructions to use 0ppxnhximxr/snapref-v2s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use 0ppxnhximxr/snapref-v2s 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-v2s", 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_v2s_simple.json from 0ppxnhximxr/snapref-v2s: direct link, hf CLI and curl.
- Browser
- Download file 7.74 kB
-
https://huggingface.co/0ppxnhximxr/snapref-v2s/resolve/main/workflows/snapref_v2s_simple.json
- Command line
-
hf download hf://0ppxnhximxr/snapref-v2s/workflows/snapref_v2s_simple.json
-
curl -L -o snapref_v2s_simple.json https://huggingface.co/0ppxnhximxr/snapref-v2s/resolve/main/workflows/snapref_v2s_simple.json
7.74 kB
| { | |
| "last_node_id": 11, | |
| "last_link_id": 12, | |
| "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, | |
| 11 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAELoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen_image_vae.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 4, | |
| "type": "Note", | |
| "pos": [ | |
| 0, | |
| 460 | |
| ], | |
| "size": [ | |
| 420, | |
| 260 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "Note" | |
| }, | |
| "widgets_values": [ | |
| "SnapRef: click the picture slot in the SnapRef node (or drop an image on it) to set the character. A second picture of the same character is optional. Write only the scene in the prompt. Mode: Character & Style keeps the picture's art style; Character takes only the character. Strength: how much each picture counts. Fidelity: lower follows the prompt more freely. Every other setting is on SnapRef (Advanced)." | |
| ] | |
| }, | |
| { | |
| "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": [ | |
| 7 | |
| ], | |
| "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": [ | |
| 8 | |
| ], | |
| "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": "EmptyLatentImage", | |
| "pos": [ | |
| 360, | |
| 600 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 9 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 832, | |
| 1216, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 8, | |
| "type": "SnapRefSimple", | |
| "pos": [ | |
| 820, | |
| 0 | |
| ], | |
| "size": [ | |
| 460, | |
| 600 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 3 | |
| }, | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 4 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 5 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 6 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "SnapRefSimple", | |
| "snapref_slots": 2 | |
| }, | |
| "widgets_values": [ | |
| "snapref_v2s_pre1.safetensors", | |
| "reference.png", | |
| "Character & Style", | |
| 1.0, | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "none", | |
| 1.0, | |
| "image", | |
| "" | |
| ], | |
| "title": "SnapRef" | |
| }, | |
| { | |
| "id": 9, | |
| "type": "KSampler", | |
| "pos": [ | |
| 1340, | |
| 0 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 6 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 7 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 8 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 9 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 10 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 20261029, | |
| "fixed", | |
| 28, | |
| 4.5, | |
| "euler", | |
| "simple", | |
| 1.0 | |
| ] | |
| }, | |
| { | |
| "id": 10, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1680, | |
| 0 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 10 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 11 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 12 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 11, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 1900, | |
| 0 | |
| ], | |
| "size": [ | |
| 320, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 12 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "SaveImage" | |
| }, | |
| "widgets_values": [ | |
| "snapref/simple" | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 2, | |
| 0, | |
| 5, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 0, | |
| 6, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 3, | |
| 1, | |
| 0, | |
| 8, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 4, | |
| 2, | |
| 0, | |
| 8, | |
| 1, | |
| "CLIP" | |
| ], | |
| [ | |
| 5, | |
| 3, | |
| 0, | |
| 8, | |
| 2, | |
| "VAE" | |
| ], | |
| [ | |
| 6, | |
| 8, | |
| 0, | |
| 9, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 7, | |
| 5, | |
| 0, | |
| 9, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 8, | |
| 6, | |
| 0, | |
| 9, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 9, | |
| 7, | |
| 0, | |
| 9, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 10, | |
| 9, | |
| 0, | |
| 10, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 11, | |
| 3, | |
| 0, | |
| 10, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 12, | |
| 10, | |
| 0, | |
| 11, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": {}, | |
| "version": 0.4 | |
| } |