{
  "id": "835fe4fb-8a94-466a-b3de-015717ef0946",
  "revision": 0,
  "last_node_id": 418,
  "last_link_id": 883,
  "nodes": [
    {
      "id": 233,
      "type": "Note",
      "pos": [
        -700.5222778320312,
        474.97137451171875
      ],
      "size": [
        210,
        117.09991455078125
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "For Quantization:\nQ5_k_m is proabaly the best sweet spot between accuracy and size.\nI still get good results with:\nQ2_k but dont get a _s version it doesent work very well."
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 370,
      "type": "Lora Loader Stack (rgthree)",
      "pos": [
        -24.085371017456055,
        488.0351257324219
      ],
      "size": [
        271.8785095214844,
        246
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 841
        },
        {
          "name": "clip",
          "type": "CLIP",
          "link": 743
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            792
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            744,
            745
          ]
        }
      ],
      "properties": {
        "cnr_id": "rgthree-comfy",
        "ver": "f754c4765849aa748abb35a1f030a5ed6474a69b",
        "Node name for S&R": "Lora Loader Stack (rgthree)"
      },
      "widgets_values": [
        "None",
        1,
        "None",
        1,
        "None",
        1,
        "None",
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 330,
      "type": "TorchCompileModelWanVideoV2",
      "pos": [
        228.5065155029297,
        187.26113891601562
      ],
      "size": [
        342.74609375,
        178
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 792
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            689
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
        "Node name for S&R": "TorchCompileModelWanVideoV2"
      },
      "widgets_values": [
        "inductor",
        false,
        "default",
        false,
        true,
        64
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 279,
      "type": "PathchSageAttentionKJ",
      "pos": [
        590.2732543945312,
        122.15495300292969
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 790
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            791
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "8ecf5cd05e0a1012087b0da90eea9a13674668db",
        "Node name for S&R": "PathchSageAttentionKJ"
      },
      "widgets_values": [
        "sageattn_qk_int8_pv_fp16_triton"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 106,
      "type": "RIFE VFI",
      "pos": [
        1287.05810546875,
        1128.234375
      ],
      "size": [
        478.8000183105469,
        198
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [
        {
          "name": "frames",
          "type": "IMAGE",
          "link": 253
        },
        {
          "name": "optional_interpolation_states",
          "shape": 7,
          "type": "INTERPOLATION_STATES",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            380
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-frame-interpolation",
        "ver": "c336f7184cb1ac1243381e725fea1ad2c0a10c09",
        "Node name for S&R": "RIFE VFI",
        "aux_id": "Fannovel16/ComfyUI-Frame-Interpolation"
      },
      "widgets_values": [
        "rife49.pth",
        10,
        1,
        false,
        false,
        1
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 385,
      "type": "WanVideoNAG",
      "pos": [
        1449.0513916015625,
        155.44549560546875
      ],
      "size": [
        270,
        126
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 787
        },
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 789
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            801
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "ad37ce656c13e9abea002b46e3a89be3dba32355",
        "Node name for S&R": "WanVideoNAG"
      },
      "widgets_values": [
        11,
        0.25,
        2.3730000000000007
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 359,
      "type": "ApplyRifleXRoPE_WanVideo",
      "pos": [
        622.8348388671875,
        0.0916915088891983
      ],
      "size": [
        280.4371032714844,
        78
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 719
        },
        {
          "name": "latent",
          "type": "LATENT",
          "link": 880
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            790
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
        "Node name for S&R": "ApplyRifleXRoPE_WanVideo"
      },
      "widgets_values": [
        4
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 230,
      "type": "Note",
      "pos": [
        1522.8568115234375,
        1451.509033203125
      ],
      "size": [
        334.1397705078125,
        160.9766845703125
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "If you want to know how to set the correct settings look at this article: \n\nhttps://www.reddit.com/r/StableDiffusion/comments/1j0zmgs/i_asked_deep_research_to_get_best_practices_for\n\nI like Denoise 1 Euler simple cfg:6-4 steps:30 is good at about 50 I would stop cause it just takes forever."
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 78,
      "type": "UpscaleModelLoader",
      "pos": [
        901.8253173828125,
        1029.76220703125
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "UPSCALE_MODEL",
          "type": "UPSCALE_MODEL",
          "slot_index": 0,
          "links": [
            817
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "UpscaleModelLoader"
      },
      "widgets_values": [
        "RealESRGAN_x4.pth"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 80,
      "type": "ImageScale",
      "pos": [
        924.83203125,
        1168.09765625
      ],
      "size": [
        315,
        130
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 816
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            253
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "ImageScale"
      },
      "widgets_values": [
        "lanczos",
        1080,
        1920,
        "center"
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 364,
      "type": "ModelSamplingSD3",
      "pos": [
        1491.4228515625,
        27.75309944152832
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 751
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            787
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.43",
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        6.000000000000001
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 373,
      "type": "CFGZeroStarAndInit",
      "pos": [
        1102.1168212890625,
        154.39366149902344
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 750
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            751
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "ff49e1b01f10a14496b08e21bb89b64d2b15f333",
        "Node name for S&R": "CFGZeroStarAndInit"
      },
      "widgets_values": [
        false,
        2
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 82,
      "type": "VHS_VideoCombine",
      "pos": [
        2023.0849609375,
        788.7296752929688
      ],
      "size": [
        227.08653259277344,
        716.15380859375
      ],
      "flags": {},
      "order": 27,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 380
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager",
          "link": null
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "Filenames",
          "type": "VHS_FILENAMES",
          "slot_index": 0,
          "links": null
        }
      ],
      "title": "Export",
      "properties": {
        "cnr_id": "comfyui-videohelpersuite",
        "ver": "124c913ccdd8a585734ea758c35fa1bab8499c99",
        "Node name for S&R": "VHS_VideoCombine",
        "aux_id": "Kosinkadink/ComfyUI-VideoHelperSuite"
      },
      "widgets_values": {
        "frame_rate": 24,
        "loop_count": 0,
        "filename_prefix": "AnimateDiff",
        "format": "video/h264-mp4",
        "pix_fmt": "yuv420p",
        "crf": 19,
        "save_metadata": false,
        "trim_to_audio": false,
        "pingpong": true,
        "save_output": true,
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "AnimateDiff_00096.mp4",
            "subfolder": "",
            "type": "output",
            "format": "video/h264-mp4",
            "frame_rate": 24,
            "workflow": "AnimateDiff_00096.png",
            "fullpath": "C:\\Users\\friso\\Desktop\\ComfyUI_windows_portable_nvidia\\ComfyUI_windows_portable\\ComfyUI\\output\\AnimateDiff_00096.mp4"
          }
        }
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 398,
      "type": "ImageUpscaleWithModel",
      "pos": [
        1389.1080322265625,
        1022.8790283203125
      ],
      "size": [
        221.98202514648438,
        46
      ],
      "flags": {
        "collapsed": false
      },
      "order": 24,
      "mode": 0,
      "inputs": [
        {
          "name": "upscale_model",
          "type": "UPSCALE_MODEL",
          "link": 817
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 822
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            816
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "ImageUpscaleWithModel"
      },
      "widgets_values": []
    },
    {
      "id": 402,
      "type": "CLIPVisionLoader",
      "pos": [
        -374.8016052246094,
        890.4683837890625
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP_VISION",
          "type": "CLIP_VISION",
          "links": [
            824
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "CLIPVisionLoader"
      },
      "widgets_values": [
        "clip_vision_h_fp8_e4m3fn.safetensors"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 111,
      "type": "CLIPTextEncode",
      "pos": [
        324.1131286621094,
        732.385009765625
      ],
      "size": [
        422.84503173828125,
        164.31304931640625
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 745
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            789,
            875
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 403,
      "type": "CLIPVisionEncode",
      "pos": [
        -34.13607406616211,
        806.708251953125
      ],
      "size": [
        290.390625,
        78
      ],
      "flags": {
        "collapsed": false
      },
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip_vision",
          "type": "CLIP_VISION",
          "link": 824
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 881
        }
      ],
      "outputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "links": [
            877
          ]
        }
      ],
      "title": "CLIP Vision Encode Start Image",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "CLIPVisionEncode"
      },
      "widgets_values": [
        "center"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 44,
      "type": "CLIPTextEncode",
      "pos": [
        319.3870544433594,
        478.16705322265625
      ],
      "size": [
        426.4548034667969,
        196.80123901367188
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 744
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            876
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "A futuristic female cyborg standing in a neon-lit control room begins to slowly look around, then puts her hand down to activate a glowing interface. The lights around her flicker subtly as she scans the environment. Smooth cinematic camera pan from left to right. Realistic anime shading, crisp motion, 24fps style animation, 2-second loop."
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 382,
      "type": "VAELoader",
      "pos": [
        -374.8248291015625,
        784.7362670898438
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            819,
            883
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "wan_2.1_vae.safetensors"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 416,
      "type": "LoadImage",
      "pos": [
        -253.7372589111328,
        1151.1622314453125
      ],
      "size": [
        270,
        314
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            881,
            882
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "AnimateDiff_00034.png",
        "image"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 226,
      "type": "WanVideoTeaCacheKJ",
      "pos": [
        232.1935272216797,
        0.35735753178596497
      ],
      "size": [
        340.20001220703125,
        154
      ],
      "flags": {
        "collapsed": false
      },
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 689
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            719
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "fa6d20eeb32cbcbd84ee325e3cfdc6ed6b43056f",
        "Node name for S&R": "WanVideoTeaCacheKJ",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        0.2760000000000001,
        0.6000000000000001,
        0.9000000000000001,
        "main_device",
        "i2v_480"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 275,
      "type": "LoaderGGUF",
      "pos": [
        -388.7915344238281,
        506.6331481933594
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            841
          ]
        }
      ],
      "properties": {
        "cnr_id": "gguf",
        "ver": "2ed7acf3cdcaba4ca70e7961507b47598d3e1ce0",
        "Node name for S&R": "LoaderGGUF",
        "aux_id": "calcuis/gguf"
      },
      "widgets_values": [
        "wan2.1-i2v-14b-480p-Q3_K_M.gguf"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 391,
      "type": "Asymmetric Tiled KSampler",
      "pos": [
        1313.024169921875,
        531.4937133789062
      ],
      "size": [
        272.0835876464844,
        310
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 801
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 872
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 873
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 874
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            818
          ]
        }
      ],
      "properties": {
        "cnr_id": "tiled_ksampler",
        "ver": "d954379b188efd8d66f4280878a7b582038729e5",
        "Node name for S&R": "Asymmetric Tiled KSampler"
      },
      "widgets_values": [
        8895,
        "fixed",
        1,
        1,
        40,
        6,
        "dpmpp_2m",
        "sgm_uniform",
        1
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 307,
      "type": "CLIPLoader",
      "pos": [
        -386.5144348144531,
        623.2466430664062
      ],
      "size": [
        315,
        106
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "showAdvanced": true,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            743
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.27",
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "t5xxl_um_fp8_e4m3fn_scaled.safetensors",
        "wan",
        "default"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 400,
      "type": "VAEDecodeTiled",
      "pos": [
        421.2698059082031,
        1063.927978515625
      ],
      "size": [
        270,
        150
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 818
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 819
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            822
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "VAEDecodeTiled"
      },
      "widgets_values": [
        256,
        64,
        64,
        8
      ]
    },
    {
      "id": 415,
      "type": "WanImageToVideo",
      "pos": [
        988.9009399414062,
        552.4381713867188
      ],
      "size": [
        270,
        210
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 876
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 875
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 883
        },
        {
          "name": "clip_vision_output",
          "shape": 7,
          "type": "CLIP_VISION_OUTPUT",
          "link": 877
        },
        {
          "name": "start_image",
          "shape": 7,
          "type": "IMAGE",
          "link": 882
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            872
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            873
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            874,
            879,
            880
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "WanImageToVideo"
      },
      "widgets_values": [
        480,
        848,
        29,
        1
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 386,
      "type": "SkipLayerGuidanceWanVideo",
      "pos": [
        593.7037963867188,
        237.8304443359375
      ],
      "size": [
        297.5747985839844,
        106
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 791
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            786
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "ad37ce656c13e9abea002b46e3a89be3dba32355",
        "Node name for S&R": "SkipLayerGuidanceWanVideo"
      },
      "widgets_values": [
        "10",
        0.5000000000000001,
        0.8000000000000002
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 316,
      "type": "WanVideoEnhanceAVideoKJ",
      "pos": [
        1102.465087890625,
        27.36427879333496
      ],
      "size": [
        326.1216735839844,
        78
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 786
        },
        {
          "name": "latent",
          "type": "LATENT",
          "link": 879
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            750
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "b7e5b6f1e2b7c79b3f1e4b4bfe5e1687715803ab",
        "Node name for S&R": "WanVideoEnhanceAVideoKJ"
      },
      "widgets_values": [
        1.0000000000000002
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 417,
      "type": "MarkdownNote",
      "pos": [
        -1401,
        0
      ],
      "size": [
        640,
        1240
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "How to use",
      "properties": {},
      "widgets_values": [
        "## How to use (Wan 2.1 I2V 14B 480p GGUF, v2.0.1)\n\n**What it does:** start image + prompt -> short video with Wan 2.1 I2V 14B 480p (GGUF). Then RealESRGAN x4 upscale, resize to 1080 x 1920 and save as MP4. Made for low VRAM (from 4 GB with a small quant).\n\n**Inputs**\n1. **Load Image** (group \"Input image workflow\"): the first frame. CLIP Vision reads it (center crop).\n2. **Positive prompt**: the motion and camera you want.\n3. **Negative prompt**: empty by default. It also feeds NAG.\n\n**Models (group \"Models and Loras\")**\n- Unet Loader (GGUF): wan2.1-i2v-14b-480p-Q3_K_M.gguf. Any Wan 2.1 I2V 14B 480p quant works.\n- CLIP Loader: t5xxl_um_fp8_e4m3fn_scaled, type wan.\n- VAE Loader: wan_2.1_vae.\n- CLIP Vision Loader: clip_vision_h_fp8_e4m3fn.\n- Lora Loader Stack: 4 slots, all None. Wan 2.1 I2V 14B LoRAs only.\n\n**Important settings**\n- Size and length (WanImageToVideo): 480 x 848, 29 frames. Match the shape of your image.\n- Sampler (Asymmetric Tiled KSampler): seed 8895 (fixed), steps 40, cfg 6, dpmpp_2m / sgm_uniform, denoise 1.\n- Shift (ModelSamplingSD3): 6.\n- TeaCache: threshold 0.276, start 0.6, end 0.9, coefficients i2v_480. Higher threshold = faster but softer.\n- Extras on the model line: Enhance-A-Video 1.0, CFG-Zero*, NAG scale 11, Skip Layer Guidance (block 10, 0.5 to 0.8), RifleXRoPE k 4.\n- VAE Decode (Tiled): tile 256.\n- Output: RealESRGAN x4, Image Scale 1080 x 1920 (lanczos, center crop), RIFE VFI multiplier 1 (set 2 for twice the frames), Export 24 fps h264 crf 19.\n\n**Tips**\n- Out of memory: pick a smaller GGUF quant (see the Quantization note), use fewer frames, or lower the VAE Decode (Tiled) tile size.\n- Torch Compile needs Triton. If it errors, select TorchCompileModelWanVideoV2 and bypass it (Ctrl+B).\n- The Patch Sage Attention KJ node needs the sageattention package. Without it, bypass that node.\n- **Faster attention:** start ComfyUI with --use-sage-attention (less VRAM). --use-ck-attention changes the image for the same seed.\n- The Export node has pingpong on: the clip plays forward, then backward. Turn it off for a plain clip.\n- Settings help: CFG and shift: https://www.reddit.com/r/StableDiffusion/comments/1j2q0xw/dont_overlook_the_values_of_shift_and_cfg_on_wan\n- Common errors: https://civitai.com/articles/17240\n\n**Tested on:** RTX 3050 Laptop 4 GB (author). Checked against ComfyUI 0.45.3: the core nodes and their inputs match; not run there (the test server has neither the tiled_ksampler and Frame-Interpolation packs nor these models).\n"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 418,
      "type": "MarkdownNote",
      "pos": [
        -1401,
        1280
      ],
      "size": [
        640,
        560
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Downloads",
      "properties": {},
      "widgets_values": [
        "## Downloads - put each file in the ComfyUI folder shown\n\nClick a file name to download it. Folders are inside `ComfyUI/models/`. Full list: downloads.md in this folder.\n\n| Folder | File (click = download) | Size |\n|---|---|---|\n| `diffusion_models/` | [wan2.1-i2v-14b-480p-Q3_K_M.gguf](https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q3_K_M.gguf) (other quants in the same repo) | |\n| `text_encoders/` | [t5xxl_um_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/calcuis/wan-gguf/resolve/main/t5xxl_um_fp8_e4m3fn_scaled.safetensors) | 6.7 GB |\n| `vae/` | [wan_2.1_vae.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors) | |\n| `clip_vision/` | [clip_vision_h_fp8_e4m3fn.safetensors](https://huggingface.co/calcuis/wan-gguf/resolve/main/clip_vision_h_fp8_e4m3fn.safetensors) | 0.6 GB |\n| `upscale_models/` | [RealESRGAN_x4.pth](https://huggingface.co/ai-forever/Real-ESRGAN/resolve/main/RealESRGAN_x4.pth) | 0.07 GB |\n\n`rife49.pth` is downloaded by ComfyUI-Frame-Interpolation on first run.\n\n**Custom node packs:** gguf (calcuis), tiled_ksampler, ComfyUI-KJNodes, ComfyUI-VideoHelperSuite, rgthree-comfy, ComfyUI-Frame-Interpolation.\n\nOne command from the repo root: `python scripts/frizzy.py doctor wan2.1/gguf-lowvram`\n"
      ],
      "color": "#432",
      "bgcolor": "#653"
    }
  ],
  "links": [
    [
      253,
      80,
      0,
      106,
      0,
      "IMAGE"
    ],
    [
      380,
      106,
      0,
      82,
      0,
      "IMAGE"
    ],
    [
      689,
      330,
      0,
      226,
      0,
      "MODEL"
    ],
    [
      719,
      226,
      0,
      359,
      0,
      "MODEL"
    ],
    [
      743,
      307,
      0,
      370,
      1,
      "CLIP"
    ],
    [
      744,
      370,
      1,
      44,
      0,
      "CLIP"
    ],
    [
      745,
      370,
      1,
      111,
      0,
      "CLIP"
    ],
    [
      750,
      316,
      0,
      373,
      0,
      "MODEL"
    ],
    [
      751,
      373,
      0,
      364,
      0,
      "MODEL"
    ],
    [
      786,
      386,
      0,
      316,
      0,
      "MODEL"
    ],
    [
      787,
      364,
      0,
      385,
      0,
      "MODEL"
    ],
    [
      789,
      111,
      0,
      385,
      1,
      "CONDITIONING"
    ],
    [
      790,
      359,
      0,
      279,
      0,
      "MODEL"
    ],
    [
      791,
      279,
      0,
      386,
      0,
      "MODEL"
    ],
    [
      792,
      370,
      0,
      330,
      0,
      "MODEL"
    ],
    [
      801,
      385,
      0,
      391,
      0,
      "MODEL"
    ],
    [
      816,
      398,
      0,
      80,
      0,
      "IMAGE"
    ],
    [
      817,
      78,
      0,
      398,
      0,
      "UPSCALE_MODEL"
    ],
    [
      818,
      391,
      0,
      400,
      0,
      "LATENT"
    ],
    [
      819,
      382,
      0,
      400,
      1,
      "VAE"
    ],
    [
      822,
      400,
      0,
      398,
      1,
      "IMAGE"
    ],
    [
      824,
      402,
      0,
      403,
      0,
      "CLIP_VISION"
    ],
    [
      841,
      275,
      0,
      370,
      0,
      "MODEL"
    ],
    [
      872,
      415,
      0,
      391,
      1,
      "CONDITIONING"
    ],
    [
      873,
      415,
      1,
      391,
      2,
      "CONDITIONING"
    ],
    [
      874,
      415,
      2,
      391,
      3,
      "LATENT"
    ],
    [
      875,
      111,
      0,
      415,
      1,
      "CONDITIONING"
    ],
    [
      876,
      44,
      0,
      415,
      0,
      "CONDITIONING"
    ],
    [
      877,
      403,
      0,
      415,
      3,
      "CLIP_VISION_OUTPUT"
    ],
    [
      879,
      415,
      2,
      316,
      1,
      "LATENT"
    ],
    [
      880,
      415,
      2,
      359,
      1,
      "LATENT"
    ],
    [
      881,
      416,
      0,
      403,
      1,
      "IMAGE"
    ],
    [
      882,
      416,
      0,
      415,
      4,
      "IMAGE"
    ],
    [
      883,
      382,
      0,
      415,
      2,
      "VAE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Models and Loras",
      "bounding": [
        -418.4708557128906,
        397.3606872558594,
        695.1738891601562,
        562.715576171875
      ],
      "color": "#88A",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Prompt and Sampler",
      "bounding": [
        296.4618225097656,
        395.78802490234375,
        1487.3677978515625,
        557.2505493164062
      ],
      "color": "#8A8",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Input image workflow",
      "bounding": [
        -413.62481689453125,
        971.7687377929688,
        684.10009765625,
        685.4319458007812
      ],
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 4,
      "title": "Upscaler and 2nd frame interpolaration",
      "bounding": [
        865.3817749023438,
        966.560302734375,
        913.2577514648438,
        409.3675231933594
      ],
      "color": "#a1309b",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 5,
      "title": "Compiling, Cache Internal Frame Interpolaration",
      "bounding": [
        209.2317352294922,
        -53.53274154663086,
        793.6033935546875,
        427.86962890625
      ],
      "color": "#b58b2a",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 6,
      "title": "Enhance and Sampling",
      "bounding": [
        1072.814697265625,
        -46.315372467041016,
        719.3086547851562,
        376.06207275390625
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.7627768444386109,
      "offset": [
        -274.2781441167818,
        -484.38725155579976
      ]
    },
    "frontendVersion": "1.23.4",
    "groupNodes": {},
    "node_versions": {
      "comfyui-frame-interpolation": "c336f7184cb1ac1243381e725fea1ad2c0a10c09",
      "comfy-core": "0.3.15",
      "comfyui-videohelpersuite": "124c913ccdd8a585734ea758c35fa1bab8499c99",
      "comfyui-hunyuanvideowrapper": "8e0283bb3c9c2d0e38097c09fdfd3ad8e24cd333",
      "ComfyUI-GGUF": "5875c52f59baca3a9372d68c43a3775e21846fe0",
      "ComfyUI-HunyuanVideoSamplerSave": "12da6f230aae1427c74e96dd3d34735d5b8bd390",
      "comfyui-kjnodes": "095c8d4b526ba3c1f12fd9dd1d7f3540c6a11358"
    },
    "ue_links": [],
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}