The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Genjutsu: Fuobe Reshoot, the same shot with who or what changed
Adarsh4867b3e0f04b
diff --git a/scripts/comfy/hand-built/video-reshoot-edit-h3.json b/scripts/comfy/hand-built/video-reshoot-edit-h3.jsonnew file mode 100644index 00000000..7125a782--- /dev/null+++ b/scripts/comfy/hand-built/video-reshoot-edit-h3.json@@ -0,0 +1,310 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "viggle_remake_edit_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Reshoot model (edit)"+ }+ },+ "2": {+ "class_type": "RemakeKeyframeUntil",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "keyframe_until": 0.9+ },+ "_meta": {+ "title": "Keyframe until"+ }+ },+ "3": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "H3 text encoder"+ }+ },+ "4": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 Video VAE"+ }+ },+ "5": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 Audio VAE"+ }+ },+ "6": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": 24,+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": 124,+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "None"+ },+ "_meta": {+ "title": "Source part"+ }+ },+ "7": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "example.png"+ },+ "_meta": {+ "title": "Painted first frame"+ }+ },+ "8": {+ "class_type": "VHS_SelectEveryNthImage",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "select_every_nth": 12,+ "skip_first_images": 0+ },+ "_meta": {+ "title": "Two frames per second"+ }+ },+ "9": {+ "class_type": "ImageScaleToMaxDimension",+ "inputs": {+ "image": [+ "8",+ 0+ ],+ "largest_size": 512,+ "upscale_method": "area"+ },+ "_meta": {+ "title": "Shrink for the describer"+ }+ },+ "10": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "Describer: Qwen3-VL 8B"+ }+ },+ "11": {+ "class_type": "TextGenerate",+ "inputs": {+ "clip": [+ "10",+ 0+ ],+ "image": [+ "9",+ 0+ ],+ "prompt": "These are frames from one video clip, in time order, two per second. Describe how things move.",+ "max_length": 500,+ "sampling_mode": "off",+ "thinking": false,+ "use_default_template": true,+ "mtp": "off"+ },+ "_meta": {+ "title": "Describe the motion"+ }+ },+ "12": {+ "class_type": "StringReplace",+ "inputs": {+ "string": "{scene}",+ "find": "{scene}",+ "replace": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Reshoot prompt"+ }+ },+ "13": {+ "class_type": "RemakeConditioning",+ "inputs": {+ "clip": [+ "3",+ 0+ ],+ "vae": [+ "4",+ 0+ ],+ "audio_vae": [+ "5",+ 0+ ],+ "source": [+ "6",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "prompt": [+ "12",+ 0+ ],+ "ref_1": [+ "7",+ 0+ ],+ "pins": "0",+ "frames": 124,+ "short_edge": 480+ },+ "_meta": {+ "title": "Remake conditioning"+ }+ },+ "14": {+ "class_type": "RemakeNoise",+ "inputs": {+ "positive": [+ "13",+ 0+ ],+ "seed": 0+ },+ "_meta": {+ "title": "Remake noise"+ }+ },+ "15": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "2",+ 0+ ],+ "conditioning": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Guider"+ }+ },+ "16": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "euler"+ },+ "_meta": {+ "title": "Sampler"+ }+ },+ "17": {+ "class_type": "ManualSigmas",+ "inputs": {+ "sigmas": "1.0, 0.983607, 0.96, 0.923077, 0.857143, 0.705882, 0.0"+ },+ "_meta": {+ "title": "Steps"+ }+ },+ "18": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "14",+ 0+ ],+ "guider": [+ "15",+ 0+ ],+ "sampler": [+ "16",+ 0+ ],+ "sigmas": [+ "17",+ 0+ ],+ "latent_image": [+ "13",+ 1+ ]+ },+ "_meta": {+ "title": "Render"+ }+ },+ "19": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "18",+ 0+ ],+ "vae": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "20": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "19",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "frame_rate": 24,+ "loop_count": 0,+ "filename_prefix": "reshoot/edit",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 16,+ "save_metadata": false,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true+ },+ "_meta": {+ "title": "Result with the clip's soundtrack"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-reshoot-swap-h3.json b/scripts/comfy/hand-built/video-reshoot-swap-h3.jsonnew file mode 100644index 00000000..c2b3482b--- /dev/null+++ b/scripts/comfy/hand-built/video-reshoot-swap-h3.json@@ -0,0 +1,310 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "viggle_remake_swap_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Reshoot model (swap)"+ }+ },+ "2": {+ "class_type": "RemakeKeyframeUntil",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "keyframe_until": 0.9+ },+ "_meta": {+ "title": "Keyframe until"+ }+ },+ "3": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "H3 text encoder"+ }+ },+ "4": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 Video VAE"+ }+ },+ "5": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 Audio VAE"+ }+ },+ "6": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": 24,+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": 124,+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "None"+ },+ "_meta": {+ "title": "Source part"+ }+ },+ "7": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "example.png"+ },+ "_meta": {+ "title": "Painted first frame"+ }+ },+ "8": {+ "class_type": "VHS_SelectEveryNthImage",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "select_every_nth": 12,+ "skip_first_images": 0+ },+ "_meta": {+ "title": "Two frames per second"+ }+ },+ "9": {+ "class_type": "ImageScaleToMaxDimension",+ "inputs": {+ "image": [+ "8",+ 0+ ],+ "largest_size": 512,+ "upscale_method": "area"+ },+ "_meta": {+ "title": "Shrink for the describer"+ }+ },+ "10": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "Describer: Qwen3-VL 8B"+ }+ },+ "11": {+ "class_type": "TextGenerate",+ "inputs": {+ "clip": [+ "10",+ 0+ ],+ "image": [+ "9",+ 0+ ],+ "prompt": "These are frames from one video clip, in time order, two per second. Describe how things move.",+ "max_length": 500,+ "sampling_mode": "off",+ "thinking": false,+ "use_default_template": true,+ "mtp": "off"+ },+ "_meta": {+ "title": "Describe the motion"+ }+ },+ "12": {+ "class_type": "StringReplace",+ "inputs": {+ "string": "{scene}",+ "find": "{scene}",+ "replace": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Reshoot prompt"+ }+ },+ "13": {+ "class_type": "RemakeConditioning",+ "inputs": {+ "clip": [+ "3",+ 0+ ],+ "vae": [+ "4",+ 0+ ],+ "audio_vae": [+ "5",+ 0+ ],+ "source": [+ "6",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "prompt": [+ "12",+ 0+ ],+ "ref_1": [+ "7",+ 0+ ],+ "pins": "0",+ "frames": 124,+ "short_edge": 480+ },+ "_meta": {+ "title": "Remake conditioning"+ }+ },+ "14": {+ "class_type": "RemakeNoise",+ "inputs": {+ "positive": [+ "13",+ 0+ ],+ "seed": 0+ },+ "_meta": {+ "title": "Remake noise"+ }+ },+ "15": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "2",+ 0+ ],+ "conditioning": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Guider"+ }+ },+ "16": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "euler"+ },+ "_meta": {+ "title": "Sampler"+ }+ },+ "17": {+ "class_type": "ManualSigmas",+ "inputs": {+ "sigmas": "1.0, 0.990476, 0.965243, 0.923077, 0.8, 0.631579, 0.0"+ },+ "_meta": {+ "title": "Steps"+ }+ },+ "18": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "14",+ 0+ ],+ "guider": [+ "15",+ 0+ ],+ "sampler": [+ "16",+ 0+ ],+ "sigmas": [+ "17",+ 0+ ],+ "latent_image": [+ "13",+ 1+ ]+ },+ "_meta": {+ "title": "Render"+ }+ },+ "19": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "18",+ 0+ ],+ "vae": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "20": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "19",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "frame_rate": 24,+ "loop_count": 0,+ "filename_prefix": "reshoot/swap",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 16,+ "save_metadata": false,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true+ },+ "_meta": {+ "title": "Result with the clip's soundtrack"+ }+ }+}diff --git a/scripts/comfy/install-comfyui.sh b/scripts/comfy/install-comfyui.shindex 7fcda18b..d61b190d 100755--- a/scripts/comfy/install-comfyui.sh+++ b/scripts/comfy/install-comfyui.sh@@ -433,6 +433,38 @@ SHAfi# --- end ComfyUI-RE-USE+# --- ComfyUI-Viggle-Remake (Genjutsu's Fuobe Reshoot): two Python files in Viggle's model repository (Apache-2.0), at a+# pinned revision, each checked with sha256sum -c. No pip: they use only torch and ComfyUI. Opt-in (RESHOOT=1), since each+# of its two graphs loads its own 21 GB int8 transformer; RESHOOT_WEIGHTS=1 also fetches those into models/diffusion_models.+RESHOOT_REF="${RESHOOT_REF:-21665fa7a1e038e0a5312fb15f37b18d0f06f117}"+if [ "${RESHOOT:-0}" = "1" ]; then+ RS_DIR="$COMFYUI_DIR/custom_nodes/ComfyUI-Viggle-Remake"+ mkdir -p "$RS_DIR"+ for f in __init__.py nodes.py; do+ curl -fsSL --retry 3 -o "$RS_DIR/$f.part" "https://huggingface.co/Viggle/Viggle-Remake/resolve/$RESHOOT_REF/comfyui/ComfyUI-Viggle-Remake/$f" && mv "$RS_DIR/$f.part" "$RS_DIR/$f" || echo "warn: could not download ComfyUI-Viggle-Remake/$f"+ done+ (cd "$RS_DIR" && sha256sum -c --quiet <<'SHA'+4c0f96b0f0006df5a559d09d44b8d521a32d7992383223310b5ba2a3f88e3e42 __init__.py+e4dc1b975c0886fd635ea535d1c9007b1fbd6a61c89f95fed48ca7dec78d0e08 nodes.py+SHA+ ) || { echo "warn: ComfyUI-Viggle-Remake failed its SHA-256 check: removed"; rm -rf "$RS_DIR"; }+ if [ "${RESHOOT_WEIGHTS:-0}" = "1" ]; then+ DM_DIR="$COMFYUI_DIR/models/diffusion_models"+ mkdir -p "$DM_DIR"+ for mode in swap edit; do+ f="viggle_remake_${mode}_pruned_int8_convrot.safetensors"+ [ -s "$DM_DIR/$f" ] && continue+ curl -fsSL --retry 3 -o "$DM_DIR/$f.part" "https://huggingface.co/Viggle/Viggle-Remake/resolve/$RESHOOT_REF/int8/$f" && mv "$DM_DIR/$f.part" "$DM_DIR/$f" || echo "warn: could not download $f"+ done+ (cd "$DM_DIR" && sha256sum -c --quiet <<'SHA'+7ba8cf79f8f09944f743f99b69d85300a70a4bc9493156cb1fff3a68a9716a47 viggle_remake_swap_pruned_int8_convrot.safetensors+ff13b0b61d1e0e702e21de6a2bbc284b9e0006a31f3cd047daec303dab6b3155 viggle_remake_edit_pruned_int8_convrot.safetensors+SHA+ ) || echo "warn: a Viggle Remake weight file is missing or failed its SHA-256 check (delete it and re-run)"+ fi+fi+# --- end ComfyUI-Viggle-Remake+# --- SAM ViT-B (image-watermark-remove-qwen21: sticker outlines), 375 MB (Meta's file, from a pinned Hugging Face mirror), into models/sams, checked with# sha256sum -c before it is kept (a .pth can run code when it loads). Only with REAL_MODELS=1 (validation needs no weights).if [ "${REAL_MODELS:-0}" = "1" ]; thendiff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex a6842400..28f3c8ab 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -278,6 +278,8 @@ export const CUSTOM_NODE_REPOS = {'comfyui-image-detail-contrast': 'https://github.com/D3voz/comfyui-image-detail-contrast/tree/485a5e246424ce012b998862b45f06d21e8d63b2',Orion4D_FXMax: 'https://github.com/orion4d/Orion4D_FXMax/tree/7048e8423ad7d1a6a52119d0d4870c2b7fc2885f',SolarRenderer: 'https://github.com/Enderfga/SolarRenderer/tree/0ca4f5e45b062cc9e9aee506de46aabdc22e4c3d',+ // Fuobe Reshoot: two Python files in Viggle's model repository, downloaded at a pinned revision (install-comfyui.sh RESHOOT=1).+ 'ComfyUI-Viggle-Remake': 'https://huggingface.co/Viggle/Viggle-Remake/tree/21665fa7a1e038e0a5312fb15f37b18d0f06f117/comfyui/ComfyUI-Viggle-Remake','ComfyUI-H3-FaceRefine': 'https://github.com/Carasibana/ComfyUI-H3-FaceRefine','ComfyUI-Impact-Pack': 'https://github.com/ltdrdata/ComfyUI-Impact-Pack',comfyui_controlnet_aux: 'https://github.com/Fannovel16/comfyui_controlnet_aux/tree/a587a4c1594524c1d2de5cd1a86cd868ff448e1c',@@ -328,6 +330,7 @@ export const PACK_CLASSES = {'comfyui-image-detail-contrast': /^ImageDetailContrast$/,Orion4D_FXMax: /^Orion4D_FXMax_/,SolarRenderer: /^SolarRenderer(Model|LoraLoader|Conditioning|Sigmas)$/,+ 'ComfyUI-Viggle-Remake': /^Remake(Conditioning|KeyframeUntil|Noise)$/,'ComfyUI-H3-FaceRefine': /^H3Face(TrackCrop|MaskSAM|Stitch)$/,'ComfyUI-Impact-Pack': /^SAMLoader$/,comfyui_controlnet_aux: /^Metric3D-NormalMapPreprocessor$/,@@ -441,6 +444,9 @@ export const KNOWN_MODELS = {'minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors' },// Regenerate in Cinema (n7-10): LightX2V's FL2V Turbo 4-step v1.2 (Apache-2.0 in its card at 3ec17a3), the 768p draft of rdh's "Prompt to 2K".'minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors' },+ // Fuobe Reshoot: Viggle Remake's swap and edit weights, each merged into H3's transformer at fp32 and quantized to int8.+ 'viggle_remake_swap_pruned_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_swap_pruned_int8_convrot.safetensors' },+ 'viggle_remake_edit_pruned_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_edit_pruned_int8_convrot.safetensors' },'h3_character_swap_v1.5.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/d06323b7c8e70e97cdab48b78a1e05f786c8cba9/h3_character_swap_v1.5.safetensors' },'h3_character_swap_pro4500_1000.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/a665bb7e3bb9804e487d2925f67744f554c8ad49/h3_character_swap_pro4500_1000.safetensors' },'H3-Person-Remover-V1.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors' },@@ -6401,6 +6407,33 @@ export const SPEC = [license: `${OJ_H3_LICENCE} · Metric3D BSD-2-Clause`,notes: 'Genjutsu Motion transfer\'s "MiniMax H3" model (oss-h3-motion): video-from-picture-h3 with the character photo itself as Picture 1 (no prepared first frame) and words that put the character in the photo\'s setting. video = the part fitted at 24 fps, image = the character photo. params.extra.openjutsu: seconds, quality 480p | 720p, motion 0 | 512 | 768, seed (the same settings as From picture\'s video).',},+ // Fuobe Reshoot (Genjutsu): Viggle Remake (Viggle AI) on ComfyUI's own MiniMax H3, its swap or edit weights merged at+ // fp32 and quantized to int8 (one file replaces the base model and the LoRA), the pack's three nodes (keyframes pinned+ // at real frames, the clip's soundtrack held clean, the reference noise order), 6 steps. Qwen3-VL 8B describes the part's+ // motion and its paragraph goes where the six-section prompt says {scene}. Genjutsu fits the part first (24 fps, the+ // canvas's short edge on 32 px steps) and paints its first frame; the provider writes the settings by node title+ // (src/lib/reshoot-graph.ts).+ ...['swap', 'edit'].map((mode) => ({+ id: `video-reshoot-${mode}-h3`,+ title: mode === 'swap'+ ? 'Fuobe Reshoot, who\'s in it: a new person plays the part, from a painted first frame (Viggle Remake swap on MiniMax H3, int8), the clip\'s motion, camera, timing and sound kept'+ : 'Fuobe Reshoot, what\'s in it: an outfit, an object, the place, the weather or the light changed from a painted first frame (Viggle Remake edit on MiniMax H3, int8), the rest of the shot and its sound kept',+ capability: mode === 'swap' ? 'video-swap' : 'video-scene-edit',+ handBuilt: `hand-built/video-reshoot-${mode}-h3.json`,+ packs: ['ComfyUI-Viggle-Remake', 'ComfyUI-VideoHelperSuite'],+ bindings: { video: [b('6', 'video')], image: [b('7', 'image')], prompt: [b('12', 'string')], seed: [b('14', 'seed')] },+ outputs: [{ node: '20', kind: 'video' }],+ defaults: {},+ limits: { maxDurationSec: 12.25 },+ vramGb: 30,+ license:+ 'Viggle Remake weights: MiniMax H3 Community License (a Model Derivative of MiniMax H3, © Viggle AI); show "MiniMax H3" on the product\'s interface; commercial use above US$20M yearly revenue needs MiniMax\'s written authorization · ' ++ 'ComfyUI-Viggle-Remake nodes Apache-2.0 · MiniMax H3 text encoder and VAEs under the MiniMax H3 Community License · Qwen3-VL 8B describer Apache-2.0',+ notes:+ 'video = the part fitted at 24 fps on the canvas (short edge 480 or 736, both sides on 32 px steps), image = the painted first frame (pinned at frame 0), prompt = Remake\'s six-section prompt with {scene} where the motion paragraph goes. ' ++ 'params.extra.openjutsu: frames (17n + 5, 90-294 at 480p, 90-175 at 720p), quality 480p | 720p, describe (the describer\'s instruction), seed. ' ++ 'Weights touched one stage after another: describer 9.4 GB, NVFP4 text encoder 15.7 GB, Remake int8 21 GB, VAEs 5.8 GB. The authors measured 832x480 x 226 frames in about 14 s a step on a B200 (6 steps).',+ })),{id: 'video-fix-faces-h3',title: 'Fix faces: H3-FaceRefine tracks the character\'s face, MiniMax H3 redraws it in overlapping sections and it is pasted back (faces over 20 % of the frame are left alone)',diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex f96ac068..bc490d11 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -1373,6 +1373,18 @@"error": null,"at": "2026-10-16T23:33:15.433Z"},+ "video-reshoot-edit-h3": {+ "sha256": "6bd2bac1d5a18e93afe8802288082ba1e38f5464709d53f32dc9e1020546a3a8",+ "validated": false,+ "error": "HTTP 400: prompt_outputs_failed_validation: Prompt outputs failed validation | node 1 (UNETLoader): Value not in list - unet_name: 'viggle_remake_edit_pruned_int8_convrot.safetensors' not in (list of length 94)",+ "at": "2026-11-07T14:33:41.201Z"+ },+ "video-reshoot-swap-h3": {+ "sha256": "c09f97985be985c8dfee656d5f39c9e5417b5dd81cd0bb51730415db2ba599bb",+ "validated": false,+ "error": "HTTP 400: prompt_outputs_failed_validation: Prompt outputs failed validation | node 1 (UNETLoader): Value not in list - unet_name: 'viggle_remake_swap_pruned_int8_convrot.safetensors' not in (list of length 94)",+ "at": "2026-11-07T14:33:40.888Z"+ },"video-restore-ltx25-tiled": {"sha256": "5da276f2353f7394c408dee24bf62110f74061efde401a9ba5741f85aa6d7c85","validated": false,diff --git a/src/components/genjutsu/genjutsu-studio.tsx b/src/components/genjutsu/genjutsu-studio.tsxindex 46fffc54..85f8691a 100644--- a/src/components/genjutsu/genjutsu-studio.tsx+++ b/src/components/genjutsu/genjutsu-studio.tsx@@ -88,12 +88,14 @@ import { LookPicker, type LookSource } from "./look-picker";import { SetupCode } from "./setup-code";import { useClipCuts } from "./use-cuts";import { ModeExample, ModeExampleRow } from "./mode-example";+import { ReshootFields } from "./reshoot-fields";+import { RESHOOT, type ReshootOptions } from "@/lib/catalog/reshoot";import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "@/components/ui/alert-dialog";import { examplesOf, MARKED_NOTE, OWN_CHARACTER_FIELDS, partLimits, sameRecipe, toRecipe, type GenjutsuExampleCard, type ModeExamples } from "@/lib/examples/genjutsu";/** The upload box's line: the mode's own window (Character swap: 5–15 s of one shot), and the clip size the viewer may upload. */const limits = (mode: GenjutsuMode, maxBytes: number) =>- `MP4, MOV or WebM · ${mode === "character" ? `${CHARACTER_SWAP.minSeconds}–${CHARACTER_SWAP.maxSeconds}` : mode === "picture" ? "2–15" : mode === "finish" ? "up to 60" : `${GENJUTSU.minSeconds}–${GENJUTSU.maxSeconds}`} s are used · ${limitMb(maxBytes)} MB`;+ `MP4, MOV or WebM · ${mode === "character" ? `${CHARACTER_SWAP.minSeconds}–${CHARACTER_SWAP.maxSeconds}` : mode === "picture" ? "2–15" : mode === "finish" ? "up to 60" : mode === "reshoot" ? `${RESHOOT.minSeconds}–${RESHOOT.maxSeconds}` : `${GENJUTSU.minSeconds}–${GENJUTSU.maxSeconds}`} s are used · ${limitMb(maxBytes)} MB`;interface Paint {mask: string;@@ -195,6 +197,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Exconst [scene, setScene] = useState("");const [describing, setDescribing] = useState(false);const [finish, setFinish] = useState<FinishOptions>({ tool: "colours" });+ const [reshoot, setReshoot] = useState<ReshootOptions>({ choice: "swap" });const [tapFor, setTapFor] = useState<number | null>(null);// A mode's example in the form: which one, the part's length it asks for until a clip is in, and its words that came// from its own clip (a note under those fields).@@ -225,9 +228,9 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Exconst lookSource: LookSource = lookChoice;const isCharacter = mode === "character";- const modeMax = mode === "picture" ? 15 : mode === "finish" ? 60 : null;+ const modeMax = mode === "picture" ? 15 : mode === "finish" ? 60 : mode === "reshoot" ? RESHOOT.maxSeconds : null;const partMax = isCharacter ? (longPart ? CHARACTER_SWAP.maxContinued : CHARACTER_SWAP.maxSeconds) : (modeMax ?? GENJUTSU.maxSeconds);- const partMin = isCharacter ? CHARACTER_SWAP.minSeconds : mode === "picture" ? 2 : mode === "finish" ? 1 : GENJUTSU.minSeconds;+ const partMin = isCharacter ? CHARACTER_SWAP.minSeconds : mode === "picture" ? 2 : mode === "finish" ? 1 : mode === "reshoot" ? RESHOOT.minSeconds : GENJUTSU.minSeconds;const setMode = (m: GenjutsuMode) => {setModeState(m);@@ -238,7 +241,9 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex}if (pendingLength && pendingLength.mode !== m) setPendingLength(null);// Character swap takes a 5–15 s part: a longer selection is cut back to its first 15 s (From picture: 15 s too).- const most = m === "character" || m === "picture" ? CHARACTER_SWAP.maxSeconds : null;+ const most = m === "character" || m === "picture" ? CHARACTER_SWAP.maxSeconds : m === "reshoot" ? RESHOOT.maxSeconds : null;+ // Reshoot renders 480p by default (720p takes a shorter part).+ if (m === "reshoot" && m !== mode && quality !== "480p") setQuality(RESHOOT.defaultQuality as GenjutsuQuality);if (most && range && range.endTime - range.startTime > most + 0.05) {setLongPart(false);setRange({ ...range, endTime: Math.round((range.startTime + most) * 100) / 100 });@@ -287,12 +292,12 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: ExsetAction(firstOpenAction);setObjectEdit((o) => ({ ...o, action: firstOpenAction }));}- const fresh = !!(maker?.group || maker?.actions || maker?.review || maker?.tool);+ const fresh = !!(maker?.group || maker?.actions || maker?.review || maker?.tool || maker?.reshoot);const references = mode === "restyle" || (sceneEdit && action === "remove") || (mode === "picture" && picture.ownPerson) || (mode === "finish" && finish.tool === "colours") ? [] : ready(refs);const showRefs = mode !== "restyle" && !(sceneEdit && action === "remove") && !(mode === "picture" && picture.ownPerson) && !(mode === "finish" && finish.tool === "colours");// Two characters or more move the swap to Group swap on your GPU (once it is open to this viewer).const groupOn = isCharacter && engine === "open" && makersFor(engine, "character", target, open).some((m) => m.group);- const maxRefs = isCharacter ? Math.max(1, maker?.refs.max ?? 1, groupOn ? 4 : 1) : mode === "picture" || mode === "finish" || sceneEdit ? 1 : GENJUTSU.maxReferences;+ const maxRefs = isCharacter ? Math.max(1, maker?.refs.max ?? 1, groupOn ? 4 : 1) : mode === "picture" || mode === "finish" || sceneEdit || (mode === "reshoot" && reshoot.painted) ? 1 : mode === "reshoot" ? RESHOOT.maxPictures : GENJUTSU.maxReferences;const needsFrame = ((mode === "swap" || isCharacter) && target === "click") || ((mode === "swap" || mode === "insert") && target === "paint") || group || mode === "picture";// Character swap: the clip's hard cuts (found in the browser), for the "one continuous shot" warning.const cuts = useClipCuts(clip?.preview, isCharacter && !!clip && !clip.error);@@ -498,6 +503,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex}if (s.picture) setPicture({ ...s.picture, stage: "frame" });if (s.finish) setFinish(s.finish);+ if (s.reshoot) setReshoot(s.reshoot);if (s.references?.length) setRefs(s.references.map(asSlot));// gj2 and examples: the seed, the part's length and the sound too (an example with no seed: a new one each time).if (s.seed !== undefined || example) {@@ -590,7 +596,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: ExsetOwnerLinked(true);const p = new URLSearchParams(window.location.search);const m = p.get("mode");- if (isMode(m) && (m === "picture" || m === "finish")) setModeState(m);+ if (isMode(m) && (m === "picture" || m === "finish" || m === "reshoot")) setModeState(m);const tool = p.get("tool");if (tool === "faces" || tool === "colours") setFinish({ tool });const fr = p.get("frame");@@ -615,6 +621,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex...(sceneEdit ? { object: { ...objectEdit, action } } : {}),...(mode === "picture" ? { picture: { ...(picture.light ? { light: picture.light } : {}), ...(picture.ownPerson ? { ownPerson: true } : {}), ...(picture.keepCrop ? { keepCrop: true } : {}), ...(picture.adjust ? { adjust: picture.adjust } : {}) } } : {}),...(mode === "finish" ? { finish } : {}),+ ...(mode === "reshoot" ? { reshoot } : {}),};function clearMarks() {@@ -657,6 +664,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex...(sceneEdit ? { object: { ...objectEdit, action } } : {}),...(mode === "picture" ? { picture: { ...picture, stage: pictureStage, ...(frameUrl ? { frame: frameUrl } : {}) } } : {}),...(mode === "finish" ? { finish } : {}),+ ...(mode === "reshoot" ? { reshoot, quality } : {}),}): null;// What of the clip's sound goes back where it's put back: Everything until the split has passed a real run, then Music & effects only when a character is swapped on your GPU.@@ -697,13 +705,14 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex...(sceneEdit ? { object: { ...objectEdit, action } } : {}),...(mode === "picture" ? { picture: { ...picture, stage: pictureStage, ...(frameUrl ? { frame: frameUrl } : {}), ...(scene.trim() ? { scene: scene.trim() } : {}) } } : {}),...(mode === "finish" ? { finish } : {}),- ...(originalSound !== "everything" && { originalSound }),+ ...(mode === "reshoot" ? { reshoot } : {}),+ ...(originalSound !== "everything" && mode !== "reshoot" && { originalSound }),}: null;const estimate = useGenjutsuEstimate(body);const est = estimate.data && !estimate.isError ? estimate.data : undefined;// What Generate needs of a visitor's own setup: the first feature of this run that hasn't opened on this studio's GPU.- const needFeature = body && maker && !owner ? requestFeatures({ mode: body.mode, maker, character: body.character, object: body.object, picture: body.picture, finish: body.finish }).find((f) => !live?.[f]) : undefined;+ const needFeature = body && maker && !owner ? requestFeatures({ mode: body.mode, maker, character: body.character, object: body.object, picture: body.picture, finish: body.finish, reshoot: body.reshoot }).find((f) => !live?.[f]) : undefined;const setupNeed = needFeature ? ownSetupItem(`genjutsu:${needFeature}`) : null;const blocker = !clip@@ -925,7 +934,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex? longPart? `${CHARACTER_SWAP.minSeconds}–${CHARACTER_SWAP.maxContinued} s; past 15 s it continues window by window`: `${CHARACTER_SWAP.minSeconds}–${CHARACTER_SWAP.maxSeconds} s of one continuous shot, the person in its first frame`- : mode === "motion" && maker?.part+ : (mode === "motion" || mode === "reshoot") && maker?.part? duration && duration > maker.part.max? `Pick up to ${maker.part.max} s — only that part comes out`: `${maker.part.min}–${maker.part.max} s; the whole clip, or just the part you need`@@ -1040,7 +1049,19 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex<Panelid="gj-refs"className="scroll-mt-24"- title={sceneEdit ? (action === "background" ? "The new place (optional)" : "What goes in (optional)") : modeInfo.refs}+ title={+ sceneEdit+ ? action === "background"+ ? "The new place (optional)"+ : "What goes in (optional)"+ : mode === "reshoot"+ ? reshoot.painted+ ? "Your painted first frame"+ : reshoot.choice === "edit"+ ? "How it looks (optional)"+ : modeInfo.refs+ : modeInfo.refs+ }aside={<span className="text-[12px] text-muted-foreground tabular-nums">{refs.length}/{maxRefs}</span>}><div className={cn("flex flex-wrap gap-2", isCharacter && maxRefs > 1 && "grid grid-cols-2 sm:flex")}>@@ -1060,7 +1081,15 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex)}</div><p className="mt-2 text-[12px] text-muted-foreground">- {group ? "Up to four characters, each taking over one person in the clip — same moves, same scene, same sound." : REF_HINT[mode]}+ {group+ ? "Up to four characters, each taking over one person in the clip — same moves, same scene, same sound."+ : mode === "reshoot"+ ? reshoot.painted+ ? "The part's first frame with the change already in it, the same size as the clip."+ : reshoot.choice === "edit"+ ? "A new outfit, an object or a place to match. Leave it empty to go by your words."+ : REF_HINT[mode]+ : REF_HINT[mode]}{maker && maker.refs.max > 0 && maker.refs.max < maxRefs && ` ${maker.label} uses ${maker.refs.max === 1 ? "the first one" : `up to ${maker.refs.max}`}.`}</p></Panel>@@ -1165,6 +1194,8 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex)}{sceneEdit && marked.target && objectEdit.target && <p className="-mt-2 text-[12px] text-muted-foreground">{MARKED_NOTE}</p>}+ {mode === "reshoot" && <ReshootFields value={reshoot} onChange={setReshoot} open={open} mark={mark} seed={seed} onSeed={setSeed} />}+{group && (<WhoBecomesWhorefs={refs.filter((r) => !r.uploading)}@@ -1273,7 +1304,7 @@ export function GenjutsuStudio({ examples, modeExamples, live }: { examples?: Ex</Field>)}- {clip?.info?.hasAudio !== false && mode !== "picture" && <OriginalSoundPicker engine={soundEngine} value={originalSound} onChange={setOriginalSound} />}+ {clip?.info?.hasAudio !== false && mode !== "picture" && mode !== "reshoot" && <OriginalSoundPicker engine={soundEngine} value={originalSound} onChange={setOriginalSound} />}<div className="space-y-3 border-t pt-3"><div className="flex items-center gap-2">@@ -1415,7 +1446,7 @@ function lookPlaceholder(s: LookSource): GenjutsuLook {const CLICK_ON_GPU = "Clicking runs on your GPU (SAM 3.1 marks them) — on the cloud, pick who in words";-const TARGET_QUESTION: Record<GenjutsuMode, string> = { motion: "", restyle: "", character: "Who gets swapped?", swap: "What gets swapped?", insert: "Where does it go?", picture: "", finish: "" };+const TARGET_QUESTION: Record<GenjutsuMode, string> = { motion: "", restyle: "", character: "Who gets swapped?", swap: "What gets swapped?", insert: "Where does it go?", picture: "", finish: "", reshoot: "" };const REF_CTA: Record<GenjutsuMode, string> = {motion: "Add your character",@@ -1425,6 +1456,7 @@ const REF_CTA: Record<GenjutsuMode, string> = {restyle: "Add a character",picture: "Add your character",finish: "Add the character photo",+ reshoot: "Add a picture",};const REF_HINT: Record<GenjutsuMode, string> = {@@ -1435,6 +1467,7 @@ const REF_HINT: Record<GenjutsuMode, string> = {restyle: "Optional: characters who should appear in the look.",picture: "One picture gives both the look and the setting. Full body, in the place you want them.",finish: "The face to match: a clear, front-facing photo of your character.",+ reshoot: "A clear picture of who plays the part, head to toe. More angles help.",};const PROMPT_LABEL: Record<GenjutsuMode, (t?: GenjutsuTarget) => string> = {@@ -1445,6 +1478,7 @@ const PROMPT_LABEL: Record<GenjutsuMode, (t?: GenjutsuTarget) => string> = {restyle: () => "Anything to keep (optional)",picture: () => "Adjust (optional)",finish: () => "",+ reshoot: () => "",};const PROMPT_PLACEHOLDER: Record<GenjutsuMode, string> = {@@ -1455,6 +1489,7 @@ const PROMPT_PLACEHOLDER: Record<GenjutsuMode, string> = {restyle: "e.g. “keep her pink hair the same in every shot”",picture: "e.g. “arms crossed, chin up”",finish: "",+ reshoot: "",};function frameHint(mode: GenjutsuMode, target: GenjutsuTarget | undefined, points: number, painted: boolean): string {diff --git a/src/components/genjutsu/hooks.ts b/src/components/genjutsu/hooks.tsindex 19f2ba32..b8da3149 100644--- a/src/components/genjutsu/hooks.ts+++ b/src/components/genjutsu/hooks.ts@@ -9,6 +9,7 @@ import type { Engine, Generation, PixelPoint } from "@/lib/catalog/types";import { useDebounced } from "@/components/faceless/hooks";import { send } from "@/components/shorts/hooks";import { COMPUTER_KICK_EVENT } from "@/lib/api";+import type { ReshootOptions } from "@/lib/catalog/reshoot";/*** A run started: the tab that runs this person's jobs on the ComfyUI on this computer (an account's "Your GPU") asks for@@ -43,6 +44,8 @@ export interface GenjutsuBody {object?: ObjectEdit;picture?: PictureOptions;finish?: FinishOptions;+ /** Fuobe Reshoot's settings. */+ reshoot?: ReshootOptions;/** What of the clip's sound goes back where it is put back (src/lib/av/original-sound.ts). */originalSound?: OriginalSound;/** Client nonce: a repeat of it gets the first answer (see useSubmitGuard). */diff --git a/src/components/genjutsu/reshoot-fields.tsx b/src/components/genjutsu/reshoot-fields.tsxnew file mode 100644index 00000000..9fdbb8f1--- /dev/null+++ b/src/components/genjutsu/reshoot-fields.tsx@@ -0,0 +1,78 @@+"use client";++import { Input } from "@/components/ui/input";+import { Switch } from "@/components/ui/switch";+import { Textarea } from "@/components/ui/textarea";+import { Field, Segmented } from "@/components/shorts/ui";+import { reshootFeature, type FeatureCheck } from "@/lib/catalog/genjutsu";+import { RESHOOT, RESHOOT_CHOICES, type ReshootChoice, type ReshootOptions } from "@/lib/catalog/reshoot";+import type { FeatureMark } from "./openjutsu-panels";++/**+ * Fuobe Reshoot's fields in Genjutsu: who's in it or what's in it, the words for it, and whether the picture is already+ * the painted first frame. Phone first (44 px taps, wraps). Self-contained, so the mode can move to a page of its own.+ */+export function ReshootFields({+ value,+ onChange,+ open,+ mark,+ seed,+ onSeed,+}: {+ value: ReshootOptions;+ onChange: (o: ReshootOptions) => void;+ open: FeatureCheck;+ mark: FeatureMark;+ seed: string;+ onSeed: (s: string) => void;+}) {+ const choices = RESHOOT_CHOICES.filter((c) => open(reshootFeature(c.id)));+ const info = RESHOOT_CHOICES.find((c) => c.id === value.choice) ?? RESHOOT_CHOICES[0];+ const set = (o: Partial<ReshootOptions>) => onChange({ ...value, ...o });+ const swap = value.choice === "swap";+ return (+ <div className="space-y-3">+ {choices.length > 1 && (+ <Field label="What changes" hint={mark(reshootFeature(value.choice))}>+ <Segmented label="What changes" value={value.choice} onChange={(c: ReshootChoice) => set({ choice: c })} options={choices.map((c) => ({ value: c.id, label: c.label }))} />+ </Field>+ )}+ <p className="text-[12px] text-muted-foreground">{info.hint}</p>+ {swap && (+ <Field label="Who they replace (optional)" htmlFor="rs-who">+ <Input+ id="rs-who"+ value={value.who ?? ""}+ onChange={(e) => set({ who: e.target.value.slice(0, RESHOOT.whoChars) })}+ maxLength={RESHOOT.whoChars}+ placeholder="e.g. “the woman in the white coat”"+ className="h-11 text-[13px]"+ />+ </Field>+ )}+ <Field label={swap ? "The new person (optional)" : "What changes"} htmlFor="rs-words">+ <Textarea+ id="rs-words"+ value={value.words ?? ""}+ onChange={(e) => set({ words: e.target.value.slice(0, RESHOOT.wordsChars) })}+ maxLength={RESHOOT.wordsChars}+ rows={3}+ placeholder={+ swap+ ? "e.g. “a tall model with a sleek black bob, in an ivory silk trench coat and gold hoops”"+ : "e.g. “she wears a crimson velvet gown with long gloves”, or “fresh snow covers the street and keeps falling”"+ }+ className="resize-none text-[13px]"+ />+ </Field>+ <label className="flex min-h-11 items-center gap-2 text-[12px] text-muted-foreground">+ <Switch checked={!!value.painted} onCheckedChange={(on) => set({ painted: on || undefined })} aria-label="My picture is the first frame, already changed" />+ My picture is the part's first frame, already changed+ </label>+ <Field label="Seed" htmlFor="rs-seed" hint="Blank: a new one each time">+ <Input id="rs-seed" inputMode="numeric" value={seed} onChange={(e) => onSeed(e.target.value.replace(/[^0-9]/g, "").slice(0, 10))} className="h-11 text-[13px]" />+ </Field>+ </div>+ );+}diff --git a/src/lib/catalog/genjutsu.ts b/src/lib/catalog/genjutsu.tsindex a6fbc6cd..40152388 100644--- a/src/lib/catalog/genjutsu.ts+++ b/src/lib/catalog/genjutsu.ts@@ -68,8 +68,9 @@ import { soulLook } from "./soul";import { filmSize, SHARPEN_COPY, sharpenPrompt, sharpenSteps, sharpenTierFor, type SharpenTier } from "./sharpen";import type { ChainSlot, Engine, GenerationRequest, PixelPoint } from "./types";import { withOriginalSound, type OriginalSound } from "../av/original-sound";+import { describerPrompt, paintPrompt, RESHOOT, RESHOOT_MODEL, RESHOOT_WORKFLOWS, reshootFrames, reshootPrompt, reshootProblem, reshootQuality, type ReshootChoice, type ReshootOptions } from "./reshoot";-export type GenjutsuMode = "motion" | "character" | "swap" | "restyle" | "insert" | "picture" | "finish";+export type GenjutsuMode = "motion" | "character" | "swap" | "restyle" | "insert" | "picture" | "finish" | "reshoot";/** How you say what changes (Object swap and Insert) or who (Character swap): words, clicks on the first frame, or paint on it. */export type GenjutsuTarget = RemoveMode;/** Genjutsu's qualities; 2K and 4K are the Character swap's finishing sizes (sharpen.ts). */@@ -114,18 +115,25 @@ export const GENJUTSU_MODES: { id: GenjutsuMode; label: string; hint: string; rerefs: "Your character",},{ id: "finish", label: "Finish", hint: "Give a finished video sharper faces or a soft film finish.", refs: "Character photo" },+ {+ id: "reshoot",+ label: "Fuobe Reshoot",+ hint: "Same shot, anything you change: say who or what changes — the motion, camera and sound stay as filmed.",+ refs: "Who plays the part",+ },];export const getMode = (id: GenjutsuMode) => GENJUTSU_MODES.find((m) => m.id === id)!;/** The ways of saying what changes, per mode (Motion transfer and Restyle change the whole shot; Character swap says who). */-export const MODE_TARGETS: Record<GenjutsuMode, GenjutsuTarget[]> = { motion: [], restyle: [], character: ["type", "click"], swap: ["type", "click", "paint"], insert: ["type", "paint"], picture: [], finish: [] };+export const MODE_TARGETS: Record<GenjutsuMode, GenjutsuTarget[]> = { motion: [], restyle: [], character: ["type", "click"], swap: ["type", "click", "paint"], insert: ["type", "paint"], picture: [], finish: [], reshoot: [] };export const TARGET_LABELS: Record<GenjutsuMode, Partial<Record<GenjutsuTarget, { label: string; hint: string }>>> = {motion: {},restyle: {},picture: {},finish: {},+ reshoot: {},character: {type: { label: "Pick who", hint: "The largest, leftmost or rightmost person, or a number" },click: { label: "Click them", hint: "Click the person on the part's first frame" },@@ -160,7 +168,9 @@ export type GenjutsuFeature =| "picture-h3-renderer"| "finish-faces"| "finish-colours"- | "motion-h3";+ | "motion-h3"+ | "reshoot-swap"+ | "reshoot-edit";export const GENJUTSU_FEATURES: Record<GenjutsuFeature, { mode: GenjutsuMode; workflows: string[]; maker: string }> = {"group-swap": { mode: "character", workflows: ["video-group-swap-h3"], maker: "oss-h3-group-swap" },@@ -175,8 +185,13 @@ export const GENJUTSU_FEATURES: Record<GenjutsuFeature, { mode: GenjutsuMode; wo"finish-faces": { mode: "finish", workflows: ["video-fix-faces-h3"], maker: "oss-h3-fix-faces" },"finish-colours": { mode: "finish", workflows: ["video-fix-colours"], maker: "oss-fix-colours" },"motion-h3": { mode: "motion", workflows: ["video-motion-transfer-h3"], maker: "oss-h3-motion" },+ "reshoot-swap": { mode: "reshoot", workflows: [RESHOOT_WORKFLOWS.swap], maker: RESHOOT_MODEL },+ "reshoot-edit": { mode: "reshoot", workflows: [RESHOOT_WORKFLOWS.edit], maker: RESHOOT_MODEL },};+/** Fuobe Reshoot's feature for a choice. */+export const reshootFeature = (choice: ReshootChoice | undefined): GenjutsuFeature => (choice === "edit" ? "reshoot-edit" : "reshoot-swap");+export const GENJUTSU_FEATURE_KEYS = Object.keys(GENJUTSU_FEATURES) as GenjutsuFeature[];/** Which features are open to this viewer: everything for the owner (and in tests), else what has passed. */@@ -197,6 +212,7 @@ export const ALL_FEATURES: FeatureCheck = () => true;export function modeOpen(mode: GenjutsuMode, open: FeatureCheck = ALL_FEATURES): boolean {if (mode === "picture") return open("picture");if (mode === "finish") return open("finish-faces") || open("finish-colours");+ if (mode === "reshoot") return open("reshoot-swap") || open("reshoot-edit");return true;}@@ -260,8 +276,9 @@ export const FINISH_COLOURS_DEFAULT: Required<Pick<FinishOptions, "finish" | "stexport const OPENJUTSU_LIMITS = { minSeconds: 2, maxSeconds: 15, facesMaxSeconds: 10, coloursMaxSeconds: 60, maxCharacters: 4, roleChars: 80, lightChars: 300, sceneChars: 2000 } as const;/** The feature a request needs (null: an existing Genjutsu feature, always open). */-export function requestFeatures(o: { mode: GenjutsuMode; maker: Maker; character?: CharacterOptions; object?: ObjectEdit; picture?: PictureOptions; finish?: FinishOptions }): GenjutsuFeature[] {+export function requestFeatures(o: { mode: GenjutsuMode; maker: Maker; character?: CharacterOptions; object?: ObjectEdit; picture?: PictureOptions; finish?: FinishOptions; reshoot?: ReshootOptions }): GenjutsuFeature[] {const m = o.maker;+ if (m.reshoot) return [reshootFeature(o.reshoot?.choice)];if (m.group) return o.character?.onePerPerson ? ["group-swap", "group-swap-one-by-one"] : ["group-swap"];if (m.actions) return [SCENE_ACTIONS.find((a) => a.id === (o.object?.action ?? "change"))!.feature];if (m.review) {@@ -304,6 +321,8 @@ export function directRunFeatures(modelId: string, settings: Record<string, unknreturn ["finish-colours"];case MOTION_H3:return ["motion-h3"];+ case RESHOOT_MODEL:+ return [reshootFeature(s.choice === "edit" ? "edit" : "swap")];default:return null;}@@ -376,6 +395,8 @@ export interface Maker {tool?: "faces" | "colours";/** The part it takes, when it isn't the mode's own (seconds). */part?: { min: number; max: number };+ /** Fuobe Reshoot: who's in it or what's in it, from a painted first frame. */+ reshoot?: boolean;}/** fal's hosted Wan VACE (2.1 14B and 2.2 Fun): 17–241 frames (4n+1, the clip's own count and rate), at most 30 fps. */@@ -814,6 +835,21 @@ export const MAKERS: Maker[] = [features: ["object-change", "object-remove", "object-background"],part: { min: OPENJUTSU_LIMITS.minSeconds, max: OPENJUTSU_LIMITS.maxSeconds },},+ {+ id: RESHOOT_MODEL,+ engine: "open",+ modes: ["reshoot"],+ label: "Fuobe Reshoot",+ note: `Same shot. Anything you change · keeps the clip's motion, camera and sound · ${RESHOOT.minSeconds}–${RESHOOT.maxSeconds} s`,+ source: "open",+ refs: { min: 0, max: RESHOOT.maxPictures },+ keepsSound: true,+ qualities: [...RESHOOT.qualities],+ promptOptional: true,+ reshoot: true,+ features: ["reshoot-swap", "reshoot-edit"],+ part: { min: RESHOOT.minSeconds, max: RESHOOT.maxSeconds },+ },{id: "oss-from-picture",engine: "open",@@ -1246,11 +1282,14 @@ export interface GenjutsuCheck {object?: ObjectEdit;picture?: PictureOptions;finish?: FinishOptions;+ reshoot?: ReshootOptions;+ quality?: string;}/** The first thing that stops a request on one of the Openjutsu makers, in words, or null. */function openjutsuProblem(c: GenjutsuCheck): string | null {const m = c.maker;+ if (m.reshoot) return reshootProblem(c.reshoot, c.references, c.range.end - c.range.start, reshootQuality(c.quality));if (m.group) {if (c.references < 1) return REFS_MISSING.character;if (c.references > OPENJUTSU_LIMITS.maxCharacters) return "Up to four characters";@@ -1302,6 +1341,7 @@ const REFS_MISSING: Record<GenjutsuMode, string> = {restyle: "",picture: "Add a picture of your character",finish: "Add the character photo",+ reshoot: "Add a picture of who plays the part",};/** The first thing that stops this request, in words, or null. */@@ -1309,7 +1349,7 @@ export function genjutsuProblem(c: GenjutsuCheck): string | null {const general = rangeProblem(c.source, c.range, c.mode, c.maker);if (general) return general;const m = c.maker;- if (m.group || m.actions || m.review || m.tool) return openjutsuProblem(c);+ if (m.group || m.actions || m.review || m.tool || m.reshoot) return openjutsuProblem(c);const len = c.range.end - c.range.start;const { width: w, height: h } = c.source;const target = MODE_TARGETS[c.mode].length ? (c.target ?? MODE_TARGETS[c.mode][0]) : undefined;@@ -1399,6 +1439,8 @@ export interface GenjutsuPlanInput {finish?: FinishOptions;/** Scene edit's painted area, as the pack's keyframe (the server reads it from the paint). */paint?: PaintKeyframe[];+ /** Fuobe Reshoot's settings. */+ reshoot?: ReshootOptions;/** What of the clip's sound goes back where it is put back (src/lib/av/original-sound.ts; the cloud: Everything only). */originalSound?: OriginalSound;}@@ -1421,7 +1463,7 @@ const r3 = (n: number) => Math.round(n * 1000) / 1000;const r6 = (n: number) => Math.round(n * 1e6) / 1e6;const pieceLabel = (p: Piece, n: number, what: string) => ({ label: n > 1 ? `Piece ${p.index + 1} of ${n} · ${what}` : what[0].toUpperCase() + what.slice(1), index: p.index, of: n });-const OP: Record<GenjutsuMode, GenerationRequest["op"]> = { motion: "motion-transfer", character: "video-swap", swap: "video-swap", insert: "video-insert", restyle: "v2v", picture: "picture-video", finish: "tone-video" };+const OP: Record<GenjutsuMode, GenerationRequest["op"]> = { motion: "motion-transfer", character: "video-swap", swap: "video-swap", insert: "video-insert", restyle: "v2v", picture: "picture-video", finish: "tone-video", reshoot: "video-swap" };/** Steps on a model that runs on both engines say which one (Originals, the Soul look's first frame). */function pinEngines(steps: PlanStep[], engine: Engine): PlanStep[] {@@ -1449,6 +1491,7 @@ export function planGenjutsu(input: GenjutsuPlanInput): GenjutsuPlan {function planSteps(input: GenjutsuPlanInput): GenjutsuPlan {const om = input.maker;+ if (om.reshoot) return planReshoot(input);if (om.group || om.actions || om.review || om.tool || om.id === MOTION_H3) return planOpenjutsu(input);if (input.mode === "character" && input.maker.h3) return planCharacterSwap(input);if (input.mode === "restyle" && input.maker.id === ORIGINALS.restyle && input.maker.engine === "cloud") return planCloudRestyle(input);@@ -1861,6 +1904,87 @@ export function sceneWords(o: ObjectEdit | undefined, subject?: string): { targe* the clip's sound: video-fit-clip, so ComfyUI never decodes more of the clip than it needs), then one job on the* Openjutsu graph with its settings (params.extra.openjutsu). From picture's first frame reads the clip itself (one frame).*/+/**+ * Fuobe Reshoot on your GPU (src/lib/catalog/reshoot.ts): the part fitted to 24 fps on Remake's canvas (both sides on+ * 32 px steps), its first frame painted with the change (Qwen-Image 2.1 with the pictures; or your own painted frame),+ * then one Remake render pinned to it, the clip's sound kept in the render.+ */+function planReshoot(input: GenjutsuPlanInput): GenjutsuPlan {+ const r: ReshootOptions = input.reshoot ?? { choice: "swap" };+ const base = { feature: GENJUTSU.feature, batchTitle: input.title, title: input.title };+ const helper = { feature: GENJUTSU.stepFeature, batchTitle: input.title };+ const seed = input.seed !== undefined ? { seed: input.seed } : {};+ const quality = reshootQuality(input.quality);+ const start = r3(input.range.start);+ const frames = reshootFrames(input.range.end - input.range.start, quality);+ if (!frames) throw new Error(`Pick at least ${RESHOOT.minSeconds} seconds`);+ const pictures = input.references.slice(0, RESHOOT.maxPictures);+ const steps: PlanStep[] = [];+ const w = input.source.width;+ const h = input.source.height;+ const size = w && h ? reshootCanvas(w, h, RESHOOT.shortEdge[quality]) : null;+ // Two frames past the render, so the part never comes up a frame short after the cut.+ const end = r3(start + (frames + 2) / RESHOOT.fps);+ steps.push({+ key: "part",+ request: { ...helper, modelId: SHARPEN_TOOLS.fit, op: "trim", inputs: { video: input.source.url }, params: { startTime: start, endTime: end, fps: RESHOOT.fps, ...(size ? { extra: { ...size } } : {}) }, step: { label: "The part at 24 fps", index: 0, of: 1 } },+ });+ const chain: ChainSlot[] = [{ slot: "video" }];+ const after = ["part"];+ let images: string[] = [];+ if (r.painted) {+ if (!pictures.length) throw new Error("Add your painted first frame");+ images = pictures.slice(0, 1);+ } else {+ const am = anchorModel("open");+ const aspect = anchorAspect(getModel(am.id)?.options.aspectRatios, size ?? input.source);+ steps.push({+ key: "frame",+ request: { ...helper, modelId: "oss-extract-frame", op: "frame", params: { startTime: 0, endTime: 0.5, extra: { frameIndex: 0 } }, step: { label: "The part's first frame", index: 0, of: 1 } },+ after: ["part"],+ chain: [{ slot: "video" }],+ });+ steps.push({+ key: "paint",+ request: {+ ...helper,+ modelId: am.id,+ op: "edit",+ prompt: paintPrompt(r, pictures.length),+ ...(pictures.length ? { inputs: { images: pictures } } : {}),+ params: { ...(aspect ? { aspectRatio: aspect } : {}), ...(am.extra ? { extra: { ...am.extra } } : {}), ...seed },+ step: { label: r.choice === "swap" ? `Paint the new person into the first frame (${am.label})` : `Paint the change into the first frame (${am.label})`, index: 0, of: 1 },+ },+ after: ["frame"],+ chain: [{ slot: "images", position: "first" }],+ });+ after.push("paint");+ chain.push({ slot: "images", position: "first" });+ }+ steps.push({+ key: "reshoot",+ request: {+ ...base,+ modelId: input.maker.id,+ op: r.choice === "edit" ? "scene-edit" : "video-swap",+ prompt: reshootPrompt(r, frames),+ ...(images.length ? { inputs: { images } } : {}),+ params: { ...seed, resolution: quality, extra: { openjutsu: { choice: r.choice, frames, quality, describe: describerPrompt(r), ...seed } } },+ step: { label: r.choice === "edit" ? "Reshoot what's in it" : "Reshoot who's in it", index: 0, of: 1 },+ },+ after,+ chain,+ });+ return { steps, final: "reshoot", pieces: 1, sound: false, tracked: false };+}++/** Remake's canvas for a clip: the short edge at `short`, both sides on 32 px steps (the nodes keep such a canvas as it is). */+export function reshootCanvas(width: number, height: number, short: number): { width: number; height: number } {+ const k = short / Math.min(width, height);+ const side = (v: number) => Math.max(32, Math.round((v * k) / 32) * 32);+ return width <= height ? { width: short, height: side(height) } : { width: side(width), height: short };+}+function planOpenjutsu(input: GenjutsuPlanInput): GenjutsuPlan {const m = input.maker;const base = { feature: GENJUTSU.feature, batchTitle: input.title, title: input.title };@@ -2113,6 +2237,8 @@ export interface GenjutsuSetup {/** From picture's settings (not the frame or the words: they belong to a run). */picture?: Omit<PictureOptions, "frame" | "scene" | "stage">;finish?: FinishOptions;+ /** Fuobe Reshoot's settings. */+ reshoot?: ReshootOptions;/** The run's seed (blank in the form: a new one each time). */seed?: number;/** How long the part is, in seconds (it starts where the part of the clip starts). */@@ -2250,6 +2376,21 @@ export function cleanFinish(v: unknown): FinishOptions | undefined {return out;}+/** Fuobe Reshoot's settings as they travel in a code. */+export function cleanReshoot(v: unknown): ReshootOptions | undefined {+ if (!v || typeof v !== "object") return undefined;+ const o = v as Record<string, unknown>;+ const choice = oneOf(o.choice, ["swap", "edit"] as const);+ if (!choice) return undefined;+ const out: ReshootOptions = { choice };+ const who = str(o.who, RESHOOT.whoChars);+ if (who) out.who = who;+ const words = str(o.words, RESHOOT.wordsChars);+ if (words) out.words = words;+ if (o.painted === true) out.painted = true;+ return out;+}+const ANCHOR_IDS = new Set(["gpt-image-2-5-sunburst", "nano-banana-pro", "oss-qwen-image-21", "oss-krea2-identity-edit", "oss-qwen-edit"]);/**@@ -2273,6 +2414,7 @@ export function encodeSetup(s: GenjutsuSetup): string {o: s.object && cleanObject(s.object),i: s.picture && cleanPicture(s.picture),f: s.finish && cleanFinish(s.finish),+ rs: s.reshoot && cleanReshoot(s.reshoot),sd: s.seed !== undefined && !seedProblem(s.seed) ? s.seed : undefined,pl: lengthOf(s.length),os: s.originalSound,@@ -2345,6 +2487,8 @@ export function decodeSetup(input: string, open: FeatureCheck = ALL_FEATURES): G}const finish = mode === "finish" ? cleanFinish(o.f) : undefined;if (finish && open(finish.tool === "faces" ? "finish-faces" : "finish-colours")) out.finish = finish;+ const reshoot = mode === "reshoot" ? cleanReshoot(o.rs) : undefined;+ if (reshoot && open(reshootFeature(reshoot.choice))) out.reshoot = reshoot;if (typeof o.sd === "number" && !seedProblem(o.sd)) out.seed = o.sd;const length = lengthOf(o.pl);if (length !== undefined) out.length = length;diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 76eef3be..cf12875f 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -1409,6 +1409,21 @@ const open: ModelDef[] = [routes: [comfy("scene-edit", "video-scene-edit-h3", "Openjutsu object: SAM 3.1 tracks what you name, MiniMax H3 + DMAD redraw only that, clip by clip")],options: { seed: true, resolutions: ["480p", "720p", "1080p"], maxImages: 1 },}),+ // Fuobe Reshoot (Genjutsu; src/lib/catalog/reshoot.ts): Viggle Remake on MiniMax H3, one graph per choice. Your GPU only.+ o({+ id: "oss-h3-reshoot",+ name: "Fuobe Reshoot",+ vendor: "MiniMax × Viggle",+ family: "minimax-h3",+ kind: "video",+ tagline: "Same shot. Anything you change: who's in it, or what's in it · the clip's motion, camera and sound kept · 32 GB GPU",+ hidden: true,+ routes: [+ comfy("video-swap", "video-reshoot-swap-h3", "Viggle Remake swap (int8): a new person plays the part from the painted first frame; Qwen3-VL 8B describes the motion"),+ comfy("scene-edit", "video-reshoot-edit-h3", "Viggle Remake edit (int8): an outfit, an object, the place, the weather or the light changes from the painted first frame"),+ ],+ options: { seed: true, resolutions: ["480p", "720p"], maxImages: 1 },+ }),o({id: "oss-from-picture-frame",name: "From picture · first frame",diff --git a/src/lib/catalog/reshoot.ts b/src/lib/catalog/reshoot.tsnew file mode 100644index 00000000..6d3fa211--- /dev/null+++ b/src/lib/catalog/reshoot.ts@@ -0,0 +1,223 @@+/**+ * Fuobe Reshoot: the same shot with something changed. Viggle Remake (Viggle AI; MiniMax H3 with Viggle's swap or edit+ * weights merged in, ComfyUI-Viggle-Remake nodes) keeps the clip's motion, camera, timing and sound, and takes from a+ * painted first frame who is in it (swap) or what is in it (edit).+ *+ * A run: the part fitted to 24 fps on the H3 canvas, the part's first frame, that frame painted with the change+ * (Qwen-Image 2.1 on your GPU; or your own painted frame), then one Remake render pinned to it. The render's graph+ * describes the part's motion itself (Qwen3-VL 8B) and puts that description into Remake's six-section prompt where+ * "{scene}" stands.+ *+ * Pure module: limits, frame counts, the prompts and the graph's settings. Genjutsu plans the steps+ * (src/lib/catalog/genjutsu.ts planReshoot); the provider writes the settings (src/lib/reshoot-graph.ts).+ */++export type ReshootChoice = "swap" | "edit";++export const RESHOOT_CHOICES: { id: ReshootChoice; label: string; hint: string }[] = [+ { id: "swap", label: "Who's in it", hint: "Someone new plays the part: the same moves, the same camera, the same sound." },+ { id: "edit", label: "What's in it", hint: "Change an outfit, an object, the place, the weather or the light. Everything else stays as filmed." },+];++/** The two graphs, one per choice (each loads its own Remake weights). */+export const RESHOOT_WORKFLOWS: Record<ReshootChoice, string> = { swap: "video-reshoot-swap-h3", edit: "video-reshoot-edit-h3" };++/** The model a Reshoot render runs on (both graphs). */+export const RESHOOT_MODEL = "oss-h3-reshoot";++export const RESHOOT = {+ fps: 24,+ /** Remake's window: 90 to 345 frames on H3's 17n + 5 grid. */+ minFrames: 90,+ maxFrames: 345,+ /**+ * The longest render a 32 GB card makes at each size with the int8 weights: 294 frames (12.25 s, the most the authors+ * advise) at 480p; 175 frames (7.3 s) at 720p (1280 × 736).+ */+ maxFramesAt: { "480p": 294, "720p": 175 } as Record<string, number>,+ qualities: ["480p", "720p"],+ defaultQuality: "480p",+ /** The part: whole seconds a person picks. */+ minSeconds: 4,+ maxSeconds: 12,+ /** The canvas's short edge per quality (Remake's 480 and 736). */+ shortEdge: { "480p": 480, "720p": 736 } as Record<string, number>,+ /** Pictures: the character (swap) or how the change looks (edit); the painting step reads up to three. */+ maxPictures: 3,+ whoChars: 120,+ wordsChars: 600,+ /** The keyframes stop guiding the render below this noise level (the authors' setting). */+ keyframeUntil: 0.9,+} as const;++/** Remake's step schedule per choice (6 steps, from the authors' graphs). */+export const RESHOOT_SIGMAS: Record<ReshootChoice, string> = {+ swap: "1.0, 0.990476, 0.965243, 0.923077, 0.8, 0.631579, 0.0",+ edit: "1.0, 0.983607, 0.96, 0.923077, 0.857143, 0.705882, 0.0",+};++/** Reshoot's settings (Genjutsu's body.reshoot). */+export interface ReshootOptions {+ choice: ReshootChoice;+ /** Swap: who in the clip is replaced ("the woman in the red coat"); empty: the person with the most screen time. */+ who?: string;+ /** Swap: the new person in a few visible facts (optional). Edit: what changes (required). */+ words?: string;+ /** The first picture is already the part's first frame with the change painted in: no painting step. */+ painted?: boolean;+}++const clean = (s: string | undefined, max: number) =>+ (s ?? "")+ .replace(/[{}<>[\]]/g, " ")+ .replace(/\s+/g, " ")+ .trim()+ .replace(/[.\s]+$/, "")+ .slice(0, max);++/** The quality a run renders at: 480p unless 720p is asked for and the part fits its limit. */+export function reshootQuality(quality: string | undefined): "480p" | "720p" {+ return quality === "720p" || quality === "768p" || quality === "1080p" ? "720p" : "480p";+}++/**+ * Frames Remake renders for a part of `seconds` at `quality`: the longest 17n + 5 count the part holds, at most the+ * quality's limit. Null when the part is too short (under 90 frames, 3.75 s).+ */+export function reshootFrames(seconds: number, quality: string): number | null {+ const have = Math.floor(seconds * RESHOOT.fps + 1e-6);+ const cap = Math.min(RESHOOT.maxFrames, RESHOOT.maxFramesAt[reshootQuality(quality)]);+ let f = Math.min(have, cap);+ while (f >= RESHOOT.minFrames && f % 17 !== 5) f--;+ return f >= RESHOOT.minFrames ? f : null;+}++/** The longest part a quality renders in full, in seconds (12.25 at 480p, 7.29 at 720p). */+export const reshootMaxSeconds = (quality: string) => RESHOOT.maxFramesAt[reshootQuality(quality)] / RESHOOT.fps;++/** "MM:SS.mmm" for a frame count at 24 fps. */+export function stamp(frames: number): string {+ const ms = Math.round((frames / RESHOOT.fps) * 1000);+ const m = Math.floor(ms / 60000);+ const s = (ms % 60000) / 1000;+ return `${String(m).padStart(2, "0")}:${s.toFixed(3).padStart(6, "0")}`;+}++/** What stops a Reshoot request, in words, or null. */+export function reshootProblem(o: ReshootOptions | undefined, pictures: number, seconds: number, quality: string): string | null {+ const r = o ?? { choice: "swap" as const };+ if (r.choice === "swap" && pictures < 1) return r.painted ? "Add your painted first frame" : "Add a picture of who plays the part";+ if (r.choice === "edit" && !clean(r.words, RESHOOT.wordsChars)) return "Say what changes";+ if (r.choice === "edit" && r.painted && pictures < 1) return "Add your painted first frame";+ if (pictures > RESHOOT.maxPictures) return `Up to ${RESHOOT.maxPictures} pictures`;+ if (!reshootFrames(seconds, quality)) return `Pick at least ${RESHOOT.minSeconds} seconds`;+ return null;+}++/**+ * The painting step's instruction (an image edit of the part's first frame, image 1; the pictures follow as images 2…).+ * It names only what the frame should show.+ */+export function paintPrompt(o: ReshootOptions, pictures: number): string {+ if (o.choice === "swap") {+ const who = clean(o.who, RESHOOT.whoChars) || "the person with the most screen time";+ const about = clean(o.words, RESHOOT.wordsChars);+ return (+ `Image 1 is a frame from a video. Replace ${who} in image 1 with the person from image 2${about ? ` (${about})` : ""}: ` ++ "their face, hair, body and complete outfit exactly as image 2 shows them. " ++ "Keep the exact pose, head angle, gaze, mouth, expression, hand positions and size from image 1, and keep everyone else, the whole setting, the framing, the light and the aspect ratio of image 1 as they are. " ++ "One photorealistic frame of the same video."+ );+ }+ const change = clean(o.words, RESHOOT.wordsChars);+ const look = pictures > 0 ? ` Take how it looks from ${pictures > 1 ? `images 2 to ${pictures + 1}` : "image 2"}.` : "";+ return (+ `Image 1 is a frame from a video. Edit image 1 so that ${change}.${look} ` ++ "Keep the framing, the camera angle, the people and their poses, and the aspect ratio of image 1, and keep every part of image 1 that the change leaves alone exactly as it is. " ++ "One photorealistic frame of the same video."+ );+}++/**+ * The describer's instruction (Qwen3-VL 8B reads the part at two frames a second). Its paragraph replaces "{scene}" in+ * the render's prompt: movement, gaze, camera and cuts only, so the painted frame carries every look.+ */+export function describerPrompt(o: ReshootOptions): string {+ const who = o.choice === "swap" ? clean(o.who, RESHOOT.whoChars) || "the person with the most screen time" : "the main person";+ return (+ "These are frames from one video clip, in time order, two per second. Describe how things move, for a video model that remakes the clip. " ++ `Write one paragraph of 50 to 140 words in the present tense, calling ${who} "the person". ` ++ "Go through the frames in order: what each person does with their body, hands, head and mouth, where they look, how the camera moves, and when the shot cuts. " ++ "Describe movement only: say nothing about anyone's hair, face, body, skin or clothing, nothing about objects, the setting, the weather, the light or colours, and no times. " ++ "Write movements at the speed they happen. No preamble, lists or Markdown."+ );+}++/**+ * Remake's six-section prompt, written as the target video (MiniMax H3's layout with <Video 1> the part and+ * <Picture 1> the painted first frame, pinned at frame 0). "{scene}" is where the graph puts the describer's paragraph.+ */+export function reshootPrompt(o: ReshootOptions, frames: number): string {+ const end = stamp(frames);+ if (o.choice === "swap") {+ const who = clean(o.who, RESHOOT.whoChars) || "the person with the most screen time";+ const about = clean(o.words, RESHOOT.wordsChars);+ return [+ "subject_definitions:",+ "<Video 1> is the source video for the target video edit.",+ "<Picture 1> is the first frame of the target video, exactly as the target video shows it at 00:00.000.",+ `<Subject 1> is the person in <Picture 1>${about ? `: ${about}` : ""}. <Subject 1> takes the place of ${who} in <Video 1>.`,+ "",+ "summary:",+ `[video editing + character replacement] The target video is an edited version of <Video 1> in which ${who} becomes <Subject 1>, exactly as in <Picture 1>, in every frame through the last frame. The framing, the camera movement, the setting, every movement and the timing stay as in <Video 1>.`,+ "",+ "retention_analysis:",+ `<Video 1> (source video editing): fully_preserved - the framing, the camera movement, every cut, the setting, the light, the other people, and every movement, gesture, expression and mouth movement with its timing, from 00:00.000 to ${end}, are copied frame for frame.`,+ "<Picture 1> (target keyframe): fully_preserved - the target video passes through this exact frame at 00:00.000. The face, hair and complete outfit of <Subject 1> are taken from <Picture 1>.",+ `<Subject 1> (appears in [Shot 1]): changed - ${who} becomes <Subject 1>; the face, hair and complete outfit of <Subject 1> stay identical in every frame through the last frame, also in close-up and in profile.`,+ "",+ "detailed_description:",+ "The target video keeps the look, the light and the colour of <Video 1>.",+ `[Shot 1] {scene} The person is <Subject 1>, exactly as in <Picture 1>, in every frame from 00:00.000 to ${end}, moving at the pace of <Video 1> in real time. Everything else stays as in <Video 1>.`,+ "",+ "overall_soundscape:",+ "The source soundtrack of <Video 1> is reused unchanged as the whole sound.",+ "",+ "non_diegetic_music:",+ "N/A",+ ].join("\n");+ }+ const change = clean(o.words, RESHOOT.wordsChars);+ return [+ "subject_definitions:",+ "<Video 1> is the source video for the target video edit.",+ "<Picture 1> is the first frame of the target video, exactly as the target video shows it at 00:00.000.",+ `<Subject 1> is what changes, as <Picture 1> shows it: ${change}.`,+ "",+ "summary:",+ `[video editing] The target video is an edited version of <Video 1>: ${change}, from the first frame to the last, exactly as in <Picture 1>, with the same framing, camera movement, motion and timing as <Video 1>.`,+ "",+ "retention_analysis:",+ `<Video 1> (source video editing): fully_preserved - the framing, the camera movement, every cut, and every movement and gesture of the people with its timing, from 00:00.000 to ${end}, are copied frame for frame; every part of the shot that <Subject 1> leaves alone stays as in <Video 1>.`,+ "<Picture 1> (target keyframe): fully_preserved - the target video passes through this exact frame at 00:00.000.",+ `<Subject 1> (appears in [Shot 1]): changed - ${change}, in every frame from the first to the last and in every part of the frame, as in <Picture 1>.`,+ "",+ "detailed_description:",+ `[Shot 1] {scene} Throughout, ${change}, exactly as in <Picture 1>, from 00:00.000 to ${end}. Every part of the shot that this leaves alone stays as in <Video 1>.`,+ "",+ "overall_soundscape:",+ "The source soundtrack of <Video 1> is reused unchanged as the whole sound.",+ "",+ "non_diegetic_music:",+ "N/A",+ ].join("\n");+}++/** Reshoot's settings as they travel to the graph (params.extra.openjutsu). */+export interface ReshootGraphSettings {+ frames: number;+ quality: "480p" | "720p";+ /** The describer's instruction. */+ describe: string;+ seed: number;+}diff --git a/src/lib/comfy-compose.ts b/src/lib/comfy-compose.tsindex cbc380ec..ad701d57 100644--- a/src/lib/comfy-compose.ts+++ b/src/lib/comfy-compose.ts@@ -90,6 +90,7 @@ import { maskMemoryProblem } from "@/lib/catalog/swap-studio";import { STUDIO_WORKFLOWS } from "@/lib/catalog/swap-studio-plan";import { maskGraph, segmentGraph, type MaskGraphOptions, type SegmentGraphOptions } from "@/lib/swap-studio-graphs";import { OPENJUTSU_IDS, openjutsuGraph, openjutsuLeftOut, type OpenjutsuSettings } from "@/lib/openjutsu-graphs";+import { RESHOOT_IDS, reshootGraph, type ReshootSettings } from "@/lib/reshoot-graph";import { RESTORE_EXTRA_KEYS, restoreGraph, restoreJob, type RestoreJob } from "@/lib/restore-graph";import { getMaker, makerPrompt, OPEN_TARGET_PROBLEM, ORIGINALS, swapTarget } from "@/lib/catalog/genjutsu";import { CLICK_OPEN_PROBLEM, HAND_OFF, REMOVE_SCENE, REVIEW_EXTRA, reuseOf, targetPhrase, type RemovalReview } from "@/lib/catalog/remove-object";@@ -798,6 +799,8 @@ export async function composeWorkflow(endpointTemplate: string, input: GenInput,// Genjutsu's Openjutsu modes (src/lib/openjutsu-graphs.ts): the settings travel as params.extra.openjutsu and are written// into the graph by node title after the media are bound; the pictures a request leaves out go with their branches.const openjutsu = OPENJUTSU_IDS.has(manifest.id) ? ((extra.openjutsu && typeof extra.openjutsu === "object" ? extra.openjutsu : {}) as OpenjutsuSettings) : null;+ // Fuobe Reshoot (src/lib/reshoot-graph.ts): its settings travel the same way, so the own-setup checks read them too.+ const reshoot = RESHOOT_IDS.has(manifest.id) ? ((extra.openjutsu && typeof extra.openjutsu === "object" ? extra.openjutsu : {}) as ReshootSettings) : null;delete extra.openjutsu;// Genjutsu's Character swap (MiniMax H3 on the h3_character_swap / H3 Relay packs): the part, the quality as the// unpatched pack's string, who to swap (SAM words, largest / leftmost / rightmost / index, or clicks moved into H3's@@ -1289,6 +1292,14 @@ export async function composeWorkflow(endpointTemplate: string, input: GenInput,throw new ComposeError((e as Error).message, 400);}}+ if (reshoot) {+ const seed = typeof reshoot.seed === "number" ? reshoot.seed : typeof values.seed === "number" ? values.seed : randomSeed();+ try {+ wf = reshootGraph(wf, { ...reshoot, seed });+ } catch (e) {+ throw new ComposeError((e as Error).message, 400);+ }+ }// LoRA "none": the swap LoRA's loader is linked out (H3 runs with the Turbo LoRA alone).if (dropSwapLora && b.lora?.length === 1) wf = bypassNode(wf, b.lora[0].node, "model", outputIds);if (studioSegment) wf = segmentGraph(wf, { ...studioSegment, outputs: outputIds });diff --git a/src/lib/comfy.ts b/src/lib/comfy.tsindex 8639a357..57fca16d 100644--- a/src/lib/comfy.ts+++ b/src/lib/comfy.ts@@ -685,7 +685,7 @@ export function tagMetaBatch(wf: ComfyWorkflow, job: string): ComfyWorkflow {}/** Inputs that may go without sound: a VHS soundtrack link into them is dropped for a silent clip. */-const OPTIONAL_SOUND: Record<string, string[]> = { VHS_VideoCombine: ["audio"], CreateVideo: ["audio"], TextGenerate: ["audio"] };+const OPTIONAL_SOUND: Record<string, string[]> = { VHS_VideoCombine: ["audio"], CreateVideo: ["audio"], TextGenerate: ["audio"], RemakeConditioning: ["audio"] };/** Nodes that pad the sound they get to the loaded frames themselves: an empty track is enough (and never too long). */const PADS_TO_FRAMES = new Set(["H3SoundtrackOrSilence"]);/**diff --git a/src/lib/examples/genjutsu.ts b/src/lib/examples/genjutsu.tsindex f81b05c2..f6f804de 100644--- a/src/lib/examples/genjutsu.ts+++ b/src/lib/examples/genjutsu.ts@@ -5,6 +5,7 @@* viewer's to give. Client-safe: the catalog (catalog.ts) checks every row with these same rules when it is built.*/import { CHARACTER_SWAP } from "@/lib/catalog/character-swap";+import { RESHOOT } from "@/lib/catalog/reshoot";import {ALL_FEATURES,decodeSetup,@@ -51,6 +52,7 @@ export function partLimits(mode: GenjutsuMode, model?: string): { min: number; mif (mode === "character") return { min: CHARACTER_SWAP.minSeconds, max: CHARACTER_SWAP.maxSeconds };if (mode === "picture") return { min: OPENJUTSU_LIMITS.minSeconds, max: OPENJUTSU_LIMITS.maxSeconds };if (mode === "finish") return { min: 1, max: OPENJUTSU_LIMITS.coloursMaxSeconds };+ if (mode === "reshoot") return { min: RESHOOT.minSeconds, max: RESHOOT.maxSeconds };return { min: GENJUTSU.minSeconds, max: GENJUTSU.maxSeconds };}diff --git a/src/lib/licences.ts b/src/lib/licences.tsindex 4b7fc766..01851b7b 100644--- a/src/lib/licences.ts+++ b/src/lib/licences.ts@@ -535,6 +535,14 @@ export const NODE_PACKS: NodePack[] = [...GPL,note: "H3 Relay 2.0 (Sendy Software LLC and contributors); GPL-3.0 code, vendored Context Loop and Spectrum GPL-3.0. Opt-in: it registers HTTP routes when it loads",}),+ // Fuobe Reshoot: the node pack in Viggle's model repository (two Python files), pinned in packs.json and+ // install-comfyui.sh (RESHOOT=1).+ pack("ComfyUI-Viggle-Remake", "https://huggingface.co/Viggle/Viggle-Remake/tree/21665fa7a1e038e0a5312fb15f37b18d0f06f117/comfyui/ComfyUI-Viggle-Remake", {+ name: "Apache-2.0",+ class: "commercial",+ url: SPDX("Apache-2.0"),+ note: "Viggle Remake's nodes (Viggle AI): the clip, the painted frames and the soundtrack as MiniMax H3 conditioning, keyframes pinned at real frames; Apache-2.0 code. Powered by Viggle Remake (https://huggingface.co/Viggle/Viggle-Remake). The weights it runs are under the MiniMax H3 Community License",+ }),// Genjutsu's Openjutsu modes (Group swap, Scene edit, From picture, Fix faces, Fix colours): pinned in packs.json and// install-comfyui.sh (OPENJUTSU_MODES=1). LICENSE files read at the pinned commits.pack("ComfyUI-MiniMaxH3-Context-Loop", "https://github.com/ethanfel/ComfyUI-MiniMaxH3-Context-Loop/tree/43afeffcc570beb5f7382593e79e4b211c7e02f6", {diff --git a/src/lib/own-setup.ts b/src/lib/own-setup.tsindex b98bda71..aa4f0735 100644--- a/src/lib/own-setup.ts+++ b/src/lib/own-setup.ts@@ -70,12 +70,15 @@ const ITEMS: Record<string, Entry> = {"genjutsu:picture-h3-renderer": { setup: gpu(24, { files: true }), passes: "picture-h3-renderer" },"genjutsu:finish-faces": { setup: gpu(24, { files: true }), passes: "finish-faces" },"genjutsu:motion-h3": { setup: gpu(24, { files: true }), passes: "motion-h3" },+ "genjutsu:reshoot-swap": { setup: gpu(32, { files: true }), passes: "reshoot-swap" },+ "genjutsu:reshoot-edit": { setup: gpu(32, { files: true }), passes: "reshoot-edit" },// Genjutsu's makers that only those features use."oss-h3-scene-edit": { setup: gpu(24, { files: true }), passes: "object-change" },"oss-from-picture": { setup: gpu(24, { files: true }), passes: "picture" },"oss-from-picture-frame": { setup: gpu(24, { files: true }), passes: "picture" },"oss-h3-fix-faces": { setup: gpu(24, { files: true }), passes: "finish-faces" },"oss-h3-motion": { setup: gpu(24, { files: true }), passes: "motion-h3" },+ "oss-h3-reshoot": { setup: gpu(32, { files: true }), passes: "reshoot-swap" },// "Clean the voice first": a light voice split on any GPU, or a fal.ai key."sound:clean-voice-first": { setup: gpu(undefined, { orKey: "fal" }), passes: "clean-voice-first" },// WorldCast filming: a Linux computer with a 48 GB card.diff --git a/src/lib/reshoot-graph.ts b/src/lib/reshoot-graph.tsnew file mode 100644index 00000000..b1780514--- /dev/null+++ b/src/lib/reshoot-graph.ts@@ -0,0 +1,50 @@+/**+ * Fuobe Reshoot's graphs (video-reshoot-swap-h3, video-reshoot-edit-h3): the settings each request writes into them by+ * node title, after the manifest's bindings went in (the part, the painted first frame, the prompt, the seed). Pure, so+ * the provider (src/lib/comfy-compose.ts) and the tests share it.+ */+import type { ComfyWorkflow } from "./comfy";+import { RESHOOT, RESHOOT_WORKFLOWS, reshootQuality } from "./catalog/reshoot";++export const RESHOOT_IDS = new Set<string>(Object.values(RESHOOT_WORKFLOWS));++const clone = (g: ComfyWorkflow): ComfyWorkflow => JSON.parse(JSON.stringify(g)) as ComfyWorkflow;++function byTitle(graph: ComfyWorkflow, title: string): ComfyWorkflow[string] {+ const ids = Object.keys(graph).filter((id) => graph[id]._meta?.title === title);+ if (ids.length !== 1) throw new Error(`Expected one "${title}" node in the workflow, found ${ids.length}.`);+ return graph[ids[0]];+}++/** The settings as they travel (params.extra.openjutsu, as Genjutsu's other GPU modes'). Unknown values fall back to the defaults. */+export type ReshootSettings = Record<string, unknown>;++/** A frame count Remake takes: 17n + 5 within the quality's limit (else the nearest one below). */+export function reshootFrameCount(v: unknown, quality: "480p" | "720p"): number {+ const max = Math.min(RESHOOT.maxFrames, RESHOOT.maxFramesAt[quality]);+ let f = typeof v === "number" && Number.isFinite(v) ? Math.round(v) : 124;+ f = Math.max(RESHOOT.minFrames, Math.min(max, f));+ // 90 is on the grid (17 × 5 + 5), so this never goes below it.+ while (f % 17 !== 5) f--;+ return f;+}++/**+ * The graph for one Reshoot render: the frames to render (the part's loader reads exactly those, its sound with them),+ * the canvas's short edge, the painted frame pinned at frame 0, the describer's instruction and the seed.+ */+export function reshootGraph(wf: ComfyWorkflow, s: ReshootSettings): ComfyWorkflow {+ const graph = clone(wf);+ const quality = reshootQuality(typeof s.quality === "string" ? s.quality : undefined);+ const frames = reshootFrameCount(s.frames, quality);+ const seed = Math.max(0, Math.min(0xffffffff, Math.round(typeof s.seed === "number" && Number.isFinite(s.seed) ? s.seed : 0)));+ const cond = byTitle(graph, "Remake conditioning").inputs;+ cond.frames = frames;+ cond.short_edge = RESHOOT.shortEdge[quality];+ cond.pins = "0";+ byTitle(graph, "Source part").inputs.frame_load_cap = frames;+ byTitle(graph, "Remake noise").inputs.seed = seed;+ byTitle(graph, "Keyframe until").inputs.keyframe_until = RESHOOT.keyframeUntil;+ if (typeof s.describe === "string" && s.describe.trim()) byTitle(graph, "Describe the motion").inputs.prompt = s.describe.trim().slice(0, 2000);+ return graph;+}diff --git a/src/server/genjutsu.ts b/src/server/genjutsu.tsindex 3ea5001f..df90ea02 100644--- a/src/server/genjutsu.ts+++ b/src/server/genjutsu.ts@@ -23,6 +23,7 @@ import {import { ACCESS_PLACE } from "@/lib/model-access";import { CHARACTER_DESCRIBER, cleanDescription, DESCRIBE_PICTURE } from "@/lib/character-description";import { openCapNote, SHARPEN_COPY, SHARPEN_SIGMA_RANGE } from "@/lib/catalog/sharpen";+import { RESHOOT, reshootFrames, reshootQuality, type ReshootOptions } from "@/lib/catalog/reshoot";import {ALL_FEATURES,chooseMaker,@@ -121,6 +122,8 @@ export interface GenjutsuBody {picture?: PictureOptions;/** Finish: Fix faces or Fix colours. */finish?: FinishOptions;+ /** Fuobe Reshoot: who's in it or what's in it. */+ reshoot?: ReshootOptions;}/**@@ -193,6 +196,12 @@ const picture = z.object({renderer: z.enum(["solar", "h3"]).optional(),motionDetail: z.union([z.literal(0), z.literal(512), z.literal(768)]).optional(),});+const reshoot = z.object({+ choice: z.enum(["swap", "edit"]),+ who: z.string().max(RESHOOT.whoChars).optional(),+ words: z.string().max(RESHOOT.wordsChars).optional(),+ painted: z.boolean().optional(),+});const finish = z.object({tool: z.enum(["faces", "colours"]),faceStyle: z.enum(["photo", "mouth"]).optional(),@@ -205,7 +214,7 @@ const finish = z.object({/** The body of /api/genjutsu (and /estimate). */export const GenjutsuBodySchema = z.object({engine: z.enum(["cloud", "open"]),- mode: z.enum(["motion", "character", "swap", "restyle", "insert", "picture", "finish"]),+ mode: z.enum(["motion", "character", "swap", "restyle", "insert", "picture", "finish", "reshoot"]),modelId: z.string().max(80).optional(),tier: z.enum(["standard", "high"]).optional(),quality: z.enum(["480p", "720p", "768p", "1080p", "2K", "4K"]).optional(),@@ -232,6 +241,7 @@ export const GenjutsuBodySchema = z.object({object: objectEdit.optional(),picture: picture.optional(),finish: finish.optional(),+ reshoot: reshoot.optional(),cuts: z.array(seconds).max(200).optional(),/** What of the clip's sound goes back where it is put back (src/lib/av/original-sound.ts). */originalSound: z.enum(ORIGINAL_SOUND_IDS).optional(),@@ -296,7 +306,7 @@ async function planInput(body: GenjutsuBody, opts: { probe: boolean; viewer?: Ge}const maker = picked.maker;// A setting that hasn't opened (one by one, a light, the clip's own person…): the owner's alone.- if (requestFeatures({ mode: body.mode, maker, character: body.character, object: body.object, picture: body.picture, finish: body.finish }).some((f) => !open(f))) throw new ShortsError(NOT_HERE, 422);+ if (requestFeatures({ mode: body.mode, maker, character: body.character, object: body.object, picture: body.picture, finish: body.finish, reshoot: body.reshoot }).some((f) => !open(f))) throw new ShortsError(NOT_HERE, 422);// The header's facts win over what the browser read (the estimate runs before the upload is read).const info = opts.probe ? await probeSource(body.source.url) : {};const source: RemoveSource = {@@ -316,7 +326,7 @@ async function planInput(body: GenjutsuBody, opts: { probe: boolean; viewer?: Geconst target = MODE_TARGETS[body.mode].length ? (body.target ?? MODE_TARGETS[body.mode][0]) : undefined;const references = body.references ?? [];const clicks = (body.points ?? []).filter((p) => p.label !== "negative").length;- const problem = genjutsuProblem({ mode: body.mode, maker, source, range, references: references.length, target, subject: body.subject, prompt: body.prompt, points: clicks, mask: !!body.mask, look: body.look, seed: body.seed, character: body.character, object: body.object, picture: body.picture, finish: body.finish });+ const problem = genjutsuProblem({ mode: body.mode, maker, source, range, references: references.length, target, subject: body.subject, prompt: body.prompt, points: clicks, mask: !!body.mask, look: body.look, seed: body.seed, character: body.character, object: body.object, picture: body.picture, finish: body.finish, reshoot: body.reshoot, quality: body.quality });if (problem) throw new ShortsError(problem, 422);// From picture's video starts from a first frame this install made (the review step can't be skipped).if (maker.review && body.picture?.stage === "video" && opts.probe && !madeFrame(body.picture.frame)) throw new ShortsError("Make and pick the first frame first", 422);@@ -362,6 +372,7 @@ async function planInput(body: GenjutsuBody, opts: { probe: boolean; viewer?: Ge...(body.object ? { object: body.object } : {}),...(body.picture ? { picture: body.picture } : {}),...(body.finish ? { finish: body.finish } : {}),+ ...(body.mode === "reshoot" ? { reshoot: body.reshoot ?? { choice: "swap" as const } } : {}),...(paint ? { paint } : {}),// What of the clip's sound goes back: the cloud puts it all back (DBS runs on your GPU)....(body.originalSound && { originalSound: originalSoundOn(body.originalSound, maker.engine) }),@@ -434,6 +445,15 @@ function notesFor(body: GenjutsuBody, m: Maker, source: RemoveSource, range: Remconst fps = source.fps ?? 30;const fuobeLook = body.mode === "restyle" && m.looks === "fuobe";const len = range.end - range.start;+ if (m.reshoot) {+ const r = body.reshoot ?? { choice: "swap" as const };+ const quality = reshootQuality(body.quality);+ const frames = reshootFrames(len, quality);+ if (!r.painted) notes.push(r.choice === "swap" ? "Your picture is first painted into the part's first frame, then the whole part is remade from it" : "Your change is first painted into the part's first frame, then the whole part is remade from it");+ if (frames && frames / RESHOOT.fps < len - 0.2) notes.push(`Makes the first ${(frames / RESHOOT.fps).toFixed(1)} s of your part at ${quality}`);+ notes.push("The clip's motion, camera, timing and sound stay as filmed");+ return notes;+ }if (m.group || m.actions || m.review || m.tool || m.id === MOTION_H3) {notes.push(...openjutsuNotes(body, m, range));return notes;diff --git a/tests/genjutsu-openjutsu.test.ts b/tests/genjutsu-openjutsu.test.tsindex 3de1fdde..1c5e47b3 100644--- a/tests/genjutsu-openjutsu.test.ts+++ b/tests/genjutsu-openjutsu.test.ts@@ -40,14 +40,14 @@ const step = (p: ReturnType<typeof planGenjutsu>, key: string) => {describe("Genjutsu: the Openjutsu modes", () => {it("two new tabs; each opens with its features (the owner sees all), and visitors see nothing new until then", () => {- expect(GENJUTSU_MODES.map((m) => m.id)).toEqual(["motion", "character", "swap", "restyle", "insert", "picture", "finish"]);+ expect(GENJUTSU_MODES.map((m) => m.id)).toEqual(["motion", "character", "swap", "restyle", "insert", "picture", "finish", "reshoot"]);expect(GENJUTSU_MODES.filter((m) => modeOpen(m.id, none)).map((m) => m.id)).toEqual(["motion", "character", "swap", "restyle", "insert"]);expect(modeOpen("finish", (f) => f === "finish-colours")).toBe(true);expect(modeOpen("picture", (f) => f === "picture-light")).toBe(false);for (const mode of ["character", "swap", "picture", "finish"] as const) {for (const m of makersFor("open", mode, mode === "swap" || mode === "character" ? "type" : undefined, none)) expect(m.features, m.id).toBeUndefined();}- expect(Object.keys(GENJUTSU_FEATURES)).toHaveLength(12);+ expect(Object.keys(GENJUTSU_FEATURES)).toHaveLength(14);});it("Motion transfer's MiniMax H3: a model choice the owner sees after the Original, a visitor only once it opens", () => {diff --git a/tests/genjutsu.test.ts b/tests/genjutsu.test.tsindex 2a1c0db5..4c30ac58 100644--- a/tests/genjutsu.test.ts+++ b/tests/genjutsu.test.ts@@ -113,7 +113,7 @@ describe("Genjutsu: which model runs", () => {});it("every maker is a catalog model that does its mode's operation on its engine", () => {- const ops = { motion: "motion-transfer", character: "video-swap", swap: "video-swap", insert: "video-insert", restyle: "v2v", picture: "picture-video", finish: "tone-video" } as const;+ const ops = { motion: "motion-transfer", character: "video-swap", swap: "video-swap", insert: "video-insert", restyle: "v2v", picture: "picture-video", finish: "tone-video", reshoot: "video-swap" } as const;const opOf = (m: Maker, mode: keyof typeof ops) =>m.group ? "group-swap" : m.actions ? "scene-edit" : m.review ? "picture-video" : m.tool === "faces" ? "face-fix-video" : m.tool === "colours" ? "tone-video" : ops[mode];for (const m of MAKERS) {diff --git a/tests/gpu-requirements.test.ts b/tests/gpu-requirements.test.tsindex c09a40a1..ee38f6f4 100644--- a/tests/gpu-requirements.test.ts+++ b/tests/gpu-requirements.test.ts@@ -225,7 +225,8 @@ describe("packs.json: the single source of pack pins", () => {const repos = CUSTOM_NODE_REPOS as Record<string, string>;expect(Object.keys(repos).sort()).toEqual(Object.keys(packs).sort());for (const [name, url] of Object.entries(repos)) {- const tree = /^(https:\/\/github\.com\/[^/]+\/[^/]+)\/tree\/([0-9a-f]{40})(?:\/(.+))?$/.exec(url);+ // A folder at a commit: on GitHub, or in a Hugging Face model repo (ComfyUI-Viggle-Remake).+ const tree = /^(https:\/\/(?:github\.com|huggingface\.co)\/[^/]+\/[^/]+)\/tree\/([0-9a-f]{40})(?:\/(.+))?$/.exec(url);// One node file in a Hugging Face model repo (viggle_turbo): the repo, the commit and the file.const hfFile = /^(https:\/\/huggingface\.co\/[^/]+\/[^/]+)\/resolve\/([0-9a-f]{40})\/(.+\.py)$/.exec(url);if (hfFile) {diff --git a/tests/own-setup.test.ts b/tests/own-setup.test.tsindex 4f3915b9..9b44868c 100644--- a/tests/own-setup.test.ts+++ b/tests/own-setup.test.ts@@ -34,6 +34,7 @@ const INVENTORY: Record<string, string[]> = {"Genjutsu From picture H3 renderer": ["genjutsu:picture-h3-renderer"],"Genjutsu Fix faces": ["genjutsu:finish-faces", "oss-h3-fix-faces"],"Genjutsu Motion transfer H3": ["genjutsu:motion-h3", "oss-h3-motion"],+ "Genjutsu Fuobe Reshoot": ["genjutsu:reshoot-swap", "genjutsu:reshoot-edit", "oss-h3-reshoot"],"Clean the voice first": ["sound:clean-voice-first"],WorldCast: ["oss-worldcast", "worldcast:film"],"Exact orbit": ["fly-around:exact-orbit", "oss-uni3c-path"],diff --git a/tests/reshoot.test.ts b/tests/reshoot.test.tsnew file mode 100644index 00000000..0150c2d2--- /dev/null+++ b/tests/reshoot.test.ts@@ -0,0 +1,210 @@+import fs from "node:fs";+import path from "node:path";+import { describe, expect, it } from "vitest";+import {+ chooseMaker,+ decodeSetup,+ directRunFeatures,+ encodeSetup,+ GENJUTSU_FEATURES,+ GENJUTSU_MODES,+ genjutsuProblem,+ getMaker,+ makersFor,+ modeOpen,+ planGenjutsu,+ requestFeatures,+ reshootCanvas,+ type GenjutsuPlanInput,+} from "@/lib/catalog/genjutsu";+import { describerPrompt, paintPrompt, RESHOOT, RESHOOT_MODEL, RESHOOT_SIGMAS, RESHOOT_WORKFLOWS, reshootFrames, reshootProblem, reshootPrompt, stamp } from "@/lib/catalog/reshoot";+import { reshootFrameCount, reshootGraph, RESHOOT_IDS } from "@/lib/reshoot-graph";+import { getModel } from "@/lib/catalog";+import type { ComfyWorkflow } from "@/lib/comfy";++const ROOT = process.cwd();+const readJson = (p: string) => JSON.parse(fs.readFileSync(path.join(ROOT, p), "utf8"));+const graph = (id: string) => readJson(`workflows/comfyui/${id}.json`) as ComfyWorkflow;+const manifest = readJson("workflows/comfyui/manifest.json") as { workflows: { id: string; customNodes: { name: string }[]; models: { file: string; url: string }[]; bindings: Record<string, { node: string; input: string }[]> }[] };+const pins = readJson("workflows/comfyui/model-pins.json") as Record<string, { sha256: string; sizeBytes: number }>;+const packs = readJson("workflows/comfyui/packs.json") as Record<string, { repo: string; commit: string; subdir: string | null }>;++const maker = getMaker(RESHOOT_MODEL, "open")!;+const source = { url: "/api/files/clip.mp4", duration: 20, fps: 30, width: 1920, height: 1080, hasAudio: true };+const plan = (o: Partial<GenjutsuPlanInput> = {}) =>+ planGenjutsu({ engine: "open", mode: "reshoot", maker, title: "Genjutsu", source, range: { start: 2, end: 12 }, quality: "480p", references: ["/api/files/model.png"], reshoot: { choice: "swap" }, ...o });+const step = (p: ReturnType<typeof planGenjutsu>, key: string) => p.steps.find((s) => s.key === key)!;++/** Words that H3 reads as naming the thing they negate. */+const NEGATIONS = /\b(no|not|without|never|free of|unbranded|do not)\b/i;++describe("Fuobe Reshoot: limits and frames", () => {+ it("renders on H3's 17n + 5 grid within Remake's window, shorter at 720p", () => {+ expect(reshootFrames(3.7, "480p")).toBeNull();+ expect(reshootFrames(4, "480p")).toBe(90);+ expect(reshootFrames(5.2, "480p")).toBe(124);+ expect(reshootFrames(10, "480p")).toBe(226);+ expect(reshootFrames(12, "480p")).toBe(277);+ expect(reshootFrames(30, "480p")).toBe(294);+ expect(reshootFrames(10, "720p")).toBe(175);+ for (const s of [4, 6.5, 9, 12]) expect((reshootFrames(s, "480p")! - 5) % 17).toBe(0);+ expect(stamp(294)).toBe("00:12.250");+ expect(stamp(90)).toBe("00:03.750");+ });++ it("checks what each choice needs", () => {+ expect(reshootProblem({ choice: "swap" }, 0, 8, "480p")).toMatch(/picture of who plays the part/);+ expect(reshootProblem({ choice: "swap" }, 1, 8, "480p")).toBeNull();+ expect(reshootProblem({ choice: "edit" }, 0, 8, "480p")).toBe("Say what changes");+ expect(reshootProblem({ choice: "edit", words: "fresh snow covers the street" }, 0, 8, "480p")).toBeNull();+ expect(reshootProblem({ choice: "edit", words: "snow", painted: true }, 0, 8, "480p")).toMatch(/painted first frame/);+ expect(reshootProblem({ choice: "swap" }, 1, 3, "480p")).toMatch(/at least 4 seconds/);+ });++ it("puts the part on a canvas whose sides are on 32 px steps at the short edge", () => {+ expect(reshootCanvas(1920, 1080, 480)).toEqual({ width: 864, height: 480 });+ expect(reshootCanvas(1080, 1920, 480)).toEqual({ width: 480, height: 864 });+ expect(reshootCanvas(1080, 1350, 480)).toEqual({ width: 480, height: 608 });+ expect(reshootCanvas(1920, 1080, 736)).toEqual({ width: 1312, height: 736 });+ });+});++describe("Fuobe Reshoot: the prompts", () => {+ const sections = ["subject_definitions:", "summary:", "retention_analysis:", "detailed_description:", "overall_soundscape:", "non_diegetic_music:"];+ for (const choice of ["swap", "edit"] as const) {+ it(`${choice}: Remake's six sections in order, every tag defined, {scene} once, nothing negated`, () => {+ const p = reshootPrompt({ choice, who: "the woman on the left", words: "fresh snow covers the street and keeps falling" }, 226);+ const at = sections.map((s) => p.indexOf(s));+ expect(at.every((i) => i >= 0)).toBe(true);+ expect([...at].sort((a, b) => a - b)).toEqual(at);+ expect(p.match(/\{scene\}/g)).toHaveLength(1);+ for (const tag of p.match(/<(Video|Picture|Subject) \d+>/g) ?? []) expect(p.split(sections[1])[0], tag).toContain(tag);+ expect(p).not.toMatch(/<Picture 2>|<Audio/);+ expect(p).toContain("00:09.417");+ expect(p.replace(/non_diegetic_music:\nN\/A/, "")).not.toMatch(NEGATIONS);+ expect(p).not.toMatch(/\b(slowly|slow motion|stunning|beautiful)\b/i);+ });+ }++ it("swap: says who becomes whom, by role, through the last frame", () => {+ const p = reshootPrompt({ choice: "swap", who: "the dancer in front" }, 124);+ expect(p).toContain("the dancer in front becomes <Subject 1>, exactly as in <Picture 1>, in every frame through the last frame");+ expect(reshootPrompt({ choice: "swap" }, 124)).toContain("the person with the most screen time becomes <Subject 1>");+ });++ it("keeps the person's words from breaking the layout", () => {+ const p = reshootPrompt({ choice: "edit", words: "a {scene} <Picture 9> [Shot 4] gold gown" }, 124);+ expect(p.match(/\{scene\}/g)).toHaveLength(1);+ expect(p).not.toContain("<Picture 9>");+ expect(p).not.toContain("[Shot 4]");+ });++ it("paints the first frame with the change, and the describer sees motion only", () => {+ expect(paintPrompt({ choice: "swap", who: "the man at the bar" }, 1)).toMatch(/^Image 1 is a frame from a video\. Replace the man at the bar in image 1 with the person from image 2/);+ expect(paintPrompt({ choice: "edit", words: "she wears a crimson velvet gown" }, 0)).toContain("Edit image 1 so that she wears a crimson velvet gown.");+ expect(paintPrompt({ choice: "edit", words: "a crimson gown" }, 2)).toContain("images 2 to 3");+ expect(describerPrompt({ choice: "swap", who: "the singer" })).toContain('calling the singer "the person"');+ });+});++describe("Fuobe Reshoot in Genjutsu", () => {+ it("is a mode of its own, open with either choice, on your GPU only", () => {+ expect(GENJUTSU_MODES.find((m) => m.id === "reshoot")).toMatchObject({ label: "Fuobe Reshoot" });+ expect(GENJUTSU_FEATURES["reshoot-swap"]).toEqual({ mode: "reshoot", workflows: [RESHOOT_WORKFLOWS.swap], maker: RESHOOT_MODEL });+ expect(GENJUTSU_FEATURES["reshoot-edit"]).toEqual({ mode: "reshoot", workflows: [RESHOOT_WORKFLOWS.edit], maker: RESHOOT_MODEL });+ expect(modeOpen("reshoot", () => false)).toBe(false);+ expect(modeOpen("reshoot", (f) => f === "reshoot-edit")).toBe(true);+ expect(makersFor("open", "reshoot").map((m) => m.id)).toEqual([RESHOOT_MODEL]);+ expect(makersFor("cloud", "reshoot")).toEqual([]);+ expect(chooseMaker({ engine: "open", mode: "reshoot" })).toEqual({ maker });+ expect("problem" in chooseMaker({ engine: "cloud", mode: "reshoot" })).toBe(true);+ expect(requestFeatures({ mode: "reshoot", maker, reshoot: { choice: "edit", words: "snow" } })).toEqual(["reshoot-edit"]);+ expect(requestFeatures({ mode: "reshoot", maker })).toEqual(["reshoot-swap"]);+ expect(directRunFeatures(RESHOOT_MODEL, { choice: "edit" })).toEqual(["reshoot-edit"]);+ expect(directRunFeatures(RESHOOT_MODEL, {})).toEqual(["reshoot-swap"]);+ });++ it("keeps every existing mode and product name", () => {+ expect(GENJUTSU_MODES.map((m) => m.label)).toEqual(["Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish", "Fuobe Reshoot"]);+ expect(getModel("oss-h3-scene-edit")?.name).toBe("Scene edit");+ expect(getModel("oss-h3-group-swap")?.name).toBe("Group swap");+ });++ it("checks the part: 4–12 s", () => {+ const c = { mode: "reshoot" as const, maker, source, references: 1, reshoot: { choice: "swap" as const } };+ expect(genjutsuProblem({ ...c, range: { start: 0, end: 10 } })).toBeNull();+ expect(genjutsuProblem({ ...c, range: { start: 0, end: 15 } })).toMatch(/between 4 and 12 seconds/);+ expect(genjutsuProblem({ ...c, range: { start: 0, end: 10 }, references: 0 })).toMatch(/who plays the part/);+ });++ it("swap: the part at 24 fps, its first frame, the painted frame, then one render pinned to it", () => {+ const p = plan({ references: ["/api/files/model.png", "/api/files/model-side.png"], reshoot: { choice: "swap", who: "the woman in white" }, seed: 7 });+ expect(p.steps.map((s) => s.key)).toEqual(["part", "frame", "paint", "reshoot"]);+ expect(p).toMatchObject({ final: "reshoot", pieces: 1, sound: false });+ expect(step(p, "part").request).toMatchObject({ modelId: "oss-fit-clip", op: "trim", params: { startTime: 2, endTime: 11.5, fps: 24, extra: { width: 864, height: 480 } } });+ expect(step(p, "frame")).toMatchObject({ after: ["part"], chain: [{ slot: "video" }], request: { modelId: "oss-extract-frame", op: "frame", params: { startTime: 0, extra: { frameIndex: 0 } } } });+ const paint = step(p, "paint");+ expect(paint).toMatchObject({ after: ["frame"], chain: [{ slot: "images", position: "first" }], request: { modelId: "oss-qwen-image-21", op: "edit", inputs: { images: ["/api/files/model.png", "/api/files/model-side.png"] } } });+ expect(paint.request.prompt).toContain("Replace the woman in white in image 1");+ const r = step(p, "reshoot");+ expect(r.after).toEqual(["part", "paint"]);+ expect(r.chain).toEqual([{ slot: "video" }, { slot: "images", position: "first" }]);+ expect(r.request).toMatchObject({ modelId: RESHOOT_MODEL, op: "video-swap", params: { seed: 7, resolution: "480p", extra: { openjutsu: { choice: "swap", frames: 226, quality: "480p", seed: 7 } } } });+ expect(r.request.inputs?.images).toBeUndefined();+ expect(r.request.prompt).toContain("{scene}");+ expect(getModel(RESHOOT_MODEL)!.routes.find((x) => x.op === "video-swap")!.endpoint).toBe(RESHOOT_WORKFLOWS.swap);+ });++ it("edit: runs on the edit graph; a painted frame of your own skips the painting", () => {+ const e = plan({ references: [], reshoot: { choice: "edit", words: "fresh snow covers the street" }, quality: "720p" });+ expect(step(e, "reshoot").request).toMatchObject({ op: "scene-edit", params: { resolution: "720p", extra: { openjutsu: { choice: "edit", frames: 175 } } } });+ expect(step(e, "paint").request.inputs).toBeUndefined();+ expect(getModel(RESHOOT_MODEL)!.routes.find((x) => x.op === "scene-edit")!.endpoint).toBe(RESHOOT_WORKFLOWS.edit);+ const own = plan({ references: ["/api/files/painted.png"], reshoot: { choice: "edit", words: "snow", painted: true } });+ expect(own.steps.map((s) => s.key)).toEqual(["part", "reshoot"]);+ expect(step(own, "reshoot")).toMatchObject({ after: ["part"], chain: [{ slot: "video" }], request: { inputs: { images: ["/api/files/painted.png"] } } });+ });++ it("travels in a setup code", () => {+ const code = encodeSetup({ mode: "reshoot", reshoot: { choice: "edit", words: "golden hour light", painted: true } });+ expect(decodeSetup(code)).toMatchObject({ mode: "reshoot", reshoot: { choice: "edit", words: "golden hour light", painted: true } });+ expect(decodeSetup(code, () => false)?.mode).toBe("motion");+ });+});++describe("Fuobe Reshoot's graphs", () => {+ it("are in the manifest with the pack and the Remake weights, every file pinned", () => {+ for (const choice of ["swap", "edit"] as const) {+ const id = RESHOOT_WORKFLOWS[choice];+ expect(RESHOOT_IDS.has(id)).toBe(true);+ const w = manifest.workflows.find((x) => x.id === id)!;+ expect(w, id).toBeDefined();+ expect(w.customNodes.map((c) => c.name)).toEqual(["ComfyUI-VideoHelperSuite", "ComfyUI-Viggle-Remake"]);+ expect(w.models.map((m) => m.file)).toContain(`viggle_remake_${choice}_pruned_int8_convrot.safetensors`);+ for (const m of w.models) {+ if (m.url.includes("/resolve/main/")) continue;+ expect(pins[m.url]?.sha256, m.file).toMatch(/^[0-9a-f]{64}$/);+ }+ const g = graph(id);+ expect(g["1"].inputs.unet_name).toBe(`viggle_remake_${choice}_pruned_int8_convrot.safetensors`);+ expect(g["17"].inputs.sigmas).toBe(RESHOOT_SIGMAS[choice]);+ expect(g["20"].inputs.save_metadata).toBe(false);+ expect(w.bindings.prompt).toEqual([{ node: "12", input: "string" }]);+ }+ expect(packs["ComfyUI-Viggle-Remake"]).toMatchObject({ repo: "https://huggingface.co/Viggle/Viggle-Remake", commit: "21665fa7a1e038e0a5312fb15f37b18d0f06f117", subdir: "comfyui/ComfyUI-Viggle-Remake" });+ });++ it("take the run's frames, canvas, pin, describer words and seed", () => {+ const g = reshootGraph(graph(RESHOOT_WORKFLOWS.swap), { frames: 226, quality: "480p", describe: "Describe how things move.", seed: 42 });+ expect(g["13"].inputs).toMatchObject({ frames: 226, short_edge: 480, pins: "0" });+ expect(g["6"].inputs.frame_load_cap).toBe(226);+ expect(g["14"].inputs.seed).toBe(42);+ expect(g["11"].inputs.prompt).toBe("Describe how things move.");+ expect(g["2"].inputs.keyframe_until).toBe(RESHOOT.keyframeUntil);+ const big = reshootGraph(graph(RESHOOT_WORKFLOWS.edit), { frames: 345, quality: "720p" });+ expect(big["13"].inputs).toMatchObject({ frames: 175, short_edge: 736 });+ expect(reshootFrameCount(300, "480p")).toBe(294);+ expect(reshootFrameCount(100, "480p")).toBe(90);+ expect(reshootFrameCount("x", "480p")).toBe(124);+ });+});diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex f7542f30..e46d9c44 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -28563,6 +28563,198 @@"Metric3D vit-small (metric_depth_vit_small_800k.pth) -> custom_nodes/comfyui_controlnet_aux/ckpts/JUGGHM/Metric3D (fetched on first run unless placed there)"]},+ {+ "id": "video-reshoot-swap-h3",+ "title": "Fuobe Reshoot, who's in it: a new person plays the part, from a painted first frame (Viggle Remake swap on MiniMax H3, int8), the clip's motion, camera, timing and sound kept",+ "capability": "video-swap",+ "file": "video-reshoot-swap-h3.json",+ "source": "hand-built (scripts/comfy/hand-built/video-reshoot-swap-h3.json)",+ "bindings": {+ "video": [+ {+ "node": "6",+ "input": "video"+ }+ ],+ "image": [+ {+ "node": "7",+ "input": "image"+ }+ ],+ "prompt": [+ {+ "node": "12",+ "input": "string"+ }+ ],+ "seed": [+ {+ "node": "14",+ "input": "seed"+ }+ ],+ "filenamePrefix": [+ {+ "node": "20",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "20",+ "kind": "video"+ }+ ],+ "defaults": {},+ "limits": {+ "maxDurationSec": 12.25+ },+ "models": [+ {+ "file": "viggle_remake_swap_pruned_int8_convrot.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_swap_pruned_int8_convrot.safetensors",+ "sizeGb": 20.97+ },+ {+ "file": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "sizeGb": 15.69+ },+ {+ "file": "minimax_h3_video_vae_fp16.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_video_vae_fp16.safetensors",+ "sizeGb": 5.21+ },+ {+ "file": "minimax_h3_audio_vae_fp32.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_audio_vae_fp32.safetensors",+ "sizeGb": 0.61+ },+ {+ "file": "qwen3vl_8b_int8_convrot.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors",+ "sizeGb": 9.35+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ },+ {+ "name": "ComfyUI-Viggle-Remake",+ "repo": "https://huggingface.co/Viggle/Viggle-Remake/tree/21665fa7a1e038e0a5312fb15f37b18d0f06f117/comfyui/ComfyUI-Viggle-Remake"+ }+ ],+ "vramGb": 30,+ "license": "Viggle Remake weights: MiniMax H3 Community License (a Model Derivative of MiniMax H3, © Viggle AI); show \"MiniMax H3\" on the product's interface; commercial use above US$20M yearly revenue needs MiniMax's written authorization · ComfyUI-Viggle-Remake nodes Apache-2.0 · MiniMax H3 text encoder and VAEs under the MiniMax H3 Community License · Qwen3-VL 8B describer Apache-2.0",+ "validated": false,+ "notes": "video = the part fitted at 24 fps on the canvas (short edge 480 or 736, both sides on 32 px steps), image = the painted first frame (pinned at frame 0), prompt = Remake's six-section prompt with {scene} where the motion paragraph goes. params.extra.openjutsu: frames (17n + 5, 90-294 at 480p, 90-175 at 720p), quality 480p | 720p, describe (the describer's instruction), seed. Weights touched one stage after another: describer 9.4 GB, NVFP4 text encoder 15.7 GB, Remake int8 21 GB, VAEs 5.8 GB. The authors measured 832x480 x 226 frames in about 14 s a step on a B200 (6 steps).",+ "validationError": "HTTP 400: prompt_outputs_failed_validation: Prompt outputs failed validation | node 1 (UNETLoader): Value not in list - unet_name: 'viggle_remake_swap_pruned_int8_convrot.safetensors' not in (list of length 94)"+ },+ {+ "id": "video-reshoot-edit-h3",+ "title": "Fuobe Reshoot, what's in it: an outfit, an object, the place, the weather or the light changed from a painted first frame (Viggle Remake edit on MiniMax H3, int8), the rest of the shot and its sound kept",+ "capability": "video-scene-edit",+ "file": "video-reshoot-edit-h3.json",+ "source": "hand-built (scripts/comfy/hand-built/video-reshoot-edit-h3.json)",+ "bindings": {+ "video": [+ {+ "node": "6",+ "input": "video"+ }+ ],+ "image": [+ {+ "node": "7",+ "input": "image"+ }+ ],+ "prompt": [+ {+ "node": "12",+ "input": "string"+ }+ ],+ "seed": [+ {+ "node": "14",+ "input": "seed"+ }+ ],+ "filenamePrefix": [+ {+ "node": "20",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "20",+ "kind": "video"+ }+ ],+ "defaults": {},+ "limits": {+ "maxDurationSec": 12.25+ },+ "models": [+ {+ "file": "viggle_remake_edit_pruned_int8_convrot.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_edit_pruned_int8_convrot.safetensors",+ "sizeGb": 20.97+ },+ {+ "file": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "sizeGb": 15.69+ },+ {+ "file": "minimax_h3_video_vae_fp16.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_video_vae_fp16.safetensors",+ "sizeGb": 5.21+ },+ {+ "file": "minimax_h3_audio_vae_fp32.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_audio_vae_fp32.safetensors",+ "sizeGb": 0.61+ },+ {+ "file": "qwen3vl_8b_int8_convrot.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors",+ "sizeGb": 9.35+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ },+ {+ "name": "ComfyUI-Viggle-Remake",+ "repo": "https://huggingface.co/Viggle/Viggle-Remake/tree/21665fa7a1e038e0a5312fb15f37b18d0f06f117/comfyui/ComfyUI-Viggle-Remake"+ }+ ],+ "vramGb": 30,+ "license": "Viggle Remake weights: MiniMax H3 Community License (a Model Derivative of MiniMax H3, © Viggle AI); show \"MiniMax H3\" on the product's interface; commercial use above US$20M yearly revenue needs MiniMax's written authorization · ComfyUI-Viggle-Remake nodes Apache-2.0 · MiniMax H3 text encoder and VAEs under the MiniMax H3 Community License · Qwen3-VL 8B describer Apache-2.0",+ "validated": false,+ "notes": "video = the part fitted at 24 fps on the canvas (short edge 480 or 736, both sides on 32 px steps), image = the painted first frame (pinned at frame 0), prompt = Remake's six-section prompt with {scene} where the motion paragraph goes. params.extra.openjutsu: frames (17n + 5, 90-294 at 480p, 90-175 at 720p), quality 480p | 720p, describe (the describer's instruction), seed. Weights touched one stage after another: describer 9.4 GB, NVFP4 text encoder 15.7 GB, Remake int8 21 GB, VAEs 5.8 GB. The authors measured 832x480 x 226 frames in about 14 s a step on a B200 (6 steps).",+ "validationError": "HTTP 400: prompt_outputs_failed_validation: Prompt outputs failed validation | node 1 (UNETLoader): Value not in list - unet_name: 'viggle_remake_edit_pruned_int8_convrot.safetensors' not in (list of length 94)"+ },{"id": "video-fix-faces-h3","title": "Fix faces: H3-FaceRefine tracks the character's face, MiniMax H3 redraws it in overlapping sections and it is pasted back (faces over 20 % of the frame are left alone)",diff --git a/workflows/comfyui/model-pins.json b/workflows/comfyui/model-pins.jsonindex 533f74a7..4094d04b 100644--- a/workflows/comfyui/model-pins.json+++ b/workflows/comfyui/model-pins.json@@ -1458,5 +1458,15 @@"revision": "e8ddc4bfa664d69213930552493c220c3af56f41","sizeBytes": 15776972360,"sha256": "2003b63f87917f80061d0196c3114c70374c4d60a44ce72e03cf52305eeaa5e3"+ },+ "https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_edit_pruned_int8_convrot.safetensors": {+ "revision": "21665fa7a1e038e0a5312fb15f37b18d0f06f117",+ "sizeBytes": 20970379616,+ "sha256": "ff13b0b61d1e0e702e21de6a2bbc284b9e0006a31f3cd047daec303dab6b3155"+ },+ "https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_swap_pruned_int8_convrot.safetensors": {+ "revision": "21665fa7a1e038e0a5312fb15f37b18d0f06f117",+ "sizeBytes": 20970379616,+ "sha256": "7ba8cf79f8f09944f743f99b69d85300a70a4bc9493156cb1fff3a68a9716a47"}}diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.jsonindex a6c8142f..6bebc169 100644--- a/workflows/comfyui/object_info.subset.json+++ b/workflows/comfyui/object_info.subset.json@@ -21257,6 +21257,209 @@"essentials_category": null,"has_intermediate_output": false},+ "RemakeConditioning": {+ "input": {+ "required": {+ "clip": [+ "CLIP"+ ],+ "vae": [+ "VAE"+ ],+ "audio_vae": [+ "VAE"+ ],+ "source": [+ "IMAGE",+ {+ "tooltip": "The source clip's frames, at 24 fps. Supplies motion, camera, framing and everything the prompt does not change."+ }+ ],+ "prompt": [+ "STRING",+ {+ "multiline": true,+ "tooltip": "The six-section prompt, used verbatim."+ }+ ],+ "ref_1": [+ "IMAGE",+ {+ "tooltip": "<Picture 1>: usually a frame of the source painted in an image editor."+ }+ ],+ "pins": [+ "STRING",+ {+ "default": "",+ "tooltip": "Optional: one output frame per reference image, e.g. '12, 190'. Each reference is then pinned as a keyframe at that frame for the first part of the denoise."+ }+ ],+ "frames": [+ "INT",+ {+ "default": 124,+ "min": 90,+ "max": 345,+ "step": 17,+ "tooltip": "Output length at 24 fps, 17n+5."+ }+ ],+ "short_edge": [+ "INT",+ {+ "default": 480,+ "min": 480,+ "max": 736,+ "step": 32,+ "tooltip": "480 (832x480 for 16:9) or 736 (1280x736)."+ }+ ]+ },+ "optional": {+ "audio": [+ "AUDIO",+ {+ "tooltip": "The soundtrack kept in the output, usually the source's own. Silence when not connected."+ }+ ],+ "ref_2": [+ "IMAGE"+ ],+ "ref_3": [+ "IMAGE"+ ],+ "ref_4": [+ "IMAGE"+ ]+ }+ },+ "input_order": {+ "required": [+ "clip",+ "vae",+ "audio_vae",+ "source",+ "prompt",+ "ref_1",+ "pins",+ "frames",+ "short_edge"+ ],+ "optional": [+ "audio",+ "ref_2",+ "ref_3",+ "ref_4"+ ]+ },+ "is_input_list": false,+ "output": [+ "CONDITIONING",+ "LATENT"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "positive",+ "latent"+ ],+ "name": "RemakeConditioning",+ "display_name": "Viggle Remake Conditioning",+ "description": "",+ "python_module": "custom_nodes.ComfyUI-Viggle-Remake",+ "category": "Viggle Remake",+ "output_node": false,+ "has_intermediate_output": false,+ "search_aliases": []+ },+ "RemakeKeyframeUntil": {+ "input": {+ "required": {+ "model": [+ "MODEL"+ ],+ "keyframe_until": [+ "FLOAT",+ {+ "default": 0.9,+ "min": 0,+ "max": 1,+ "step": 0.01,+ "tooltip": "The keyframes condition every forward whose sigma is at least this; below it they are dropped and the references alone remain."+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "model",+ "keyframe_until"+ ]+ },+ "is_input_list": false,+ "output": [+ "MODEL"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "MODEL"+ ],+ "name": "RemakeKeyframeUntil",+ "display_name": "Viggle Remake Keyframe Until",+ "description": "",+ "python_module": "custom_nodes.ComfyUI-Viggle-Remake",+ "category": "Viggle Remake",+ "output_node": false,+ "has_intermediate_output": false,+ "search_aliases": []+ },+ "RemakeNoise": {+ "input": {+ "required": {+ "positive": [+ "CONDITIONING"+ ],+ "seed": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 18446744073709552000,+ "control_after_generate": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "positive",+ "seed"+ ]+ },+ "is_input_list": false,+ "output": [+ "NOISE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "NOISE"+ ],+ "name": "RemakeNoise",+ "display_name": "Viggle Remake Noise",+ "description": "",+ "python_module": "custom_nodes.ComfyUI-Viggle-Remake",+ "category": "Viggle Remake",+ "output_node": false,+ "has_intermediate_output": false,+ "search_aliases": []+ },"RemeshMesh": {"input": {"required": {diff --git a/workflows/comfyui/packs.json b/workflows/comfyui/packs.jsonindex 123daf26..2060b57b 100644--- a/workflows/comfyui/packs.json+++ b/workflows/comfyui/packs.json@@ -588,5 +588,14 @@"folders": ["sams"]+ },+ "ComfyUI-Viggle-Remake": {+ "repo": "https://huggingface.co/Viggle/Viggle-Remake",+ "commit": "21665fa7a1e038e0a5312fb15f37b18d0f06f117",+ "registry": null,+ "requirementsTxt": false,+ "isolated": false,+ "subdir": "comfyui/ComfyUI-Viggle-Remake",+ "folders": []}}diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.jsonindex 8b78e3ea..4c3426c5 100644--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@ -1,9 +1,9 @@{"v": 1,- "hash": "a62f66d850e6cf41d18f85b88c73ccfe944468d7744ba62b425e4c1bdd82056d",+ "hash": "db8cd14e4125d96b71eccdb4eb7a648fdd91037a8531aa229a86294f0b1be8fb","comfyui": {"min":"0.42.0","testedCommit":"5841c187"},"folders": ["Hi3D","RMBG","audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","kandinsky6_audio_vae","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","sams","text_encoders","thinksound","upscale_models","vae"],- "sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","AuKGenerateEdit","AuKModelLoader","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","Hi3DLoadMesh","Hi3DModelLoader","Hi3DRefine","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","IdolCamera","IdolPreprocessImage","IdolPruneSplat","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Kandinsky6AudioVAEDecode","Kandinsky6AudioVAELoader","Kandinsky6BeautifyPrompt","Kandinsky6EmptyLatent","Kandinsky6ImageToVideoAudio","Kandinsky6LatentUpscalerLoader","Kandinsky6RemoveReferenceLatent","Kandinsky6SRVAELoader","Kandinsky6Sampler","Kandinsky6TextEncode","Kandinsky6VSRUpscale","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","NomasCameraPath","NomasWorldContinue","NomasWorldGenerate","NomasWorldPrompt","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],+ "sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","AuKGenerateEdit","AuKModelLoader","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","Hi3DLoadMesh","Hi3DModelLoader","Hi3DRefine","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","IdolCamera","IdolPreprocessImage","IdolPruneSplat","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Kandinsky6AudioVAEDecode","Kandinsky6AudioVAELoader","Kandinsky6BeautifyPrompt","Kandinsky6EmptyLatent","Kandinsky6ImageToVideoAudio","Kandinsky6LatentUpscalerLoader","Kandinsky6RemoveReferenceLatent","Kandinsky6SRVAELoader","Kandinsky6Sampler","Kandinsky6TextEncode","Kandinsky6VSRUpscale","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","NomasCameraPath","NomasWorldContinue","NomasWorldGenerate","NomasWorldPrompt","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","ReActorFaceSwap","RemakeConditioning","RemakeKeyframeUntil","RemakeNoise","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],"packs": {"ComfyUI-AuK": {"repo":"https://github.com/Tencent-Hunyuan/AuK","commit":"0d40366b1039e37c6cad008ab4713f6ad6d954b7","classes":["AuKGenerateEdit","AuKModelLoader"],"folders":[],"isolated":false,"subdir":"comfyui/ComfyUI-AuK","requirementsTxt":false,"install":"manual"},"ComfyUI-CorridorKey2": {"repo":"https://github.com/hashu786/ComfyUI-CorridorKey2","commit":"d1228b68796786acee92b6497f72a60d70d1a844","classes":["CorridorKey2"],"folders":["corridorkey2"],"isolated":false,"requirementsTxt":true,"install":"manual"},@@ -35,6 +35,7 @@"ComfyUI-ToSVG": {"repo":"https://github.com/Yanick112/ComfyUI-ToSVG","commit":"1022ba05318dccb4fe586ce5bbd09f1f0b3c7909","registry":{"id":"comfyui-tosvg","version":""},"classes":["TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Video-Depth-Anything": {"repo":"https://github.com/yuvraj108c/ComfyUI-Video-Depth-Anything","commit":"a0db08e63d1ea571601c45cde4aaee0acdd0544d","registry":{"id":"ComfyUI-Video-Depth-Anything","version":""},"classes":["LoadVideoDepthAnythingModel","VideoDepthAnythingOutput","VideoDepthAnythingProcess"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-VideoHelperSuite": {"repo":"https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite","commit":"4d907bee61e92c2e65af3bd6383a4e4d356126d1","registry":{"id":"comfyui-videohelpersuite","version":""},"classes":["VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},+ "ComfyUI-Viggle-Remake": {"repo":"https://huggingface.co/Viggle/Viggle-Remake","commit":"21665fa7a1e038e0a5312fb15f37b18d0f06f117","classes":["RemakeConditioning","RemakeKeyframeUntil","RemakeNoise"],"folders":[],"isolated":false,"subdir":"comfyui/ComfyUI-Viggle-Remake","requirementsTxt":false,"install":"manual"},"ComfyUI-VoxCPM2": {"repo":"https://github.com/Saganaki22/ComfyUI-VoxCPM2","commit":"0e52a6cd006769e030d0e1ae907ffebbbfac4f5f","registry":{"id":"ComfyUI-VoxCPM2","version":""},"classes":["VoxCPM2_Clone","VoxCPM2_TTS"],"folders":["tts"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-WanVideoWrapper": {"repo":"https://github.com/kijai/ComfyUI-WanVideoWrapper","commit":"088128b224242e110d3906c6750e9a3a348a659b","registry":{"id":"ComfyUI-WanVideoWrapper","version":""},"classes":["DownloadAndLoadWav2VecModel","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Whisper": {"repo":"https://github.com/yuvraj108c/ComfyUI-Whisper","commit":"006a709848259ed3d69e2f9fcfd7a75f6c860ddd","registry":{"id":"ComfyUI-Whisper","version":""},"classes":["Add Subtitles To Frames","Apply Whisper"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},@@ -161,6 +162,8 @@"diffusion_models/seedvr2_7b_int8_convrot.safetensors": {"folder":"diffusion_models","file":"seedvr2_7b_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/diffusion_models/seedvr2_7b_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/SeedVR2/resolve/df48879708206a403d2a61acd55578c2e80fd233/diffusion_models/seedvr2_7b_int8_convrot.safetensors","sizeBytes":8334897976,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},"diffusion_models/trellis_2_int8_convrot.safetensors": {"folder":"diffusion_models","file":"trellis_2_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/main/diffusion_models/trellis_2_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/430a9d09b2416687018c8fe8edced2ad4858a439/diffusion_models/trellis_2_int8_convrot.safetensors","sizeBytes":5253048192,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},"diffusion_models/triposplat_fp16.safetensors": {"folder":"diffusion_models","file":"triposplat_fp16.safetensors","url":"https://huggingface.co/VAST-AI/TripoSplat/resolve/main/diffusion_models/triposplat_fp16.safetensors","pinnedUrl":"https://huggingface.co/VAST-AI/TripoSplat/resolve/56a96e603204ec410c4da60c13ea4fa09a2169a9/diffusion_models/triposplat_fp16.safetensors","sizeBytes":741106994,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},+ "diffusion_models/viggle_remake_edit_pruned_int8_convrot.safetensors": {"folder":"diffusion_models","file":"viggle_remake_edit_pruned_int8_convrot.safetensors","url":"https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_edit_pruned_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_edit_pruned_int8_convrot.safetensors","sizeBytes":20970379616,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},+ "diffusion_models/viggle_remake_swap_pruned_int8_convrot.safetensors": {"folder":"diffusion_models","file":"viggle_remake_swap_pruned_int8_convrot.safetensors","url":"https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_swap_pruned_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Viggle/Viggle-Remake/resolve/21665fa7a1e038e0a5312fb15f37b18d0f06f117/int8/viggle_remake_swap_pruned_int8_convrot.safetensors","sizeBytes":20970379616,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},"diffusion_models/void_pass1.safetensors": {"folder":"diffusion_models","file":"void_pass1.safetensors","url":"https://huggingface.co/Comfy-Org/void-model/resolve/main/diffusion_models/void_pass1.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/void-model/resolve/f9c9e565920002478ab9477f4c99c29c52d16db3/diffusion_models/void_pass1.safetensors","sizeBytes":11143025952,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},"diffusion_models/void_pass2.safetensors": {"folder":"diffusion_models","file":"void_pass2.safetensors","url":"https://huggingface.co/Comfy-Org/void-model/resolve/main/diffusion_models/void_pass2.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/void-model/resolve/f9c9e565920002478ab9477f4c99c29c52d16db3/diffusion_models/void_pass2.safetensors","sizeBytes":11143025952,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},"diffusion_models/wan2.1-i2v-14b-480p-Q8_0.gguf": {"folder":"diffusion_models","file":"wan2.1-i2v-14b-480p-Q8_0.gguf","url":"https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q8_0.gguf","pinnedUrl":"https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/b4b6b3b3f0f64975fb33b1d5d1a46ca24e065f03/wan2.1-i2v-14b-480p-Q8_0.gguf","sizeBytes":18144640384,"sha256":"db961e33570a3a7902614ea52b6e77a33d284dfc85743a05e880a02da1164b45","gated":false,"presence":"loader","loaders":[["WanVideoModelLoader","model"]]},@@ -562,6 +565,8 @@"video-regenerate-h3": {"core":["BasicGuider","BlockSparseAttention","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEEncode","VAELoader","Video Slice"],"packs":{"ComfyUI-Open-H3-Regenerate":["OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"Comfyui_Minimax_h3_latent_Upscaler":[]},"files":["diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","latent_upscale_models/minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors","loras/open_h3_regenerate_2k_lora.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/fast_h3_vae_noncausal_24l.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":48,"isolated":false,"firstRun":[]},"video-regenerate-h3-latent": {"core":["BasicGuider","BlockSparseAttention","CLIPLoader","CLIPTextEncode","CreateVideo","KSamplerSelect","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAELoader"],"packs":{"ComfyUI-Open-H3-Regenerate":["OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"Comfyui_Minimax_h3_latent_Upscaler":[]},"files":["diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","latent_upscale_models/minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors","loras/open_h3_regenerate_2k_lora.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/fast_h3_vae_noncausal_24l.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":48,"isolated":false,"firstRun":[]},"video-relight-bernini-r": {"core":["BasicScheduler","BerniniConditioning","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","LoraLoaderModelOnly","SamplerCustom","SaveVideo","SplitSigmas","StringConcatenate","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","diffusion_models/wan2.2_bernini_r_low_noise_fp8_scaled.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},+ "video-reshoot-edit-h3": {"core":["BasicGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","ManualSigmas","SamplerCustomAdvanced","StringReplace","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine"],"ComfyUI-Viggle-Remake":["RemakeConditioning","RemakeKeyframeUntil","RemakeNoise"]},"files":["diffusion_models/viggle_remake_edit_pruned_int8_convrot.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":30,"isolated":false,"firstRun":[]},+ "video-reshoot-swap-h3": {"core":["BasicGuider","CLIPLoader","ImageScaleToMaxDimension","KSamplerSelect","LoadImage","ManualSigmas","SamplerCustomAdvanced","StringReplace","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine"],"ComfyUI-Viggle-Remake":["RemakeConditioning","RemakeKeyframeUntil","RemakeNoise"]},"files":["diffusion_models/viggle_remake_swap_pruned_int8_convrot.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":30,"isolated":false,"firstRun":[]},"video-restore-ltx25-tiled": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","EmptyLTXVLatentVideo","ImageFromBatch","ImageScale","KSamplerSelect","LTXVAddGuide","LTXVConditioning","LoadImage","ManualSigmas","SaveVideo","UNETLoader","VAEDecodeTiled","VAELoader"],"packs":{"ComfyUI-LTXVideo":["LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVTiledFusionSampler"],"ComfyUI-VideoHelperSuite":["VHS_LoadVideo"]},"files":["diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","vae/ltx-2.5-video-vae-bf16.safetensors"],"optional":["loras/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors"],"vramGb":24,"isolated":false,"firstRun":[]},"video-restyle-wan22-fun-vace": {"core":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","DA3Inference","DA3Render","GetVideoComponents","ImageFromBatch","ImageScale","ImageToMask","KSamplerAdvanced","LoadDA3Model","LoadImage","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveInt","RepeatImageBatch","SaveVideo","SolidMask","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","geometry_estimation/depth_anything_3_mono_large.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-scene-describe": {"core":["CLIPLoader","ImageScaleToMaxDimension","LoadImage","PreviewAny","PrimitiveStringMultiline","StringConcatenate","TextGenerate"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_LoadVideo","VHS_SelectEveryNthImage"]},"files":["text_encoders/qwen3vl_8b_int8_convrot.safetensors"],"optional":[],"vramGb":12,"isolated":false,"firstRun":[],"validated":true},diff --git a/workflows/comfyui/video-reshoot-edit-h3.json b/workflows/comfyui/video-reshoot-edit-h3.jsonnew file mode 100644index 00000000..ca1e5985--- /dev/null+++ b/workflows/comfyui/video-reshoot-edit-h3.json@@ -0,0 +1,310 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "viggle_remake_edit_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Reshoot model (edit)"+ }+ },+ "2": {+ "class_type": "RemakeKeyframeUntil",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "keyframe_until": 0.9+ },+ "_meta": {+ "title": "Keyframe until"+ }+ },+ "3": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "H3 text encoder"+ }+ },+ "4": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 Video VAE"+ }+ },+ "5": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 Audio VAE"+ }+ },+ "6": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": 24,+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": 124,+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "None"+ },+ "_meta": {+ "title": "Source part"+ }+ },+ "7": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "example.png"+ },+ "_meta": {+ "title": "Painted first frame"+ }+ },+ "8": {+ "class_type": "VHS_SelectEveryNthImage",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "select_every_nth": 12,+ "skip_first_images": 0+ },+ "_meta": {+ "title": "Two frames per second"+ }+ },+ "9": {+ "class_type": "ImageScaleToMaxDimension",+ "inputs": {+ "image": [+ "8",+ 0+ ],+ "largest_size": 512,+ "upscale_method": "area"+ },+ "_meta": {+ "title": "Shrink for the describer"+ }+ },+ "10": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "Describer: Qwen3-VL 8B"+ }+ },+ "11": {+ "class_type": "TextGenerate",+ "inputs": {+ "clip": [+ "10",+ 0+ ],+ "image": [+ "9",+ 0+ ],+ "prompt": "These are frames from one video clip, in time order, two per second. Describe how things move.",+ "max_length": 500,+ "sampling_mode": "off",+ "thinking": false,+ "use_default_template": true,+ "mtp": "off"+ },+ "_meta": {+ "title": "Describe the motion"+ }+ },+ "12": {+ "class_type": "StringReplace",+ "inputs": {+ "string": "{scene}",+ "find": "{scene}",+ "replace": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Reshoot prompt"+ }+ },+ "13": {+ "class_type": "RemakeConditioning",+ "inputs": {+ "clip": [+ "3",+ 0+ ],+ "vae": [+ "4",+ 0+ ],+ "audio_vae": [+ "5",+ 0+ ],+ "source": [+ "6",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "prompt": [+ "12",+ 0+ ],+ "ref_1": [+ "7",+ 0+ ],+ "pins": "0",+ "frames": 124,+ "short_edge": 480+ },+ "_meta": {+ "title": "Remake conditioning"+ }+ },+ "14": {+ "class_type": "RemakeNoise",+ "inputs": {+ "positive": [+ "13",+ 0+ ],+ "seed": 0+ },+ "_meta": {+ "title": "Remake noise"+ }+ },+ "15": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "2",+ 0+ ],+ "conditioning": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Guider"+ }+ },+ "16": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "euler"+ },+ "_meta": {+ "title": "Sampler"+ }+ },+ "17": {+ "class_type": "ManualSigmas",+ "inputs": {+ "sigmas": "1.0, 0.983607, 0.96, 0.923077, 0.857143, 0.705882, 0.0"+ },+ "_meta": {+ "title": "Steps"+ }+ },+ "18": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "14",+ 0+ ],+ "guider": [+ "15",+ 0+ ],+ "sampler": [+ "16",+ 0+ ],+ "sigmas": [+ "17",+ 0+ ],+ "latent_image": [+ "13",+ 1+ ]+ },+ "_meta": {+ "title": "Render"+ }+ },+ "19": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "18",+ 0+ ],+ "vae": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "20": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "19",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "frame_rate": 24,+ "loop_count": 0,+ "filename_prefix": "fuobe/video-reshoot-edit-h3",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 16,+ "save_metadata": false,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true+ },+ "_meta": {+ "title": "Result with the clip's soundtrack"+ }+ }+}diff --git a/workflows/comfyui/video-reshoot-swap-h3.json b/workflows/comfyui/video-reshoot-swap-h3.jsonnew file mode 100644index 00000000..8821699c--- /dev/null+++ b/workflows/comfyui/video-reshoot-swap-h3.json@@ -0,0 +1,310 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "viggle_remake_swap_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Reshoot model (swap)"+ }+ },+ "2": {+ "class_type": "RemakeKeyframeUntil",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "keyframe_until": 0.9+ },+ "_meta": {+ "title": "Keyframe until"+ }+ },+ "3": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "H3 text encoder"+ }+ },+ "4": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 Video VAE"+ }+ },+ "5": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 Audio VAE"+ }+ },+ "6": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": 24,+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": 124,+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "None"+ },+ "_meta": {+ "title": "Source part"+ }+ },+ "7": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "example.png"+ },+ "_meta": {+ "title": "Painted first frame"+ }+ },+ "8": {+ "class_type": "VHS_SelectEveryNthImage",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "select_every_nth": 12,+ "skip_first_images": 0+ },+ "_meta": {+ "title": "Two frames per second"+ }+ },+ "9": {+ "class_type": "ImageScaleToMaxDimension",+ "inputs": {+ "image": [+ "8",+ 0+ ],+ "largest_size": 512,+ "upscale_method": "area"+ },+ "_meta": {+ "title": "Shrink for the describer"+ }+ },+ "10": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "Describer: Qwen3-VL 8B"+ }+ },+ "11": {+ "class_type": "TextGenerate",+ "inputs": {+ "clip": [+ "10",+ 0+ ],+ "image": [+ "9",+ 0+ ],+ "prompt": "These are frames from one video clip, in time order, two per second. Describe how things move.",+ "max_length": 500,+ "sampling_mode": "off",+ "thinking": false,+ "use_default_template": true,+ "mtp": "off"+ },+ "_meta": {+ "title": "Describe the motion"+ }+ },+ "12": {+ "class_type": "StringReplace",+ "inputs": {+ "string": "{scene}",+ "find": "{scene}",+ "replace": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Reshoot prompt"+ }+ },+ "13": {+ "class_type": "RemakeConditioning",+ "inputs": {+ "clip": [+ "3",+ 0+ ],+ "vae": [+ "4",+ 0+ ],+ "audio_vae": [+ "5",+ 0+ ],+ "source": [+ "6",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "prompt": [+ "12",+ 0+ ],+ "ref_1": [+ "7",+ 0+ ],+ "pins": "0",+ "frames": 124,+ "short_edge": 480+ },+ "_meta": {+ "title": "Remake conditioning"+ }+ },+ "14": {+ "class_type": "RemakeNoise",+ "inputs": {+ "positive": [+ "13",+ 0+ ],+ "seed": 0+ },+ "_meta": {+ "title": "Remake noise"+ }+ },+ "15": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "2",+ 0+ ],+ "conditioning": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Guider"+ }+ },+ "16": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "euler"+ },+ "_meta": {+ "title": "Sampler"+ }+ },+ "17": {+ "class_type": "ManualSigmas",+ "inputs": {+ "sigmas": "1.0, 0.990476, 0.965243, 0.923077, 0.8, 0.631579, 0.0"+ },+ "_meta": {+ "title": "Steps"+ }+ },+ "18": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "14",+ 0+ ],+ "guider": [+ "15",+ 0+ ],+ "sampler": [+ "16",+ 0+ ],+ "sigmas": [+ "17",+ 0+ ],+ "latent_image": [+ "13",+ 1+ ]+ },+ "_meta": {+ "title": "Render"+ }+ },+ "19": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "18",+ 0+ ],+ "vae": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "20": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "19",+ 0+ ],+ "audio": [+ "6",+ 2+ ],+ "frame_rate": 24,+ "loop_count": 0,+ "filename_prefix": "fuobe/video-reshoot-swap-h3",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 16,+ "save_metadata": false,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true+ },+ "_meta": {+ "title": "Result with the clip's soundtrack"+ }+ }+}