{
  "1": {
    "class_type": "UNETLoader",
    "inputs": {
      "unet_name": "Minimax-h3_Singularity_ref2va_v2_int8.safetensors",
      "weight_dtype": "default"
    }
  },
  "2": {
    "class_type": "LoraLoaderModelOnly",
    "inputs": {
      "model": [
        "1",
        0
      ],
      "lora_name": "pika_h3_flex_ref2va_comfy_bf16.safetensors",
      "strength_model": 1.0
    }
  },
  "2c": {
    "class_type": "LoraLoaderModelOnly",
    "inputs": {
      "model": [
        "2b",
        0
      ],
      "lora_name": "minimaxH3/H3_Fight_Flow_V1.safetensors",
      "strength_model": 0.9
    }
  },
  "2d": {
    "class_type": "LoraLoaderModelOnly",
    "inputs": {
      "model": [
        "2c",
        0
      ],
      "lora_name": "minimaxH3/Motion_Repair.safetensors",
      "strength_model": 0.7
    }
  },
  "3": {
    "class_type": "ModelAttentionBackend",
    "inputs": {
      "model": [
        "2d",
        0
      ],
      "attention": "comfy kitchen attention"
    }
  },
  "2b": {
    "class_type": "LoraLoaderModelOnly",
    "inputs": {
      "model": [
        "2",
        0
      ],
      "lora_name": "minimaxH3/H3_Combat_V2.safetensors",
      "strength_model": 0.9
    }
  },
  "4": {
    "class_type": "CLIPLoader",
    "inputs": {
      "clip_name": "qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
      "type": "minimax",
      "device": "default"
    }
  },
  "5": {
    "class_type": "VAELoader",
    "inputs": {
      "vae_name": "minimax_h3_video_vae_fp16.safetensors"
    }
  },
  "6": {
    "class_type": "VAELoader",
    "inputs": {
      "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
    }
  },
  "30": {
    "class_type": "RandomNoise",
    "inputs": {
      "noise_seed": 20261118
    }
  },
  "34": {
    "class_type": "SamplerCustomAdvanced",
    "inputs": {
      "noise": [
        "30",
        0
      ],
      "guider": [
        "33",
        0
      ],
      "sampler": [
        "31",
        0
      ],
      "sigmas": [
        "32",
        0
      ],
      "latent_image": [
        "20",
        1
      ]
    }
  },
  "40": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": [
        "34",
        0
      ],
      "vae": [
        "5",
        0
      ]
    }
  },
  "41": {
    "class_type": "VAEDecodeAudio",
    "inputs": {
      "samples": [
        "34",
        0
      ],
      "vae": [
        "6",
        0
      ]
    }
  },
  "31": {
    "class_type": "KSamplerSelect",
    "inputs": {
      "sampler_name": "lcm"
    }
  },
  "32": {
    "class_type": "SigmasFromList",
    "inputs": {
      "sigmas": "1.0, 0.972973, 0.923077, 0.8, 0.571429, 0.333333, 0.0"
    }
  },
  "44": {
    "class_type": "ImageFromBatch",
    "inputs": {
      "image": [
        "40",
        0
      ],
      "batch_index": 0,
      "length": 288
    }
  },
  "45": {
    "class_type": "TrimAudioDuration",
    "inputs": {
      "audio": [
        "41",
        0
      ],
      "start_index": 0.0,
      "duration": 12.0
    }
  },
  "42": {
    "class_type": "CreateVideo",
    "inputs": {
      "images": [
        "44",
        0
      ],
      "audio": [
        "45",
        0
      ],
      "fps": 24
    }
  },
  "43": {
    "class_type": "SaveVideo",
    "inputs": {
      "video": [
        "42",
        0
      ],
      "filename_prefix": "jianxin/2d_gun_v2",
      "format": "auto",
      "codec": "auto"
    }
  },
  "50": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "jianxin/2d_jianxin_red.jpeg"
    }
  },
  "51": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "jianxin/2d_jianxin_head.jpg"
    }
  },
  "52": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "jianxin/2d_jianxin_red_side.jpeg"
    }
  },
  "53": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "jianxin/2d_zhizhixiong_self.png"
    }
  },
  "54": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "jianxin/2d_zhizhixiong_head.jpg"
    }
  },
  "20": {
    "class_type": "MiniMaxH3ReferenceToVideo",
    "inputs": {
      "clip": [
        "4",
        0
      ],
      "prompt": "Reference images:\n<Picture 1> is Jianxin, the red-clad swordsman: front full-body picture. It controls his costume, silhouette and sword; it does not control the pose.\n<Picture 2> is Jianxin's head, close up, from the same picture. It controls his face only: the hand-drawn anime face, the narrow violet eyes, the X-shaped scar on his left cheek. This picture overrides any other look for his face.\n<Picture 3> is Jianxin again: three-quarter side view of the same man. It controls his side profile and body proportions only.\n<Picture 4> is Zhizhixiong, the bandaged warrior in the indigo kimono: full-body picture on white. It controls his head wrapping, his costume, his white cloth ribbons and his sword; it does not control the pose.\n<Picture 5> is Zhizhixiong's head, close up, cut from the same picture. It controls his face only, not his costume.\n\nThe two faces, hairstyles and costumes come from the reference pictures only. Text desribes the action, never the look of the characters.\n\nHard constraints for the whole shot:\n- Only these two fighters appear in frame, alone in the empty courtyard.\n- Jianxin wears white hakama that covers both legs to the ankles, with red tabi socks and wooden sandals.\n- Zhizhixiong's head is wrapped in separate strips of white cloth, with only his eyes and mouth exposed.\n- Any sword trail is narrow and follows the blade edge.\n- The camera stays low and off to one side of the two men, who always face each other.\nMelee weapon interaction.\n\nsubject_definitions:\n\n<Subject 1> is Jianxin, the red-clad swordsman of <Picture 1>, <Picture 2> and <Picture 3>. <Picture 2> controls his face: the hand-drawn anime face with narrow violet eyes and the X-shaped scar on his left cheek. His face, hair, costume and sword come from those three pictures. Only his pose, his movements and the pistol come from the text below.\n\n<Subject 2> is Zhizhixiong, the bandaged warrior of <Picture 4> and <Picture 5>. His face, head wrapping, kimono, cloth ribbons and sword come from those two pictures. Only his pose and his movements come from the text below.\n\nsummary:\n\n[Reference-based Video Generation]\n\nA twelve-second traditional 2D hand-drawn anime sword duel between the two men of the reference pictures, in five shots, at full real-time speed. It opens with a fistful of sand in the face, runs on six full seconds of blades, and ends when one of them stops fighting fair.\n\nCel animation: flat colour fills, hard two-tone cel shadows, clean black ink outlines, anime smear frames on the fastest swings, painted dusk battlefield. NOT 3D, NOT a CG render, NOT photoreal.\n\nThey fight at one blade length the whole time, both feet on the same flagstones. A blade meets a blade roughly every second, with sparks and a visible jolt through both men's arms and shoulders at every contact.\n\nretention_analysis:\n\nBoth identities, faces, hairstyles, costumes and weapons stay exactly as they are in the reference pictures for the first eight seconds. No character swapping, no costume change, no duplicated or vanishing swords.\n\ndetailed_description:\n\nSETTING: a stone courtyard in front of a burning temple at dusk. Cracked flagstones, loose grit and gravel scattered over the ground, one toppled stone lantern, orange firelight from behind, floating embers, smoke drifting low, hard rim light on both men.\n\n[Shot 1] At 00:00.000, low camera almost on the flagstones, pushing in fast. <Subject 1> is already inside striking range. He stamps his front foot down and scrapes it sideways across the flagstones, and a spray of sand and gravel bursts up straight into <Subject 2>'s face. <Subject 2> jerks his head away, his eyes screwed shut, his free hand clawing at his face, half blind. Before the grit has even fallen, <Subject 1> is on him: a rising diagonal cut at the ribs, then a backhand cut at the head. <Subject 2> blocks the first by feel alone and takes the second on the shoulder.\n\n[Shot 2] At 00:03.000, the camera cuts to a close-range two-shot. <Subject 2> has cleared his eyes and he is furious. He gives ground for nothing and answers with four blows of his own: a downward chop, a thrust, a flaming horizontal sweep, another downward chop. <Subject 1> blocks the first two, ducks under the sweep, and the last one drives him back. They trade cuts at chest height, sparks bursting between their faces, neither man giving a step, both blades ringing.\n\n[Shot 3] At 00:06.000, the camera cuts to a fast low side angle. <Subject 1> presses a hard three-cut combination, high, middle, low, the fastest of the fight, and <Subject 2> simply will not go down: he takes all three on his guard and shoves the last one aside with a grunt. <Subject 1>'s second strike glances off and he staggers half a step, sweat flicking off his jaw, breathing hard. His blade is not getting through. The flaming sword of <Subject 2> comes around again, unhurried, and <Subject 1> barely gets his own blade up in time.\n\n[Shot 4] At 00:08.000, the camera cuts to a tight shot on <Subject 1>, low angle. He is still holding the block with one hand, teeth clenched, and his eyes flick down. His free hand slips inside the front of his kimono, past the sash, and comes out holding a large polished silver semi-automatic pistol, a heavy Desert Eagle in his fist. He does not look at it. He thumbs the safety down. In the background, out of focus, the flaming blade of <Subject 2> rises for another cut.\n\n[Shot 5] At 00:10.000, the camera cuts to a low wide shot. <Subject 1> raises the pistol one-handed, still holding his katana in the other, and fires. The muzzle flash lights the whole courtyard for a single frame; the crack is flat and enormous. <Subject 2> is punched off his feet and thrown backwards, his flaming blade spinning away, his white ribbons whipping up around him, embers and stone dust blasting outward. <Subject 1> stands still with the pistol up, the barrel trailing a thin curl of smoke, his face in profile, eyes on the man going down as the frame ends.\n\noverall_soundscape:\n\nSteel clearing a scabbard, grit and gravel spraying across stone, hard metal collisions with long ringing after each, cloth and ribbons snapping, sandals grinding on stone, roaring flame, hard short breaths, then one flat enormous gunshot and its long echo across the courtyard.\n\nnon_diegetic_music:\n\nN/A\n",
      "width": 1344,
      "height": 768,
      "length": 294,
      "ref_image_size": "match",
      "vae": [
        "5",
        0
      ],
      "audio_vae": [
        "6",
        0
      ],
      "ref_images.ref_image_0": [
        "50",
        0
      ],
      "ref_images.ref_image_1": [
        "51",
        0
      ],
      "ref_images.ref_image_2": [
        "52",
        0
      ],
      "ref_images.ref_image_3": [
        "53",
        0
      ],
      "ref_images.ref_image_4": [
        "54",
        0
      ]
    }
  },
  "33": {
    "class_type": "BasicGuider",
    "inputs": {
      "model": [
        "3",
        0
      ],
      "conditioning": [
        "20",
        0
      ]
    }
  }
}