Skip to content

Instantly share code, notes, and snippets.

@undrash
Created October 31, 2023 05:42
Show Gist options
  • Save undrash/255748e8fbea35f163ba851b63e0c301 to your computer and use it in GitHub Desktop.
Save undrash/255748e8fbea35f163ba851b63e0c301 to your computer and use it in GitHub Desktop.
Comfy dtype Bug Workflow
{
"last_node_id": 164,
"last_link_id": 954,
"nodes": [
{
"id": 30,
"type": "CLIPTextEncode",
"pos": [
589,
265
],
"size": {
"0": 210,
"1": 54
},
"flags": {
"collapsed": true
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 244,
"slot_index": 0
},
{
"name": "text",
"type": "STRING",
"link": 202,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
101
],
"shape": 3,
"slot_index": 0
}
],
"title": "Positive_Prompt",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 164,
"type": "ImageScaleToTotalPixels",
"pos": [
749,
590
],
"size": {
"0": 281.07647705078125,
"1": 82
},
"flags": {
"collapsed": true
},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 950
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
951
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"nearest-exact",
0.5
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 163,
"type": "ImageScaleToTotalPixels",
"pos": [
749,
646
],
"size": {
"0": 315,
"1": 82
},
"flags": {
"collapsed": true
},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 948
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
949
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"nearest-exact",
0.5
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 31,
"type": "VAEDecodeTiled",
"pos": [
1189,
217
],
"size": {
"0": 315,
"1": 78
},
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 188
},
{
"name": "vae",
"type": "VAE",
"link": 61,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
941
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecodeTiled"
},
"widgets_values": [
768
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 148,
"type": "LoadImagesFromDir //Inspire",
"pos": [
-349,
1082
],
"size": {
"0": 325.7092590332031,
"1": 146
},
"flags": {},
"order": 0,
"mode": 2,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
},
{
"name": "INT",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImagesFromDir //Inspire"
},
"widgets_values": [
"/home/nerdy/Pictures/face_tests",
5,
0
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 157,
"type": "Zoe-DepthMapPreprocessor",
"pos": [
982,
643
],
"size": {
"0": 256.3534851074219,
"1": 58
},
"flags": {
"collapsed": true
},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 949
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
944
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Zoe-DepthMapPreprocessor"
},
"widgets_values": [
640
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 154,
"type": "ControlNetApply",
"pos": [
769,
1145
],
"size": {
"0": 268.6534729003906,
"1": 99.9722671508789
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 952
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 935,
"slot_index": 1
},
{
"name": "image",
"type": "IMAGE",
"link": 944,
"slot_index": 2
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
937
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetApply"
},
"widgets_values": [
0.5
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 21,
"type": "EmptyLatentImage",
"pos": [
563,
347
],
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
192
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
768,
512,
1
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 50,
"type": "unCLIPConditioning",
"pos": [
769,
998
],
"size": {
"0": 262,
"1": 102
},
"flags": {
"collapsed": false
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 101,
"slot_index": 0
},
{
"name": "clip_vision_output",
"type": "CLIP_VISION_OUTPUT",
"link": 96
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
952
],
"shape": 3,
"slot_index": 0
}
],
"title": "Prompt Strength",
"properties": {
"Node name for S&R": "unCLIPConditioning"
},
"widgets_values": [
1,
0.2
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 18,
"type": "CLIPTextEncode",
"pos": [
28.248685199098418,
940
],
"size": {
"0": 673.8198852539062,
"1": 91.80457305908203
},
"flags": {
"collapsed": false
},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 921
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
191
],
"shape": 3,
"slot_index": 0
}
],
"title": "Negative_Prompt",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"nsfw, blurry, lowres, low quality."
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 107,
"type": "ImpactWildcardProcessor",
"pos": [
29,
561
],
"size": {
"0": 673.0685424804688,
"1": 338.57318115234375
},
"flags": {
"collapsed": false
},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
202
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImpactWildcardProcessor"
},
"widgets_values": [
"stunningly iconic masterpiece of the finest quality with amazing details and incredible accuracy",
"stunningly iconic masterpiece of the finest quality with amazing details and incredible accuracy",
false,
696033780390901,
"randomize"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 158,
"type": "SaveImage",
"pos": [
1424,
189
],
"size": {
"0": 853.12451171875,
"1": 800.1122436523438
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 941
}
],
"properties": {},
"widgets_values": [
"Instant_LoRA_2"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 8,
"type": "VAELoader",
"pos": [
29,
184
],
"size": {
"0": 422.33746337890625,
"1": 58
},
"flags": {
"collapsed": false
},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
61
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"vae-ft-mse-840000-ema-pruned.ckpt"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 57,
"type": "CLIPVisionLoader",
"pos": [
29,
290
],
"size": {
"0": 315,
"1": 58
},
"flags": {
"collapsed": false
},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
105
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"ip_adapter_vision.safetensors"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 156,
"type": "ControlNetLoader",
"pos": [
29,
397
],
"size": {
"0": 488.96575927734375,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
935
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"sd15_depth_fp16.safetensors"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 161,
"type": "LoadImage",
"pos": [
29,
1083
],
"size": {
"0": 337.4342041015625,
"1": 314
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
950
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"title": "Load IPAdapter Image",
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"tttt (2).png",
"image"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 84,
"type": "PrimitiveNode",
"pos": [
769,
1291
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
156
],
"widget": {
"name": "weight"
}
}
],
"title": "LoRA Strength",
"properties": {},
"widgets_values": [
0.6,
"fixed"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 155,
"type": "LoadImage",
"pos": [
387,
1084
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 8,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
948
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"title": "Load ControlNet Image",
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"IMG_0774 (2).jpg",
"image"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 97,
"type": "KSampler",
"pos": [
1030,
316
],
"size": {
"0": 327.42791748046875,
"1": 270.6529846191406
},
"flags": {
"collapsed": false
},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 954,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 937,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 191,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 192,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
188
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1005102223559097,
"randomize",
24,
6.5,
"ddpm",
"normal",
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 48,
"type": "IPAdapter",
"pos": [
474,
40
],
"size": {
"0": 299,
"1": 162
},
"flags": {
"collapsed": false
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 235
},
{
"name": "image",
"type": "IMAGE",
"link": 951,
"slot_index": 1
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 105,
"slot_index": 2
},
{
"name": "mask",
"type": "MASK",
"link": null
},
{
"name": "weight",
"type": "FLOAT",
"link": 156,
"widget": {
"name": "weight"
},
"slot_index": 4
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
945
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP_VISION_OUTPUT",
"type": "CLIP_VISION_OUTPUT",
"links": [
96
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "IPAdapter"
},
"widgets_values": [
0.6,
"ip-adapter-plus_sd15.bin",
"fp32"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 159,
"type": "FreeU",
"pos": [
815,
55
],
"size": {
"0": 260,
"1": 130
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 945
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
954
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "FreeU"
},
"widgets_values": [
0.99,
0.99,
0.92,
0.2
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 16,
"type": "CheckpointLoaderSimple",
"pos": [
29,
40
],
"size": {
"0": 438.6684875488281,
"1": 98
},
"flags": {},
"order": 9,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
235
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
244,
921
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"analogMadness_v60.safetensors"
],
"color": "#323",
"bgcolor": "#535"
}
],
"links": [
[
61,
8,
0,
31,
1,
"VAE"
],
[
96,
48,
1,
50,
1,
"CLIP_VISION_OUTPUT"
],
[
101,
30,
0,
50,
0,
"CONDITIONING"
],
[
105,
57,
0,
48,
2,
"CLIP_VISION"
],
[
156,
84,
0,
48,
4,
"FLOAT"
],
[
188,
97,
0,
31,
0,
"LATENT"
],
[
191,
18,
0,
97,
2,
"CONDITIONING"
],
[
192,
21,
0,
97,
3,
"LATENT"
],
[
202,
107,
0,
30,
1,
"STRING"
],
[
235,
16,
0,
48,
0,
"MODEL"
],
[
244,
16,
1,
30,
0,
"CLIP"
],
[
921,
16,
1,
18,
0,
"CLIP"
],
[
935,
156,
0,
154,
1,
"CONTROL_NET"
],
[
937,
154,
0,
97,
1,
"CONDITIONING"
],
[
941,
31,
0,
158,
0,
"IMAGE"
],
[
944,
157,
0,
154,
2,
"IMAGE"
],
[
945,
48,
0,
159,
0,
"MODEL"
],
[
948,
155,
0,
163,
0,
"IMAGE"
],
[
949,
163,
0,
157,
0,
"IMAGE"
],
[
950,
161,
0,
164,
0,
"IMAGE"
],
[
951,
164,
0,
48,
1,
"IMAGE"
],
[
952,
50,
0,
154,
0,
"CONDITIONING"
],
[
954,
159,
0,
97,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment