{ "id": "bdec6d53-d024-44ba-b365-bffa04ed8c10", "revision": 0, "last_node_id": 45, "last_link_id": 125, "nodes": [ { "id": 16, "type": "KSamplerSelect", "pos": [ 480, 912 ], "size": [ 315, 58 ], "flags": {}, "order": 0, "mode": 0, "inputs": [ { "localized_name": "sampler_name", "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": null } ], "outputs": [ { "localized_name": "SAMPLER", "name": "SAMPLER", "type": "SAMPLER", "links": [ 19 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "KSamplerSelect" }, "widgets_values": [ "euler" ] }, { "id": 26, "type": "FluxGuidance", "pos": [ 480, 144 ], "size": [ 317.4000244140625, 58 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "localized_name": "conditioning", "name": "conditioning", "type": "CONDITIONING", "link": 41 }, { "localized_name": "guidance", "name": "guidance", "type": "FLOAT", "widget": { "name": "guidance" }, "link": null } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 122 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "FluxGuidance" }, "widgets_values": [ 3.5 ], "color": "#233", "bgcolor": "#355" }, { "id": 13, "type": "SamplerCustomAdvanced", "pos": [ 864, 192 ], "size": [ 272.3617858886719, 124.53733825683594 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "localized_name": "noise", "name": "noise", "type": "NOISE", "link": 37 }, { "localized_name": "guider", "name": "guider", "type": "GUIDER", "link": 30 }, { "localized_name": "sampler", "name": "sampler", "type": "SAMPLER", "link": 19 }, { "localized_name": "sigmas", "name": "sigmas", "type": "SIGMAS", "link": 20 }, { "localized_name": "latent_image", "name": "latent_image", "type": "LATENT", "link": 116 } ], "outputs": [ { "localized_name": "output", "name": "output", "type": "LATENT", "slot_index": 0, "links": [ 24 ] }, { "localized_name": "denoised_output", "name": "denoised_output", "type": "LATENT", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "SamplerCustomAdvanced" }, "widgets_values": [] }, { "id": 25, "type": "RandomNoise", "pos": [ 480, 768 ], "size": [ 315, 82 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "localized_name": "noise_seed", "name": "noise_seed", "type": "INT", "widget": { "name": "noise_seed" }, "link": null } ], "outputs": [ { "localized_name": "NOISE", "name": "NOISE", "type": "NOISE", "links": [ 37 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "RandomNoise" }, "widgets_values": [ 913812923745252, "randomize" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 8, "type": "VAEDecode", "pos": [ 866, 367 ], "size": [ 210, 46 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 24 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 12 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 9 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 30, "type": "ModelSamplingFlux", "pos": [ 480, 1152 ], "size": [ 315, 130 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 125 }, { "localized_name": "max_shift", "name": "max_shift", "type": "FLOAT", "widget": { "name": "max_shift" }, "link": null }, { "localized_name": "base_shift", "name": "base_shift", "type": "FLOAT", "widget": { "name": "base_shift" }, "link": null }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 115 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 114 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 54, 55 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "ModelSamplingFlux" }, "widgets_values": [ 1.15, 0.5, 1024, 1024 ] }, { "id": 27, "type": "EmptySD3LatentImage", "pos": [ 480, 624 ], "size": [ 315, 106 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 112 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 113 }, { "localized_name": "batch_size", "name": "batch_size", "type": "INT", "widget": { "name": "batch_size" }, "link": null } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 116 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "EmptySD3LatentImage" }, "widgets_values": [ 1024, 1024, 1 ] }, { "id": 34, "type": "PrimitiveNode", "pos": [ 432, 480 ], "size": [ 210, 82 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "widget": { "name": "width" }, "slot_index": 0, "links": [ 112, 115 ] } ], "title": "width", "properties": { "Run widget replace on values": false }, "widgets_values": [ 1024, "fixed" ], "color": "#323", "bgcolor": "#535" }, { "id": 35, "type": "PrimitiveNode", "pos": [ 672, 480 ], "size": [ 210, 82 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "widget": { "name": "height" }, "slot_index": 0, "links": [ 113, 114 ] } ], "title": "height", "properties": { "Run widget replace on values": false }, "widgets_values": [ 1024, "fixed" ], "color": "#323", "bgcolor": "#535" }, { "id": 9, "type": "SaveImage", "pos": [ 1155, 196 ], "size": [ 985.3012084960938, 1060.3828125 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 9 }, { "localized_name": "filename_prefix", "name": "filename_prefix", "type": "STRING", "widget": { "name": "filename_prefix" }, "link": null } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27" }, "widgets_values": [ "ComfyUI" ] }, { "id": 37, "type": "Note", "pos": [ 480, 1344 ], "size": [ 314.99755859375, 117.98363494873047 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [], "properties": { "text": "" }, "widgets_values": [ "The reference sampling implementation auto adjusts the shift value based on the resolution, if you don't want this you can just bypass (CTRL-B) this ModelSamplingFlux node.\n" ], "color": "#432", "bgcolor": "#653" }, { "id": 28, "type": "Note", "pos": [ 48, 576 ], "size": [ 336, 288 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [], "properties": { "text": "" }, "widgets_values": [ "If you get an error in any of the nodes above make sure the files are in the correct directories.\n\nSee the top of the examples page for the links : https://comfyanonymous.github.io/ComfyUI_examples/flux/\n\nflux1-dev.safetensors goes in: ComfyUI/models/unet/\n\nt5xxl_fp16.safetensors and clip_l.safetensors go in: ComfyUI/models/clip/\n\nae.safetensors goes in: ComfyUI/models/vae/\n\n\nTip: You can set the weight_dtype above to one of the fp8 types if you have memory issues." ], "color": "#432", "bgcolor": "#653" }, { "id": 39, "type": "CLIPVisionEncode", "pos": [ 420, -300 ], "size": [ 290, 78 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "localized_name": "clip_vision", "name": "clip_vision", "type": "CLIP_VISION", "link": 117 }, { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 118 }, { "localized_name": "crop", "name": "crop", "type": "COMBO", "widget": { "name": "crop" }, "link": null } ], "outputs": [ { "localized_name": "CLIP_VISION_OUTPUT", "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "slot_index": 0, "links": [ 120 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "CLIPVisionEncode" }, "widgets_values": [ "center" ] }, { "id": 41, "type": "StyleModelApply", "pos": [ 760, -300 ], "size": [ 320, 122 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "localized_name": "conditioning", "name": "conditioning", "type": "CONDITIONING", "link": 122 }, { "localized_name": "style_model", "name": "style_model", "type": "STYLE_MODEL", "link": 119 }, { "localized_name": "clip_vision_output", "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "link": 120 }, { "localized_name": "strength", "name": "strength", "type": "FLOAT", "widget": { "name": "strength" }, "link": null }, { "localized_name": "strength_type", "name": "strength_type", "type": "COMBO", "widget": { "name": "strength_type" }, "link": null } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 123 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "StyleModelApply" }, "widgets_values": [ 1, "multiply" ] }, { "id": 22, "type": "BasicGuider", "pos": [ 960, 66 ], "size": [ 222.3482666015625, 46 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 54 }, { "localized_name": "conditioning", "name": "conditioning", "type": "CONDITIONING", "link": 123 } ], "outputs": [ { "localized_name": "GUIDER", "name": "GUIDER", "type": "GUIDER", "slot_index": 0, "links": [ 30 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "BasicGuider" }, "widgets_values": [] }, { "id": 43, "type": "Note", "pos": [ 1130, -440 ], "size": [ 345.9017028808594, 182.3145294189453 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "The redux model lets you prompt with images. It can be used with any Flux1 dev or schnell model workflow.\n\nYou can chain multiple \"Apply Style Model\" nodes if you want to mix multiple images together." ], "color": "#432", "bgcolor": "#653" }, { "id": 17, "type": "BasicScheduler", "pos": [ 483.37908935546875, 1006.0205688476562 ], "size": [ 315, 106 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 55 }, { "localized_name": "scheduler", "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": null }, { "localized_name": "steps", "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": null }, { "localized_name": "denoise", "name": "denoise", "type": "FLOAT", "widget": { "name": "denoise" }, "link": null } ], "outputs": [ { "localized_name": "SIGMAS", "name": "SIGMAS", "type": "SIGMAS", "links": [ 20 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "BasicScheduler" }, "widgets_values": [ "simple", 20, 1 ] }, { "id": 11, "type": "DualCLIPLoader", "pos": [ 50.331546783447266, 305.58355712890625 ], "size": [ 315, 130 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "localized_name": "clip_name1", "name": "clip_name1", "type": "COMBO", "widget": { "name": "clip_name1" }, "link": null }, { "localized_name": "clip_name2", "name": "clip_name2", "type": "COMBO", "widget": { "name": "clip_name2" }, "link": null }, { "localized_name": "type", "name": "type", "type": "COMBO", "widget": { "name": "type" }, "link": null }, { "localized_name": "device", "name": "device", "shape": 7, "type": "COMBO", "widget": { "name": "device" }, "link": null } ], "outputs": [ { "localized_name": "CLIP", "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 10 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "DualCLIPLoader" }, "widgets_values": [ "t5xxl_fp16.safetensors", "clip_l.safetensors", "flux", "default" ] }, { "id": 10, "type": "VAELoader", "pos": [ 54.39567565917969, 475.6108093261719 ], "size": [ 311.81634521484375, 60.429901123046875 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "localized_name": "vae_name", "name": "vae_name", "type": "COMBO", "widget": { "name": "vae_name" }, "link": null } ], "outputs": [ { "localized_name": "VAE", "name": "VAE", "type": "VAE", "slot_index": 0, "links": [ 12 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "VAELoader" }, "widgets_values": [ "ae.safetensors" ] }, { "id": 45, "type": "NunchakuFluxDiTLoader", "pos": [ 83.87139129638672, 1020.9346313476562 ], "size": [ 315, 202 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "localized_name": "model_path", "name": "model_path", "type": "COMBO", "widget": { "name": "model_path" }, "link": null }, { "localized_name": "cache_threshold", "name": "cache_threshold", "type": "FLOAT", "widget": { "name": "cache_threshold" }, "link": null }, { "localized_name": "attention", "name": "attention", "type": "COMBO", "widget": { "name": "attention" }, "link": null }, { "localized_name": "cpu_offload", "name": "cpu_offload", "type": "COMBO", "widget": { "name": "cpu_offload" }, "link": null }, { "localized_name": "device_id", "name": "device_id", "type": "INT", "widget": { "name": "device_id" }, "link": null }, { "localized_name": "data_type", "name": "data_type", "type": "COMBO", "widget": { "name": "data_type" }, "link": null }, { "localized_name": "i2f_mode", "name": "i2f_mode", "shape": 7, "type": "COMBO", "widget": { "name": "i2f_mode" }, "link": null } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "links": [ 125 ] } ], "properties": { "Node name for S&R": "NunchakuFluxDiTLoader" }, "widgets_values": [ "svdq-fp4-flux.1-dev", 0, "nunchaku-fp16", "auto", 0, "bfloat16", "enabled" ] }, { "id": 42, "type": "StyleModelLoader", "pos": [ 400, -180 ], "size": [ 340, 60 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "localized_name": "style_model_name", "name": "style_model_name", "type": "COMBO", "widget": { "name": "style_model_name" }, "link": null } ], "outputs": [ { "localized_name": "STYLE_MODEL", "name": "STYLE_MODEL", "type": "STYLE_MODEL", "links": [ 119 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "StyleModelLoader" }, "widgets_values": [ "flux1-redux-dev.safetensors" ] }, { "id": 40, "type": "LoadImage", "pos": [ 60, -300 ], "size": [ 315, 314 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "COMBO", "widget": { "name": "image" }, "link": null }, { "localized_name": "choose file to upload", "name": "upload", "type": "IMAGEUPLOAD", "widget": { "name": "upload" }, "link": null } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 118 ] }, { "localized_name": "MASK", "name": "MASK", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "LoadImage" }, "widgets_values": [ "robot.png", "image" ] }, { "id": 38, "type": "CLIPVisionLoader", "pos": [ 60, -410 ], "size": [ 370, 60 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "localized_name": "clip_name", "name": "clip_name", "type": "COMBO", "widget": { "name": "clip_name" }, "link": null } ], "outputs": [ { "localized_name": "CLIP_VISION", "name": "CLIP_VISION", "type": "CLIP_VISION", "slot_index": 0, "links": [ 117 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "CLIPVisionLoader" }, "widgets_values": [ "sigclip_vision_patch14_384.safetensors" ] }, { "id": 6, "type": "CLIPTextEncode", "pos": [ 387.3268737792969, 240.6169891357422 ], "size": [ 422.84503173828125, 164.31304931640625 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "localized_name": "clip", "name": "clip", "type": "CLIP", "link": 10 }, { "localized_name": "text", "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": null } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 41 ] } ], "title": "CLIP Text Encode (Positive Prompt)", "properties": { "cnr_id": "comfy-core", "ver": "0.3.27", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "cute anime girl with massive fluffy fennec ears" ], "color": "#232", "bgcolor": "#353" } ], "links": [ [ 9, 8, 0, 9, 0, "IMAGE" ], [ 10, 11, 0, 6, 0, "CLIP" ], [ 12, 10, 0, 8, 1, "VAE" ], [ 19, 16, 0, 13, 2, "SAMPLER" ], [ 20, 17, 0, 13, 3, "SIGMAS" ], [ 24, 13, 0, 8, 0, "LATENT" ], [ 30, 22, 0, 13, 1, "GUIDER" ], [ 37, 25, 0, 13, 0, "NOISE" ], [ 41, 6, 0, 26, 0, "CONDITIONING" ], [ 54, 30, 0, 22, 0, "MODEL" ], [ 55, 30, 0, 17, 0, "MODEL" ], [ 112, 34, 0, 27, 0, "INT" ], [ 113, 35, 0, 27, 1, "INT" ], [ 114, 35, 0, 30, 4, "INT" ], [ 115, 34, 0, 30, 3, "INT" ], [ 116, 27, 0, 13, 4, "LATENT" ], [ 117, 38, 0, 39, 0, "CLIP_VISION" ], [ 118, 40, 0, 39, 1, "IMAGE" ], [ 119, 42, 0, 41, 1, "STYLE_MODEL" ], [ 120, 39, 0, 41, 2, "CLIP_VISION_OUTPUT" ], [ 122, 26, 0, 41, 0, "CONDITIONING" ], [ 123, 41, 0, 22, 1, "CONDITIONING" ], [ 125, 45, 0, 30, 0, "MODEL" ] ], "groups": [ { "id": 1, "title": "Redux Model", "bounding": [ 50, -483.6000061035156, 1040, 507.6000061035156 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.9849732675807628, "offset": [ 119.2340179032343, 397.00760656086226 ] }, "groupNodes": { "EmptyLatentImage": { "nodes": [ { "type": "PrimitiveNode", "pos": [ 432, 480 ], "size": { "0": 210, "1": 82 }, "flags": {}, "order": 6, "mode": 0, "outputs": [ { "name": "INT", "type": "INT", "links": [], "widget": { "name": "height" }, "slot_index": 0 } ], "title": "height", "properties": { "Run widget replace on values": false }, "color": "#323", "bgcolor": "#535", "index": 0 }, { "type": "PrimitiveNode", "pos": [ 672, 480 ], "size": { "0": 210, "1": 82 }, "flags": {}, "order": 7, "mode": 0, "outputs": [ { "name": "INT", "type": "INT", "links": [], "slot_index": 0, "widget": { "name": "width" } } ], "title": "width", "properties": { "Run widget replace on values": false }, "color": "#323", "bgcolor": "#535", "index": 1 }, { "type": "EmptySD3LatentImage", "pos": [ 480, 624 ], "size": { "0": 315, "1": 106 }, "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "width", "type": "INT", "link": null, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": null, "widget": { "name": "height" } } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "EmptySD3LatentImage" }, "widgets_values": [ 1024, 1024, 1 ], "index": 2 } ], "links": [ [ 1, 0, 2, 0, 34, "INT" ], [ 0, 0, 2, 1, 35, "INT" ] ], "external": [ [ 0, 0, "INT" ], [ 1, 0, "INT" ], [ 2, 0, "LATENT" ] ], "config": { "0": { "output": { "0": { "name": "height" } }, "input": { "value": { "visible": true } } }, "1": { "output": { "0": { "name": "width" } }, "input": { "value": { "visible": true } } }, "2": { "input": { "width": { "visible": false }, "height": { "visible": false } } } } } } }, "version": 0.4 }