Files
zmwv823-ComfyUI_Anytext/example_workflows/T2I-AnyText.json
T

725 lines
12 KiB
JSON

{
"last_node_id": 24,
"last_link_id": 36,
"nodes": [
{
"id": 10,
"type": "UL_AnyTextFormatter",
"pos": [
230,
670
],
"size": [
320,
160
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
34,
36
],
"slot_index": 0
},
{
"name": "texts",
"type": "LIST",
"links": [
17
],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "UL_AnyTextFormatter"
},
"widgets_values": [
"close-up of hakurei reimu sitting in a room, with text: \"Emmm\" and \"博丽灵梦\" on the wall."
]
},
{
"id": 11,
"type": "UL_AnyText_Loader",
"pos": [
230,
450
],
"size": [
315,
170
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "model",
"type": "AnyText_Model",
"links": [
15,
21
],
"slot_index": 0
},
{
"name": "vae",
"type": "VAE",
"links": [
25
]
},
{
"name": "ckpt_name",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "UL_AnyText_Loader"
},
"widgets_values": [
"15\\lbc_Simple_简约_v3d0.safetensors",
"control_sd15_anytext_v1_1.safetensors",
"None",
"auto"
]
},
{
"id": 12,
"type": "LoadImage",
"pos": [
-100,
470
],
"size": [
300,
420
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
27
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
16
]
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"clipspace/clipspace-mask-852615.7000000477.png [input]",
"image"
]
},
{
"id": 13,
"type": "UL_AnyTextEncoder",
"pos": [
580,
460
],
"size": [
340,
400
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "AnyText_Model",
"link": 15
},
{
"name": "mask",
"type": "MASK",
"link": 16
},
{
"name": "texts",
"type": "LIST",
"link": 17
},
{
"name": "latent",
"type": "LATENT",
"link": 20
},
{
"name": "image",
"type": "IMAGE",
"link": 27,
"shape": 7
},
{
"name": "prompt",
"type": "STRING",
"link": 35,
"widget": {
"name": "prompt"
}
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
22
],
"slot_index": 0
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
23
]
},
{
"name": "mask_img",
"type": "IMAGE",
"links": null
},
{
"name": "masked_x",
"type": "LATENT",
"links": null
}
],
"properties": {
"Node name for S&R": "UL_AnyTextEncoder"
},
"widgets_values": [
"",
"索尼兰亭.ttf",
true,
true,
"best quality, extremely detailed,4k, HD, supper legible text, clear text edges, clear strokes, neat writing, no watermarks",
"low-res, bad anatomy, extra digit, fewer digits, cropped, worst quality, low quality, watermark, unreadable text, messy words, distorted text, disorganized writing, advertising picture",
false,
false
]
},
{
"id": 14,
"type": "EmptyLatentImage",
"pos": [
280,
900
],
"size": [
210,
106
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
20
]
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
576,
512,
1
]
},
{
"id": 15,
"type": "UL_AnyText_Sampler",
"pos": [
950,
450
],
"size": [
320,
580
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "AnyText_Model",
"link": 21
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 22
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 23
}
],
"outputs": [
{
"name": "latent",
"type": "LATENT",
"links": [
24
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "UL_AnyText_Sampler"
},
"widgets_values": [
422201625269032,
"randomize",
20,
9,
1,
0,
true,
true
]
},
{
"id": 16,
"type": "VAEDecode",
"pos": [
1310,
460
],
"size": [
210,
46
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24
},
{
"name": "vae",
"type": "VAE",
"link": 25
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
26
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 17,
"type": "PreviewImage",
"pos": [
1290,
560
],
"size": [
430,
450
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 26
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 19,
"type": "UL_Translator",
"pos": [
560,
190
],
"size": [
400,
220
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "TRANSLATE_MODEL",
"link": 32
},
{
"name": "string",
"type": "STRING",
"link": 36,
"widget": {
"name": "string"
}
}
],
"outputs": [
{
"name": "string",
"type": "STRING",
"links": [
33
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "UL_Translator"
},
"widgets_values": [
"一个装饰华丽的蛋糕,上面用奶油写着“阿里云”和\"APSARA\"",
"Chinese (Simplified)",
"English",
512,
false,
true,
true
]
},
{
"id": 20,
"type": "UL_TranslatorLoader",
"pos": [
90,
240
],
"size": [
410,
130
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "model",
"type": "TRANSLATE_MODEL",
"links": [
32
]
},
{
"name": "model_dir",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "UL_TranslatorLoader"
},
"widgets_values": [
"utrobinmv/t5_translate_en_ru_zh_small_1024",
"auto",
true
]
},
{
"id": 21,
"type": "ShowText|pysssss",
"pos": [
1000,
200
],
"size": [
360,
160
],
"flags": {},
"order": 9,
"mode": 4,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 33,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"close-up of hakurei reimu sitting in a room, with text: * and * on the wall.\n"
]
},
{
"id": 22,
"type": "Reroute",
"pos": [
660,
980
],
"size": [
75,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 34,
"widget": {
"name": "value"
}
}
],
"outputs": [
{
"name": "",
"type": "STRING",
"links": [
35
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 24,
"type": "Note",
"pos": [
520,
910
],
"size": [
390,
60
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Custom translator if want non-English prompt."
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
15,
11,
0,
13,
0,
"AnyText_Model"
],
[
16,
12,
1,
13,
1,
"MASK"
],
[
17,
10,
1,
13,
2,
"LIST"
],
[
20,
14,
0,
13,
3,
"LATENT"
],
[
21,
11,
0,
15,
0,
"AnyText_Model"
],
[
22,
13,
0,
15,
1,
"CONDITIONING"
],
[
23,
13,
1,
15,
2,
"CONDITIONING"
],
[
24,
15,
0,
16,
0,
"LATENT"
],
[
25,
11,
1,
16,
1,
"VAE"
],
[
26,
16,
0,
17,
0,
"IMAGE"
],
[
27,
12,
0,
13,
4,
"IMAGE"
],
[
32,
20,
0,
19,
0,
"TRANSLATE_MODEL"
],
[
33,
19,
0,
21,
0,
"STRING"
],
[
34,
10,
0,
22,
0,
"*"
],
[
35,
22,
0,
13,
5,
"STRING"
],
[
36,
10,
0,
19,
1,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5497558138880017,
"offset": [
497.40111807779,
0.2761224337378523
]
},
"node_versions": {
"comfy-core": "0.3.14",
"ComfyUI_Anytext": "bbcbd184bb5b0017f79038d3baa9f13786121b41",
"ComfyUI-Custom-Scripts": "a53ef9b617ed1331640d7a2cd97644995908dc00\n"
},
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}