Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

ComfyUI: the mask composite lays the regenerate over the rows its finish keeps at 1080p and 4K

Claudeba040a8a3c77
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index c2048ff1..58a45a6d 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -157,7 +157,7 @@ export const BINDING_KEYS = new Set([
// Open-H3 Regenerate (n7-3): the pack's output size and draft size (its combo strings) and the refine's start noise
'resolution', 'draftSize', 'startSigma',
// Character swap in 2K (n7-4): the mask composite's window starts, the two layers' places and the mask's soft edge
- 'takeStart', 'maskStart', 'takeX', 'takeY', 'regionWidth', 'regionHeight', 'regionX', 'regionY', 'feather',
+ 'takeStart', 'maskStart', 'takeX', 'takeY', 'regionWidth', 'regionHeight', 'regenWidth', 'regenHeight', 'regenX', 'regenY', 'trimX', 'trimY', 'feather',
// Clean up voice (ComfyUI-RE-USE): the RE-USE file, the rate it runs at, room tone, level and the music & effects bed's level
'reuseModel', 'rate', 'roomToneDb', 'level', 'bedDb',
// Blockout to film: a near = dark depth pass (Blender's mist) inverted before VACE reads it
diff --git a/scripts/comfy/hand-built/video-composite-mask.json b/scripts/comfy/hand-built/video-composite-mask.json
index 9495031b..962b9cf2 100644
--- a/scripts/comfy/hand-built/video-composite-mask.json
+++ b/scripts/comfy/hand-built/video-composite-mask.json
@@ -91,22 +91,27 @@
},
"regen_scaled": {
"class_type": "ImageScale",
- "inputs": { "image": ["regen_parts", 0], "upscale_method": "lanczos", "width": 320, "height": 180, "crop": "disabled" },
+ "inputs": { "image": ["regen_parts", 0], "upscale_method": "lanczos", "width": 316, "height": 179, "crop": "disabled" },
"_meta": { "title": "Regenerate to its place in the footage" }
},
"regen_mask_img": {
"class_type": "ImageScale",
- "inputs": { "image": ["mask_parts", 0], "upscale_method": "bilinear", "width": 320, "height": 180, "crop": "center" },
- "_meta": { "title": "Mask to the regenerate's place (the centre the regenerate kept)" }
+ "inputs": { "image": ["mask_parts", 0], "upscale_method": "bilinear", "width": 316, "height": 180, "crop": "center" },
+ "_meta": { "title": "Mask to the region the regenerate's draft kept (its centre)" }
},
"regen_mask": {
"class_type": "ImageToMask",
"inputs": { "image": ["regen_mask_img", 0], "channel": "red" },
"_meta": { "title": "Mask (red channel)" }
},
+ "regen_trim": {
+ "class_type": "CropMask",
+ "inputs": { "mask": ["regen_mask", 0], "x": 0, "y": 0, "width": 316, "height": 179 },
+ "_meta": { "title": "Mask to the rows the regenerate kept (1080 of 1088, 2160 of 2176)" }
+ },
"regen_grow": {
"class_type": "GrowMask",
- "inputs": { "mask": ["regen_mask", 0], "expand": 8, "tapered_corners": true },
+ "inputs": { "mask": ["regen_trim", 0], "expand": 8, "tapered_corners": true },
"_meta": { "title": "Grow the mask" }
},
"regen_feather": {
@@ -116,7 +121,7 @@
},
"composite": {
"class_type": "ImageCompositeMasked",
- "inputs": { "destination": ["base", 0], "source": ["regen_scaled", 0], "x": 0, "y": 0, "resize_source": false, "mask": ["regen_feather", 0] },
+ "inputs": { "destination": ["base", 0], "source": ["regen_scaled", 0], "x": 2, "y": 0, "resize_source": false, "mask": ["regen_feather", 0] },
"_meta": { "title": "Only your character from the regenerate, over the footage" }
},
"create": {
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 065c20a9..b64335c8 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -4633,14 +4633,16 @@ export const SPEC = [
duration: [b('source_slice', 'duration'), b('regen_slice', 'duration'), b('take_slice', 'duration'), b('mask_slice', 'duration')],
canvasWidth: [b('take_scaled', 'width'), b('take_mask_img', 'width')], canvasHeight: [b('take_scaled', 'height'), b('take_mask_img', 'height')],
takeX: [b('base', 'x')], takeY: [b('base', 'y')],
- regionWidth: [b('regen_scaled', 'width'), b('regen_mask_img', 'width')], regionHeight: [b('regen_scaled', 'height'), b('regen_mask_img', 'height')],
- regionX: [b('composite', 'x')], regionY: [b('composite', 'y')],
+ regionWidth: [b('regen_mask_img', 'width')], regionHeight: [b('regen_mask_img', 'height')],
+ regenWidth: [b('regen_scaled', 'width'), b('regen_trim', 'width')], regenHeight: [b('regen_scaled', 'height'), b('regen_trim', 'height')],
+ trimX: [b('regen_trim', 'x')], trimY: [b('regen_trim', 'y')],
+ regenX: [b('composite', 'x')], regenY: [b('composite', 'y')],
maskGrow: [b('take_grow', 'expand'), b('regen_grow', 'expand')],
feather: [b('take_feather', 'left'), b('take_feather', 'top'), b('take_feather', 'right'), b('take_feather', 'bottom'), b('regen_feather', 'left'), b('regen_feather', 'top'), b('regen_feather', 'right'), b('regen_feather', 'bottom')],
filenamePrefix: [b('save', 'filename_prefix')],
},
outputs: [{ node: 'save', kind: 'video' }],
- defaults: { startTime: 0, windowStart: 0, takeStart: 0, maskStart: 0, duration: 3, canvasWidth: 320, canvasHeight: 180, takeX: 0, takeY: 0, regionWidth: 316, regionHeight: 180, regionX: 2, regionY: 0, maskGrow: 8, feather: 12 },
+ defaults: { startTime: 0, windowStart: 0, takeStart: 0, maskStart: 0, duration: 3, canvasWidth: 320, canvasHeight: 180, takeX: 0, takeY: 0, regionWidth: 316, regionHeight: 180, regenWidth: 316, regenHeight: 179, trimX: 0, trimY: 0, regenX: 2, regenY: 0, maskGrow: 8, feather: 12 },
vramGb: 0,
license: 'n/a (no model; ComfyUI core)',
notes:
@@ -4648,7 +4650,8 @@ export const SPEC = [
'video = the footage at 24 fps and the film\'s size (the studio\'s 24 fps copy, or Genjutsu\'s part fitted by video-fit-clip), video3 = the 768p swap (H3\'s canvas), video2 = its regenerate, mask = the approved whole-shot mask from video-mask-h3-relay (H3\'s canvas, white = the person). ' +
'Each LoadVideo goes through a Video Slice of the same duration (one composite window of at most 3 s, because every stream is decoded as float32, about 25 MB a frame at 1080p) from its own start (startTime, takeStart, windowStart, maskStart). ' +
'Two layers, each through the mask scaled to it, grown (maskGrow) and feathered (feather): first the swap stretched back over the region of the footage its canvas covers (canvasWidth x canvasHeight at takeX, takeY), ' +
- 'then the regenerate over the centre region its 16:9 / 9:16 draft kept (regionWidth x regionHeight at regionX, regionY; the mask is centre-cropped to it), so a character reaching past that region keeps the 768p swap there rather than the original person. ' +
+ 'then the regenerate over the centre region its 16:9 / 9:16 draft kept (regionWidth x regionHeight; the mask is centre-cropped to it), less the rows its finish trims at 1080p and 4K (1080 of 1088, 2160 of 2176; the columns for a tall clip): ' +
+ 'the regenerate is laid over regenWidth x regenHeight at regenX, regenY and the mask cut to the same rows (CropMask at trimX, trimY), so a character reaching past that region keeps the 768p swap there rather than the original person. ' +
'Fuobe works the regions out from the film\'s size and H3\'s canvas. CreateVideo takes the footage\'s own sound and rate (a silent clip stays silent). ' +
'Run end to end on ComfyUI 0.41.0 (CPU): a 320x180 24 fps clip with sound, a 224x128 swap, a 384x216 regenerate and a 224x128 box mask, a 1.5 s window from 0.5 s: 36 frames and 1.5 s of AAC, the regenerate only inside the feathered box; the same with a silent clip gives video only.',
},
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 267e6846..f68c61aa 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -654,10 +654,10 @@
"at": "2026-10-27T11:01:36.134Z"
},
"video-composite-mask": {
- "sha256": "60029601ea38976c1095bb50c56f0f11c7a86e14aec844f0c1ed400205dd2522",
+ "sha256": "c86a6a0dcd25f45e566cbaff79574bc03d5aaf7cdbd3d976d72bc850a3c85de5",
"validated": true,
"error": null,
- "at": "2026-11-01T20:08:39.633Z"
+ "at": "2026-11-01T23:57:37.751Z"
},
"video-concat-2": {
"sha256": "3d08966f5a3c2da662dc112df537ad4245bcd5dbb90e0451a0beb5c54d8db581",
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 22169773..3c5f69fc 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -21955,32 +21955,56 @@
}
],
"regionWidth": [
+ {
+ "node": "regen_mask_img",
+ "input": "width"
+ }
+ ],
+ "regionHeight": [
+ {
+ "node": "regen_mask_img",
+ "input": "height"
+ }
+ ],
+ "regenWidth": [
{
"node": "regen_scaled",
"input": "width"
},
{
- "node": "regen_mask_img",
+ "node": "regen_trim",
"input": "width"
}
],
- "regionHeight": [
+ "regenHeight": [
{
"node": "regen_scaled",
"input": "height"
},
{
- "node": "regen_mask_img",
+ "node": "regen_trim",
"input": "height"
}
],
- "regionX": [
+ "trimX": [
+ {
+ "node": "regen_trim",
+ "input": "x"
+ }
+ ],
+ "trimY": [
+ {
+ "node": "regen_trim",
+ "input": "y"
+ }
+ ],
+ "regenX": [
{
"node": "composite",
"input": "x"
}
],
- "regionY": [
+ "regenY": [
{
"node": "composite",
"input": "y"
@@ -22056,8 +22080,12 @@
"takeY": 0,
"regionWidth": 316,
"regionHeight": 180,
- "regionX": 2,
- "regionY": 0,
+ "regenWidth": 316,
+ "regenHeight": 179,
+ "trimX": 0,
+ "trimY": 0,
+ "regenX": 2,
+ "regenY": 0,
"feather": 12
},
"limits": {},
@@ -22066,7 +22094,7 @@
"vramGb": 0,
"license": "n/a (no model; ComfyUI core)",
"validated": true,
- "notes": "Character Swap Studio's Sharpen and Genjutsu's Character swap at 1080p / 2K / 4K on your GPU: a swap was redrawn by video-regenerate-h3, and only the character goes back over the footage, so the background and the sound stay as filmed. video = the footage at 24 fps and the film's size (the studio's 24 fps copy, or Genjutsu's part fitted by video-fit-clip), video3 = the 768p swap (H3's canvas), video2 = its regenerate, mask = the approved whole-shot mask from video-mask-h3-relay (H3's canvas, white = the person). Each LoadVideo goes through a Video Slice of the same duration (one composite window of at most 3 s, because every stream is decoded as float32, about 25 MB a frame at 1080p) from its own start (startTime, takeStart, windowStart, maskStart). Two layers, each through the mask scaled to it, grown (maskGrow) and feathered (feather): first the swap stretched back over the region of the footage its canvas covers (canvasWidth x canvasHeight at takeX, takeY), then the regenerate over the centre region its 16:9 / 9:16 draft kept (regionWidth x regionHeight at regionX, regionY; the mask is centre-cropped to it), so a character reaching past that region keeps the 768p swap there rather than the original person. Fuobe works the regions out from the film's size and H3's canvas. CreateVideo takes the footage's own sound and rate (a silent clip stays silent). Run end to end on ComfyUI 0.41.0 (CPU): a 320x180 24 fps clip with sound, a 224x128 swap, a 384x216 regenerate and a 224x128 box mask, a 1.5 s window from 0.5 s: 36 frames and 1.5 s of AAC, the regenerate only inside the feathered box; the same with a silent clip gives video only."
+ "notes": "Character Swap Studio's Sharpen and Genjutsu's Character swap at 1080p / 2K / 4K on your GPU: a swap was redrawn by video-regenerate-h3, and only the character goes back over the footage, so the background and the sound stay as filmed. video = the footage at 24 fps and the film's size (the studio's 24 fps copy, or Genjutsu's part fitted by video-fit-clip), video3 = the 768p swap (H3's canvas), video2 = its regenerate, mask = the approved whole-shot mask from video-mask-h3-relay (H3's canvas, white = the person). Each LoadVideo goes through a Video Slice of the same duration (one composite window of at most 3 s, because every stream is decoded as float32, about 25 MB a frame at 1080p) from its own start (startTime, takeStart, windowStart, maskStart). Two layers, each through the mask scaled to it, grown (maskGrow) and feathered (feather): first the swap stretched back over the region of the footage its canvas covers (canvasWidth x canvasHeight at takeX, takeY), then the regenerate over the centre region its 16:9 / 9:16 draft kept (regionWidth x regionHeight; the mask is centre-cropped to it), less the rows its finish trims at 1080p and 4K (1080 of 1088, 2160 of 2176; the columns for a tall clip): the regenerate is laid over regenWidth x regenHeight at regenX, regenY and the mask cut to the same rows (CropMask at trimX, trimY), so a character reaching past that region keeps the 768p swap there rather than the original person. Fuobe works the regions out from the film's size and H3's canvas. CreateVideo takes the footage's own sound and rate (a silent clip stays silent). Run end to end on ComfyUI 0.41.0 (CPU): a 320x180 24 fps clip with sound, a 224x128 swap, a 384x216 regenerate and a 224x128 box mask, a 1.5 s window from 0.5 s: 36 frames and 1.5 s of AAC, the regenerate only inside the feathered box; the same with a silent clip gives video only."
},
{
"id": "video-sdr-to-hdr-exr",
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 3051f7ae..8a49c24e 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -4088,6 +4088,93 @@
"essentials_category": "Video Tools",
"has_intermediate_output": false
},
+ "CropMask": {
+ "input": {
+ "required": {
+ "mask": [
+ "MASK",
+ {}
+ ],
+ "x": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ],
+ "y": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ],
+ "width": [
+ "INT",
+ {
+ "default": 512,
+ "min": 1,
+ "max": 16384,
+ "step": 1
+ }
+ ],
+ "height": [
+ "INT",
+ {
+ "default": 512,
+ "min": 1,
+ "max": 16384,
+ "step": 1
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "mask",
+ "x",
+ "y",
+ "width",
+ "height"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "MASK"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "CropMask",
+ "display_name": "Crop Mask",
+ "description": "",
+ "python_module": "comfy_extras.nodes_mask",
+ "category": "image/mask",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "cut mask",
+ "extract mask region",
+ "mask slice"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
"CustomCombo": {
"input": {
"required": {
@@ -20923,7 +21010,7 @@
"default": 0.7,
"min": 0.01,
"max": 2,
- "step": 1e-06
+ "step": 0.000001
}
],
"top_k": [
@@ -25060,7 +25147,7 @@
"default": 0.5,
"min": 0,
"max": 1,
- "step": 1e-09
+ "step": 1e-9
}
],
"fy": [
@@ -25070,7 +25157,7 @@
"default": 0.5,
"min": 0,
"max": 1,
- "step": 1e-09
+ "step": 1e-9
}
],
"cx": [
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index e07408eb..dbdc6ba3 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,6 +1,6 @@
{
"v": 1,
- "hash": "8d186fe1771afb5f2f06ea02ece116f35ba8a7723e73618aa1d145655a7581e4",
+ "hash": "0f84b626bf0ee09b7b89511e0759c1c544d69e3c28b0de82f1b55ef87f7a0c81",
"comfyui": {"min":"0.41.0","testedCommit":"fc04da91"},
"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],
"sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","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","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","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","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
@@ -391,7 +391,7 @@
"video-character-swap-h3": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","ImageFromBatch","ImageScale","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3SigmaShift","ModelAttentionBackend","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveVideo","SelectCLIPDevice","UNETLoader","VAELoader","Video Slice"],"packs":{"h3_character_swap":["H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/h3_character_swap_v1.5.safetensors","loras/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":["loras/h3_character_swap_pro4500_1000.safetensors"],"vramGb":24,"isolated":false,"firstRun":[]},
"video-character-swap-h3-relay": {"core":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EndLoop","GetImageSize","ImageFromBatch","KSamplerSelect","LTXVSeparateAVLatent","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","RandomNoise","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SamplerCustomAdvanced","SaveVideo","SelectCLIPDevice","StartLoop","UNETLoader","VAEDecode","VAEEncode","VAELoader","Video Slice"],"packs":{"h3-relay":["H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/h3_character_swap_v1.5.safetensors","loras/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":["loras/h3_character_swap_pro4500_1000.safetensors"],"vramGb":24,"isolated":false,"firstRun":[]},
"video-character-swap-h3-segment": {"core":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EndLoop","GetImageSize","GetVideoComponents","ImageFromBatch","ImageScale","KSamplerSelect","LTXVSeparateAVLatent","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","RandomNoise","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SamplerCustomAdvanced","SaveVideo","SelectCLIPDevice","StartLoop","UNETLoader","VAEDecode","VAEEncode","VAELoader","Video Slice"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_VideoCombine"],"h3-relay":["H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/h3_character_swap_v1.5.safetensors","loras/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":["loras/h3_character_swap_pro4500_1000.safetensors"],"vramGb":24,"isolated":false,"firstRun":[]},
- "video-composite-mask": {"core":["CreateVideo","FeatherMask","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageScale","ImageToMask","LoadVideo","SaveVideo","Video Slice"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
+ "video-composite-mask": {"core":["CreateVideo","CropMask","FeatherMask","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageScale","ImageToMask","LoadVideo","SaveVideo","Video Slice"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"video-concat-2": {"core":["BatchImagesNode","CreateVideo","GetVideoComponents","ImageScale","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"video-concat-3": {"core":["BatchImagesNode","CreateVideo","GetVideoComponents","ImageScale","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"video-concat-4": {"core":["BatchImagesNode","CreateVideo","GetVideoComponents","ImageScale","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
diff --git a/workflows/comfyui/video-composite-mask.json b/workflows/comfyui/video-composite-mask.json
index a67f582b..c910b343 100644
--- a/workflows/comfyui/video-composite-mask.json
+++ b/workflows/comfyui/video-composite-mask.json
@@ -33,7 +33,7 @@
"regen_scaled",
0
],
- "x": 0,
+ "x": 2,
"y": 0,
"resize_source": false,
"mask": [
@@ -133,7 +133,7 @@
"class_type": "GrowMask",
"inputs": {
"mask": [
- "regen_mask",
+ "regen_trim",
0
],
"expand": 8,
@@ -164,12 +164,12 @@
0
],
"upscale_method": "bilinear",
- "width": 320,
+ "width": 316,
"height": 180,
"crop": "center"
},
"_meta": {
- "title": "Mask to the regenerate's place (the centre the regenerate kept)"
+ "title": "Mask to the region the regenerate's draft kept (its centre)"
}
},
"regen_parts": {
@@ -192,8 +192,8 @@
0
],
"upscale_method": "lanczos",
- "width": 320,
- "height": 180,
+ "width": 316,
+ "height": 179,
"crop": "disabled"
},
"_meta": {
@@ -215,6 +215,22 @@
"title": "This window of the regenerate"
}
},
+ "regen_trim": {
+ "class_type": "CropMask",
+ "inputs": {
+ "mask": [
+ "regen_mask",
+ 0
+ ],
+ "x": 0,
+ "y": 0,
+ "width": 316,
+ "height": 179
+ },
+ "_meta": {
+ "title": "Mask to the rows the regenerate kept (1080 of 1088, 2160 of 2176)"
+ }
+ },
"save": {
"class_type": "SaveVideo",
"inputs": {