Download workflows/anima_ref_adapter.json from ElectronGirl/anima-ref-adapter: direct link, hf CLI and curl.
- Browser
- Download file 14.2 kB
-
https://huggingface.co/ElectronGirl/anima-ref-adapter/resolve/main/workflows/anima_ref_adapter.json
- Command line
-
hf download hf://ElectronGirl/anima-ref-adapter/workflows/anima_ref_adapter.json
-
curl -L -o anima_ref_adapter.json https://huggingface.co/ElectronGirl/anima-ref-adapter/resolve/main/workflows/anima_ref_adapter.json
14.2 kB
| { | |
| "last_node_id": 19, | |
| "last_link_id": 21, | |
| "nodes": [ | |
| { | |
| "id": 1, | |
| "type": "UNETLoader", | |
| "pos": [ | |
| 40, | |
| 40 | |
| ], | |
| "size": [ | |
| 300, | |
| 90 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "slot_index": 0, | |
| "links": [ | |
| 1 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "UNETLoader" | |
| }, | |
| "widgets_values": [ | |
| "anima_baseV10.safetensors", | |
| "default" | |
| ], | |
| "title": "Base model" | |
| }, | |
| { | |
| "id": 2, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| 40, | |
| 170 | |
| ], | |
| "size": [ | |
| 300, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "slot_index": 0, | |
| "links": [ | |
| 6, | |
| 7 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPLoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen_3_06b_base.safetensors", | |
| "stable_diffusion", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 3, | |
| "type": "VAELoader", | |
| "pos": [ | |
| 40, | |
| 320 | |
| ], | |
| "size": [ | |
| 300, | |
| 60 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "slot_index": 0, | |
| "links": [ | |
| 5, | |
| 19 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAELoader" | |
| }, | |
| "widgets_values": [ | |
| "qwenImageVAE_qwenImageVAE.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 4, | |
| "type": "AnimaRefAdapterLoader", | |
| "pos": [ | |
| 380, | |
| 40 | |
| ], | |
| "size": [ | |
| 330, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "slot_index": 0, | |
| "links": [ | |
| 2 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaRefAdapterLoader" | |
| }, | |
| "widgets_values": [ | |
| "anima_ref_adapter_pilot_r32.safetensors", | |
| 1.0, | |
| 1.0 | |
| ], | |
| "title": "Ref adapter LoRA" | |
| }, | |
| { | |
| "id": 5, | |
| "type": "ModelComputeDtype", | |
| "pos": [ | |
| 380, | |
| 190 | |
| ], | |
| "size": [ | |
| 330, | |
| 60 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 2 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "slot_index": 0, | |
| "links": [ | |
| 3 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "ModelComputeDtype" | |
| }, | |
| "widgets_values": [ | |
| "bf16" | |
| ] | |
| }, | |
| { | |
| "id": 6, | |
| "type": "PathchSageAttentionKJ", | |
| "pos": [ | |
| 380, | |
| 290 | |
| ], | |
| "size": [ | |
| 330, | |
| 80 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 3 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "slot_index": 0, | |
| "links": [ | |
| 8, | |
| 12 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "PathchSageAttentionKJ" | |
| }, | |
| "widgets_values": [ | |
| "auto", | |
| false | |
| ] | |
| }, | |
| { | |
| "id": 7, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 40, | |
| 460 | |
| ], | |
| "size": [ | |
| 320, | |
| 380 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "slot_index": 0, | |
| "links": [ | |
| 4 | |
| ] | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "slot_index": 1, | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "reference.png", | |
| "image" | |
| ], | |
| "title": "Reference image" | |
| }, | |
| { | |
| "id": 8, | |
| "type": "AnimaRefLatent", | |
| "pos": [ | |
| 380, | |
| 460 | |
| ], | |
| "size": [ | |
| 330, | |
| 150 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 4 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 5 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "ref_latent", | |
| "type": "LATENT", | |
| "slot_index": 0, | |
| "links": [ | |
| 11 | |
| ] | |
| }, | |
| { | |
| "name": "empty_latent", | |
| "type": "LATENT", | |
| "slot_index": 1, | |
| "links": [ | |
| 17 | |
| ] | |
| }, | |
| { | |
| "name": "ref_image", | |
| "type": "IMAGE", | |
| "slot_index": 2, | |
| "links": [ | |
| 21 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaRefLatent" | |
| }, | |
| "widgets_values": [ | |
| 896, | |
| 1152, | |
| 255 | |
| ], | |
| "title": "Reference + output size" | |
| }, | |
| { | |
| "id": 9, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 750, | |
| 40 | |
| ], | |
| "size": [ | |
| 420, | |
| 200 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 6 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "slot_index": 0, | |
| "links": [ | |
| 9 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "masterpiece, best quality, score_7, newest, highres, absurdres, safe, 1girl, solo, full body, walking, waving, open mouth, smile, city, street, night" | |
| ], | |
| "title": "Positive (scene only)" | |
| }, | |
| { | |
| "id": 10, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 750, | |
| 280 | |
| ], | |
| "size": [ | |
| 420, | |
| 160 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 7 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "slot_index": 0, | |
| "links": [ | |
| 10 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, chromatic aberration, bad anatomy, bad hands, extra arms, extra fingers, missing fingers, text, watermark, signature, artist name, multiple views, split screen, comic, 2koma, 4koma" | |
| ], | |
| "title": "Negative" | |
| }, | |
| { | |
| "id": 11, | |
| "type": "AnimaRefGuider", | |
| "pos": [ | |
| 1210, | |
| 40 | |
| ], | |
| "size": [ | |
| 320, | |
| 170 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 8 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 9 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 10 | |
| }, | |
| { | |
| "name": "ref_latent", | |
| "type": "LATENT", | |
| "link": 11 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "GUIDER", | |
| "type": "GUIDER", | |
| "slot_index": 0, | |
| "links": [ | |
| 14 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaRefGuider" | |
| }, | |
| "widgets_values": [ | |
| 4.5, | |
| 4.5, | |
| "apg", | |
| 0.5 | |
| ] | |
| }, | |
| { | |
| "id": 12, | |
| "type": "KSamplerSelect", | |
| "pos": [ | |
| 1210, | |
| 250 | |
| ], | |
| "size": [ | |
| 320, | |
| 60 | |
| ], | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "SAMPLER", | |
| "type": "SAMPLER", | |
| "slot_index": 0, | |
| "links": [ | |
| 15 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSamplerSelect" | |
| }, | |
| "widgets_values": [ | |
| "euler" | |
| ] | |
| }, | |
| { | |
| "id": 13, | |
| "type": "BasicScheduler", | |
| "pos": [ | |
| 1210, | |
| 350 | |
| ], | |
| "size": [ | |
| 320, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 12, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 12 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "SIGMAS", | |
| "type": "SIGMAS", | |
| "slot_index": 0, | |
| "links": [ | |
| 16 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "BasicScheduler" | |
| }, | |
| "widgets_values": [ | |
| "simple", | |
| 30, | |
| 1.0 | |
| ] | |
| }, | |
| { | |
| "id": 14, | |
| "type": "RandomNoise", | |
| "pos": [ | |
| 1210, | |
| 500 | |
| ], | |
| "size": [ | |
| 320, | |
| 90 | |
| ], | |
| "flags": {}, | |
| "order": 13, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "NOISE", | |
| "type": "NOISE", | |
| "slot_index": 0, | |
| "links": [ | |
| 13 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "RandomNoise" | |
| }, | |
| "widgets_values": [ | |
| 20261027, | |
| "randomize" | |
| ] | |
| }, | |
| { | |
| "id": 15, | |
| "type": "SamplerCustomAdvanced", | |
| "pos": [ | |
| 1570, | |
| 40 | |
| ], | |
| "size": [ | |
| 280, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 14, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "noise", | |
| "type": "NOISE", | |
| "link": 13 | |
| }, | |
| { | |
| "name": "guider", | |
| "type": "GUIDER", | |
| "link": 14 | |
| }, | |
| { | |
| "name": "sampler", | |
| "type": "SAMPLER", | |
| "link": 15 | |
| }, | |
| { | |
| "name": "sigmas", | |
| "type": "SIGMAS", | |
| "link": 16 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 17 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "output", | |
| "type": "LATENT", | |
| "slot_index": 0, | |
| "links": [ | |
| 18 | |
| ] | |
| }, | |
| { | |
| "name": "denoised_output", | |
| "type": "LATENT", | |
| "slot_index": 1, | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "SamplerCustomAdvanced" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 16, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1570, | |
| 220 | |
| ], | |
| "size": [ | |
| 280, | |
| 50 | |
| ], | |
| "flags": {}, | |
| "order": 15, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 18 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 19 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "slot_index": 0, | |
| "links": [ | |
| 20 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 17, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 1890, | |
| 40 | |
| ], | |
| "size": [ | |
| 520, | |
| 640 | |
| ], | |
| "flags": {}, | |
| "order": 16, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 20 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "SaveImage" | |
| }, | |
| "widgets_values": [ | |
| "anima_ref_adapter/test" | |
| ] | |
| }, | |
| { | |
| "id": 18, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 750, | |
| 480 | |
| ], | |
| "size": [ | |
| 420, | |
| 520 | |
| ], | |
| "flags": {}, | |
| "order": 17, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 21 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "PreviewImage" | |
| }, | |
| "widgets_values": [], | |
| "title": "Reference as fed (letterboxed)" | |
| }, | |
| { | |
| "id": 19, | |
| "type": "MarkdownNote", | |
| "pos": [ | |
| 40, | |
| 880 | |
| ], | |
| "size": [ | |
| 670, | |
| 620 | |
| ], | |
| "flags": {}, | |
| "order": 18, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [], | |
| "title": "How to use", | |
| "properties": {}, | |
| "widgets_values": [ | |
| "## Anima Reference Adapter\n\nTakes the **character and drawing style** from the reference image; **pose, background and framing** come from the prompt.\n\n- **Prompt**: no character name, artist tag or appearance/outfit tags. Write quality tags, gender, `solo` and scene tags (framing, pose, expression, background, lighting). Adding a few appearance tags is fine.\n- **Anima Ref Latent**: fits the reference into the output size (aspect kept, white padding). The output size is set here (it also returns the empty latent).\n- **Anima Ref Guider**\n - `cfg`: text guidance (4.5)\n - `ref_guidance`: reference guidance. 1 = reference in both CFG branches (weak); 4.5-6 recommended. Higher gives more character detail and style, and more saturation.\n - `correction`: `apg` (default) or `rescale` (phi 0.5) tames over-saturation at high guidance.\n- **Anima Ref Adapter Loader**: the adapter LoRA. Keep `ref_offset_h` at 1.0 (training value).\n- Base: Anima base v1.0 without the turbo LoRA (the adapter was trained on the base model), bf16 compute, SageAttention, euler 30 steps.\n- With ref_guidance != 1 each step runs the model 3 times (1.5x a normal CFG step).\n\nThis is a pilot adapter (300 characters, 2,000 steps): small patterns, scars and skin tones are weak.\n" | |
| ], | |
| "color": "#432", | |
| "bgcolor": "#653" | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 1, | |
| 0, | |
| 4, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 2, | |
| 4, | |
| 0, | |
| 5, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 3, | |
| 5, | |
| 0, | |
| 6, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 4, | |
| 7, | |
| 0, | |
| 8, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 5, | |
| 3, | |
| 0, | |
| 8, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 6, | |
| 2, | |
| 0, | |
| 9, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 7, | |
| 2, | |
| 0, | |
| 10, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 8, | |
| 6, | |
| 0, | |
| 11, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 9, | |
| 9, | |
| 0, | |
| 11, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 10, | |
| 10, | |
| 0, | |
| 11, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 11, | |
| 8, | |
| 0, | |
| 11, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 12, | |
| 6, | |
| 0, | |
| 13, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 13, | |
| 14, | |
| 0, | |
| 15, | |
| 0, | |
| "NOISE" | |
| ], | |
| [ | |
| 14, | |
| 11, | |
| 0, | |
| 15, | |
| 1, | |
| "GUIDER" | |
| ], | |
| [ | |
| 15, | |
| 12, | |
| 0, | |
| 15, | |
| 2, | |
| "SAMPLER" | |
| ], | |
| [ | |
| 16, | |
| 13, | |
| 0, | |
| 15, | |
| 3, | |
| "SIGMAS" | |
| ], | |
| [ | |
| 17, | |
| 8, | |
| 1, | |
| 15, | |
| 4, | |
| "LATENT" | |
| ], | |
| [ | |
| 18, | |
| 15, | |
| 0, | |
| 16, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 19, | |
| 3, | |
| 0, | |
| 16, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 20, | |
| 16, | |
| 0, | |
| 17, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 21, | |
| 8, | |
| 2, | |
| 18, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.75, | |
| "offset": [ | |
| 0, | |
| 0 | |
| ] | |
| } | |
| }, | |
| "version": 0.4 | |
| } |