{ "last_node_id": 66, "last_link_id": 105, "nodes": [ { "id": 3, "type": "HyVideoSampler", "pos": [ 668, -62 ], "size": [ 315, 326 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "model", "type": "HYVIDEOMODEL", "link": 2 }, { "name": "hyvid_embeds", "type": "HYVIDEMBEDS", "link": 36 }, { "name": "samples", "type": "LATENT", "link": 83, "shape": 7 }, { "name": "width", "type": "INT", "link": 55, "widget": { "name": "width" } }, { "name": "height", "type": "INT", "link": 56, "widget": { "name": "height" } }, { "name": "num_frames", "type": "INT", "link": 57, "widget": { "name": "num_frames" } }, { "name": "stg_args", "type": "STGARGS", "link": 96, "shape": 7 } ], "outputs": [ { "name": "samples", "type": "LATENT", "links": [ 4 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "HyVideoSampler" }, "widgets_values": [ 512, 512, 49, 30, 6, 9, 13, "fixed", 1, 0.85 ] }, { "id": 38, "type": "HyVideoEncode", "pos": [ 670.8323974609375, 310.1617126464844 ], "size": [ 315, 150 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "vae", "type": "VAE", "link": 46 }, { "name": "image", "type": "IMAGE", "link": 49 } ], "outputs": [ { "name": "samples", "type": "LATENT", "links": [ 83 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "HyVideoEncode" }, "widgets_values": [ true, 16, 256, true ] }, { "id": 5, "type": "HyVideoDecode", "pos": [ 573.4180908203125, -225.36659240722656 ], "size": [ 345.4285888671875, 150 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "vae", "type": "VAE", "link": 6 }, { "name": "samples", "type": "LATENT", "link": 4 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 59 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "HyVideoDecode" }, "widgets_values": [ true, 8, 256, true ], "color": "#322", "bgcolor": "#533" }, { "id": 53, "type": "VHS_VideoCombine", "pos": [ 1015.4290161132812, -209.97601318359375 ], "size": [ 677.4219360351562, 1063.5997314453125 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 86 }, { "name": "audio", "type": "AUDIO", "link": null, "shape": 7 }, { "name": "meta_batch", "type": "VHS_BatchManager", "link": null, "shape": 7 }, { "name": "vae", "type": "VAE", "link": null, "shape": 7 } ], "outputs": [ { "name": "Filenames", "type": "VHS_FILENAMES", "links": null } ], "properties": { "Node name for S&R": "VHS_VideoCombine" }, "widgets_values": { "frame_rate": 24, "loop_count": 0, "filename_prefix": "HunhuyanVideo", "format": "video/h264-mp4", "pix_fmt": "yuv420p", "crf": 19, "save_metadata": true, "pingpong": false, "save_output": false, "videopreview": { "hidden": false, "paused": false, "params": { "filename": "HunhuyanVideo_00001.mp4", "subfolder": "", "type": "temp", "format": "video/h264-mp4", "frame_rate": 24, "workflow": "HunhuyanVideo_00001.png", "fullpath": "/app/ComfyUI/temp/HunhuyanVideo_00001.mp4" }, "muted": false } } }, { "id": 16, "type": "DownloadAndLoadHyVideoTextEncoder", "pos": [ -310.0473327636719, -196.33966064453125 ], "size": [ 441, 178 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "hyvid_text_encoder", "type": "HYVIDTEXTENCODER", "links": [ 35 ] } ], "properties": { "Node name for S&R": "DownloadAndLoadHyVideoTextEncoder" }, "widgets_values": [ "Kijai/llava-llama-3-8b-text-encoder-tokenizer", "openai/clip-vit-large-patch14", "fp16", false, 2, "disabled" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 44, "type": "ImageConcatMulti", "pos": [ 682.4955444335938, 528.228271484375 ], "size": [ 210, 150 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "image_1", "type": "IMAGE", "link": 58 }, { "name": "image_2", "type": "IMAGE", "link": 59 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 86 ], "slot_index": 0 } ], "properties": {}, "widgets_values": [ 2, "down", false, null ] }, { "id": 39, "type": "GetImageSizeAndCount", "pos": [ 682.5612182617188, 470.1541748046875 ], "size": [ 277.20001220703125, 86 ], "flags": { "collapsed": true }, "order": 11, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 81 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 49, 58 ], "slot_index": 0 }, { "name": "768 width", "type": "INT", "links": [ 55 ], "slot_index": 1 }, { "name": "432 height", "type": "INT", "links": [ 56 ], "slot_index": 2 }, { "name": "101 count", "type": "INT", "links": [ 57 ], "slot_index": 3 } ], "properties": { "Node name for S&R": "GetImageSizeAndCount" }, "widgets_values": [] }, { "id": 42, "type": "ImageResizeKJ", "pos": [ 248.0269012451172, 569.1362915039062 ], "size": [ 315, 266 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 53 }, { "name": "get_image_size", "type": "IMAGE", "link": null, "shape": 7 }, { "name": "width_input", "type": "INT", "link": null, "widget": { "name": "width_input" }, "shape": 7 }, { "name": "height_input", "type": "INT", "link": null, "widget": { "name": "height_input" }, "shape": 7 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 81 ], "slot_index": 0 }, { "name": "width", "type": "INT", "links": null }, { "name": "height", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "ImageResizeKJ" }, "widgets_values": [ 768, 768, "lanczos", true, 16, 0, 0, "disabled" ], "color": "#233", "bgcolor": "#355" }, { "id": 61, "type": "HyVideoSTG", "pos": [ 248.5608673095703, 358.4938049316406 ], "size": [ 315, 154 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "stg_args", "type": "STGARGS", "links": [ 96 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "HyVideoSTG" }, "widgets_values": [ "STG-R", 0, 1, 0, 1 ], "color": "#322", "bgcolor": "#533" }, { "id": 7, "type": "HyVideoVAELoader", "pos": [ 154.0348358154297, -211.267822265625 ], "size": [ 379.166748046875, 82 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "name": "compile_args", "type": "COMPILEARGS", "link": null, "shape": 7 } ], "outputs": [ { "name": "vae", "type": "VAE", "links": [ 6, 46 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "HyVideoVAELoader" }, "widgets_values": [ "hunyuan_video_vae_fp32.safetensors", "bf16" ], "color": "#223", "bgcolor": "#335" }, { "id": 43, "type": "VHS_LoadVideo", "pos": [ -297.78472900390625, 562.0166625976562 ], "size": [ 473.0245056152344, 530.8262939453125 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "meta_batch", "type": "VHS_BatchManager", "link": null, "shape": 7 }, { "name": "vae", "type": "VAE", "link": null, "shape": 7 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 53 ], "slot_index": 0 }, { "name": "frame_count", "type": "INT", "links": null }, { "name": "audio", "type": "AUDIO", "links": null }, { "name": "video_info", "type": "VHS_VIDEOINFO", "links": null } ], "properties": { "Node name for S&R": "VHS_LoadVideo" }, "widgets_values": { "video": "shockedguy.mp4", "force_rate": 0, "force_size": "Disabled", "custom_width": 512, "custom_height": 512, "frame_load_cap": 101, "skip_first_frames": 0, "select_every_nth": 3, "choose video to upload": "image", "videopreview": { "hidden": false, "paused": false, "params": { "frame_load_cap": 101, "skip_first_frames": 0, "force_rate": 0, "filename": "shockedguy.mp4", "type": "input", "format": "video/mp4", "select_every_nth": 3 }, "muted": false } }, "color": "#232", "bgcolor": "#353" }, { "id": 65, "type": "JjkConcat", "pos": [ 153.90402221679688, -87.87891387939453 ], "size": [ 315, 178 ], "flags": { "collapsed": true }, "order": 10, "mode": 0, "inputs": [ { "name": "text1", "type": "STRING", "link": 102, "widget": { "name": "text1" }, "shape": 7 }, { "name": "text2", "type": "STRING", "link": 101, "widget": { "name": "text2" }, "shape": 7 }, { "name": "text3", "type": "STRING", "link": null, "widget": { "name": "text3" }, "shape": 7 }, { "name": "text4", "type": "STRING", "link": null, "widget": { "name": "text4" }, "shape": 7 }, { "name": "text5", "type": "STRING", "link": null, "widget": { "name": "text5" }, "shape": 7 } ], "outputs": [ { "name": "text", "type": "STRING", "links": [ 104 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "JjkConcat" }, "widgets_values": [ "none", "", "", "", "", "" ] }, { "id": 30, "type": "HyVideoTextEncode", "pos": [ 308.8653869628906, -88.80658721923828 ], "size": [ 379.6209716796875, 142 ], "flags": { "collapsed": true }, "order": 12, "mode": 0, "inputs": [ { "name": "text_encoders", "type": "HYVIDTEXTENCODER", "link": 35 }, { "name": "prompt", "type": "STRING", "link": 104, "widget": { "name": "prompt" } }, { "name": "clip_l", "type": "CLIP", "link": null, "shape": 7 }, { "name": "custom_prompt_template", "type": "PROMPT_TEMPLATE", "link": null, "shape": 7 } ], "outputs": [ { "name": "hyvid_embeds", "type": "HYVIDEMBEDS", "links": [ 36 ] } ], "properties": { "Node name for S&R": "HyVideoTextEncode" }, "widgets_values": [ "high quality nature video of a excited brown bear running down a stream, masterpiece, best quality", "bad quality video", "video" ] }, { "id": 1, "type": "HyVideoModelLoader", "pos": [ 140.16864013671875, -36.42427444458008 ], "size": [ 509.7506103515625, 178 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "compile_args", "type": "COMPILEARGS", "link": null, "shape": 7 }, { "name": "block_swap_args", "type": "BLOCKSWAPARGS", "link": null, "shape": 7 } ], "outputs": [ { "name": "model", "type": "HYVIDEOMODEL", "links": [ 2 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "HyVideoModelLoader" }, "widgets_values": [ "hunyuan_video_720_fp8_e4m3fn.safetensors", "bf16", "fp8_e4m3fn", "offload_device", "sdpa" ], "color": "#432", "bgcolor": "#653" }, { "id": 62, "type": "OllamaAPI", "pos": [ -278.4967956542969, 48.70135498046875 ], "size": [ 387.55987548828125, 192.34446716308594 ], "flags": {}, "order": 5, "mode": 4, "inputs": [ { "name": "image", "type": "IMAGE", "link": null, "shape": 7 } ], "outputs": [ { "name": "text", "type": "STRING", "links": [ 101, 105 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "OllamaAPI" }, "widgets_values": [ "Create a video generation prompt for a high quality short stock video. Please respond with the video prompt only, without any additional text.", "llama3.2-vision:latest", 0 ], "color": "#323", "bgcolor": "#535" }, { "id": 66, "type": "Note", "pos": [ -589.7503662109375, 120.57621002197266 ], "size": [ 249.66151428222656, 76.24618530273438 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "You can enable/disable the Ollama API by right clicking on the node and clicking \"bypass\" and use the positive prompt node for your prompts." ], "color": "#432", "bgcolor": "#653" }, { "id": 64, "type": "JjkText", "pos": [ -294.0301818847656, 300.1855163574219 ], "size": [ 433.0982971191406, 207.19528198242188 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "text", "type": "STRING", "links": [ 102 ], "slot_index": 0 } ], "title": "Positive Prompt", "properties": { "Node name for S&R": "JjkText" }, "widgets_values": [ "" ], "color": "#232", "bgcolor": "#353" }, { "id": 63, "type": "JjkShowText", "pos": [ 161.39706420898438, 196.16612243652344 ], "size": [ 481.1982116699219, 91.9544448852539 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "text", "type": "STRING", "link": 105, "widget": { "name": "text" } } ], "outputs": [ { "name": "text", "type": "STRING", "links": null, "shape": 6 } ], "title": "Model Response", "properties": { "Node name for S&R": "JjkShowText" }, "widgets_values": [ "A woman looking shocked while staring at the camera" ], "color": "#232", "bgcolor": "#353" } ], "links": [ [ 2, 1, 0, 3, 0, "HYVIDEOMODEL" ], [ 4, 3, 0, 5, 1, "LATENT" ], [ 6, 7, 0, 5, 0, "VAE" ], [ 35, 16, 0, 30, 0, "HYVIDTEXTENCODER" ], [ 36, 30, 0, 3, 1, "HYVIDEMBEDS" ], [ 46, 7, 0, 38, 0, "VAE" ], [ 49, 39, 0, 38, 1, "IMAGE" ], [ 53, 43, 0, 42, 0, "IMAGE" ], [ 55, 39, 1, 3, 3, "INT" ], [ 56, 39, 2, 3, 4, "INT" ], [ 57, 39, 3, 3, 5, "INT" ], [ 58, 39, 0, 44, 0, "IMAGE" ], [ 59, 5, 0, 44, 1, "IMAGE" ], [ 81, 42, 0, 39, 0, "IMAGE" ], [ 83, 38, 0, 3, 2, "LATENT" ], [ 86, 44, 0, 53, 0, "IMAGE" ], [ 96, 61, 0, 3, 6, "STGARGS" ], [ 101, 62, 0, 65, 1, "STRING" ], [ 102, 64, 0, 65, 0, "STRING" ], [ 104, 65, 0, 30, 1, "STRING" ], [ 105, 62, 0, 63, 0, "STRING" ] ], "groups": [ { "id": 1, "title": "Huanyuan Video To Video", "bounding": [ -325.97869873046875, -302.8598327636719, 2095.005859375, 1426.834228515625 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.5131581182307069, "offset": { "0": 529.0492553710938, "1": 513.1437377929688 } } }, "version": 0.4 }