anima-ref-adapter / workflows /anima_ref_adapter_advanced.json
BZMLJQ's picture ElectronGirl's picture
Duplicate from ElectronGirl/anima-ref-adapter
6d60975
Raw History Blame Contribute Delete
12.2 kB
{
"last_node_id": 19,
"last_link_id": 19,
"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-base-v1.0.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": [
4,
5
]
}
],
"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": [
3,
17
]
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"qwen_image_vae.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": [
6,
10
]
}
],
"properties": {
"Node name for S&R": "AnimaRefAdapterLoader"
},
"widgets_values": [
"anima_ref_adapter_v2_r64.safetensors",
1.0,
1.0
],
"title": "Ref adapter LoRA"
},
{
"id": 7,
"type": "LoadImage",
"pos": [
40,
460
],
"size": [
320,
380
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
2
]
},
{
"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": 5,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 2
},
{
"name": "vae",
"type": "VAE",
"link": 3
}
],
"outputs": [
{
"name": "ref_latent",
"type": "LATENT",
"slot_index": 0,
"links": [
9
]
},
{
"name": "empty_latent",
"type": "LATENT",
"slot_index": 1,
"links": [
15
]
},
{
"name": "ref_image",
"type": "IMAGE",
"slot_index": 2,
"links": [
19
]
}
],
"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": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 4
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
7
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, smile, looking at viewer, indoors, window, day"
],
"title": "Positive (scene only)"
},
{
"id": 10,
"type": "CLIPTextEncode",
"pos": [
750,
280
],
"size": [
420,
160
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
8
]
}
],
"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": 11,
"type": "AnimaRefGuider",
"pos": [
1210,
40
],
"size": [
320,
170
],
"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": "ref_latent",
"type": "LATENT",
"link": 9
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"slot_index": 0,
"links": [
12
]
}
],
"properties": {
"Node name for S&R": "AnimaRefGuider"
},
"widgets_values": [
4.5,
4.5,
"apg",
0.5,
0.0,
1.0,
"reference, no extra guidance"
]
},
{
"id": 12,
"type": "KSamplerSelect",
"pos": [
1210,
250
],
"size": [
320,
60
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"slot_index": 0,
"links": [
13
]
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"er_sde"
]
},
{
"id": 13,
"type": "BasicScheduler",
"pos": [
1210,
350
],
"size": [
320,
110
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 10
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"slot_index": 0,
"links": [
14
]
}
],
"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": 11,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"slot_index": 0,
"links": [
11
]
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
20261027,
"randomize"
]
},
{
"id": 15,
"type": "SamplerCustomAdvanced",
"pos": [
1570,
40
],
"size": [
280,
130
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 11
},
{
"name": "guider",
"type": "GUIDER",
"link": 12
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 13
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 14
},
{
"name": "latent_image",
"type": "LATENT",
"link": 15
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"slot_index": 0,
"links": [
16
]
},
{
"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": 13,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 16
},
{
"name": "vae",
"type": "VAE",
"link": 17
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
18
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 17,
"type": "SaveImage",
"pos": [
1890,
40
],
"size": [
520,
640
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 18
}
],
"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": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 19
}
],
"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": 16,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "How to use",
"properties": {},
"widgets_values": [
"## Anima Reference Adapter (advanced)\n\nThe separate nodes, for the pilot adapter and for options the one-node workflow does not expose.\n\n- **Anima Ref Latent** fits the reference into the output size (white letterbox) and returns the empty latent for that size. The pilot needs the reference at the output size; v2 reads any size.\n- **Anima Ref Guider** (`SamplerCustomAdvanced`): `cfg`, `ref_guidance`, `correction`, and the window `ref_start` / `ref_end` with `outside` = keep the reference without extra guidance, or drop it.\n- **Anima Ref Adapter Loader**: keep `ref_offset_h` at 1.0 (training value).\n"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
1,
0,
4,
0,
"MODEL"
],
[
2,
7,
0,
8,
0,
"IMAGE"
],
[
3,
3,
0,
8,
1,
"VAE"
],
[
4,
2,
0,
9,
0,
"CLIP"
],
[
5,
2,
0,
10,
0,
"CLIP"
],
[
6,
4,
0,
11,
0,
"MODEL"
],
[
7,
9,
0,
11,
1,
"CONDITIONING"
],
[
8,
10,
0,
11,
2,
"CONDITIONING"
],
[
9,
8,
0,
11,
3,
"LATENT"
],
[
10,
4,
0,
13,
0,
"MODEL"
],
[
11,
14,
0,
15,
0,
"NOISE"
],
[
12,
11,
0,
15,
1,
"GUIDER"
],
[
13,
12,
0,
15,
2,
"SAMPLER"
],
[
14,
13,
0,
15,
3,
"SIGMAS"
],
[
15,
8,
1,
15,
4,
"LATENT"
],
[
16,
15,
0,
16,
0,
"LATENT"
],
[
17,
3,
0,
16,
1,
"VAE"
],
[
18,
16,
0,
17,
0,
"IMAGE"
],
[
19,
8,
2,
18,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.75,
"offset": [
0,
0
]
}
},
"version": 0.4
}