Skip to content

MiniMax-H3 latent upscaler model issue RuntimeError: shape mismatch: value tensor of shape [450, 96] cannot be broadcast to indexing result of shape [1058, 96] is:issue #17537

Closed

Description

@drepou

Custom Node Testing

Expected Behavior

i try to using the new MiniMax-H3 latent upscaler model- #17412
pushed with #17412
using
this workflow https://huggingface.co/AiNinja94/MiniMax-H3/blob/main/MiniMax%2BPika-H3-Flex/FL2VA-Minimax-Pika-2stage.json

picture for testing 1000px1000px upscale x2 video size 16/9 0.4mp 864488

Node threw an error during execution i try many resolutions and picture ratio never work if upscale factor is not =1 it's a workflow bug or a new MiniMax-H3 latent upscaler issue ? i didn't find any other workflow reference in docs.

Actual Behavior

workflow crash

Steps to Reproduce

use this workflow https://huggingface.co/AiNinja94/MiniMax-H3/blob/main/MiniMax%2BPika-H3-Flex/FL2VA-Minimax-Pika-2stage.json set upscale factor=2

input

Image

picture for testing 1000px1000px upscale x2 video size 16/9 0.4mp 864488

Debug Logs

# ComfyUI Error Report
## Error Details
- **Node ID:** 213
- **Node Type:** SamplerCustomAdvanced
- **Exception Type:** RuntimeError
- **Exception Message:** RuntimeError: shape mismatch: value tensor of shape [450, 96] cannot be broadcast to indexing result of shape [1058, 96]

## Stack Trace

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 556, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 353, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 327, in _async_map_node_over_list
    await process_inputs(input_dict, i)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 315, in process_inputs
    result = f(**inputs)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy_api\latest\_io.py", line 2219, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy_extras\nodes_custom_sampler.py", line 1055, in execute
    samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1336, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 114, in execute
    return self.wrappers[self.idx](self, *args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\custom_nodes\comfyui-kjnodes\nodes\preview_override_node.py", line 957, in __call__
    return executor(noise, latent_image, sampler, sigmas, denoise_mask, new_callback, disable_pbar, seed, latent_shapes=latent_shapes)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 106, in __call__
    return new_executor.execute(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1263, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1238, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1005, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\torch\utils\_contextlib.py", line 124, in decorate_context
    return func(*args, **kwargs)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\k_diffusion\sampling.py", line 1619, in sample_er_sde
    denoised = model(x, sigmas[i] * s_in, **extra_args)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 640, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1208, in __call__
    return self.outer_predict_noise(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1215, in outer_predict_noise
    ).execute(x, timestep, model_options, seed)
      ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1218, in predict_noise
    return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 620, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 211, in calc_cond_batch
    return _calc_cond_batch_outer(model, conds, x_in, timestep, model_options)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 219, in _calc_cond_batch_outer
    return executor.execute(model, conds, x_in, timestep, model_options)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 335, in _calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\model_base.py", line 213, in apply_model
    return comfy.patcher_extension.WrapperExecutor.new_class_executor(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ...<2 lines>...
        comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.APPLY_MODEL, transformer_options)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ).execute(x, t, c_concat, c_crossattn, control, transformer_options, **kwargs)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\model_base.py", line 257, in _apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\torch\nn\modules\module.py", line 1778, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\torch\nn\modules\module.py", line 1789, in _call_impl
    return forward_call(*args, **kwargs)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\ldm\minimax\model.py", line 623, in forward
    graph_out = comfy.patcher_extension.WrapperExecutor.new_class_executor(
    ...<2 lines>...
        comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.DIFFUSION_MODEL, transformer_options)
    ).execute(x, timestep, context, transformer_options, minimax_payload=minimax_payload,
              denoise_mask=denoise_mask, audio_denoise_mask=audio_denoise_mask, **kwargs)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\ldm\minimax\model.py", line 741, in _forward
    h = self._embed_and_pack(video_x, audio_x, context, layout, payload, transformer_options)

  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\ldm\minimax\model.py", line 576, in _embed_and_pack
    all_video_rows[~img_update] = cond_video_rows
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^


## System Information
- **ComfyUI Version:** 0.44.0
- **Arguments:** ComfyUI\main.py --feature-flag show_signin_button=true --feature-flag enable_telemetry=true --enable-assets --enable-manager --extra-model-paths-config C:\Users\drepou\AppData\Roaming\Comfy Desktop\instance-model-paths\inst-1789932934398.yaml --input-directory C:\Users\drepou\Documents\ComfyUI\input --output-directory H:\output
- **OS:** win32
- **Python Version:** 3.13.12 (main, Feb 12 2026, 00:38:53) [MSC v.1944 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.12.0+rocm7.14.0
## Devices

- **Name:** cuda:0 AMD Radeon RX 9070 XT : native
  - **Type:** cuda
  - **VRAM Total:** 17095983104
  - **VRAM Free:** 16920805376
  - **Torch VRAM Total:** 2097152
  - **Torch VRAM Free:** 2097152

## Logs


2026-11-04T21:25:33.545209 - �[32m[INFO]�[0m Checkpoint files will always be loaded safely.
2026-11-04T21:25:34.049500 - �[32m[INFO]�[0m Total VRAM 16304 MB, total RAM 32691 MB
2026-11-04T21:25:34.051616 - �[32m[INFO]�[0m pytorch version: 2.12.0+rocm7.14.0
2026-11-04T21:25:34.052261 - �[32m[INFO]�[0m Set: torch.backends.cudnn.enabled = False for better AMD performance.
2026-11-04T21:25:34.052337 - �[32m[INFO]�[0m AMD arch: gfx1201
2026-11-04T21:25:34.052397 - �[32m[INFO]�[0m ROCm version: (7, 14)
2026-11-04T21:25:34.207497 - �[32m[INFO]�[0m Set vram state to: NORMAL_VRAM
2026-11-04T21:25:34.207711 - �[32m[INFO]�[0m Device: cuda:0 AMD Radeon RX 9070 XT : native
2026-11-04T21:25:34.222331 - �[32m[INFO]�[0m Using async weight offloading with 2 streams
2026-11-04T21:25:34.224883 - �[32m[INFO]�[0m Enabled pinned memory 13076.0
2026-11-04T21:25:34.310499 - �[32m[INFO]�[0m Using pytorch attention
2026-11-04T21:25:47.348289 - �[32m[INFO]�[0m aimdo: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks
2026-11-04T21:25:47.351122 - �[32m[INFO]�[0m aimdo: src-win/shmem-detect.c:76:INFO:comfy-aimdo DXCore adapter match: AMD Radeon RX 9070 XT runtime_luid=00000000:00010e3b
2026-11-04T21:25:47.354098 - �[32m[INFO]�[0m aimdo: src-win/shmem-detect.c:112:INFO:comfy-aimdo WDDM adapter match: AMD Radeon RX 9070 XT runtime_luid=00000000:00010e3b dxgi_luid=00000000:00010e3b
2026-11-04T21:25:47.354198 - �[32m[INFO]�[0m aimdo: src/control.c:284:INFO:comfy-aimdo inited for GPU: AMD Radeon RX 9070 XT (VRAM: 16304 MB)
2026-11-04T21:25:47.354286 - �[32m[INFO]�[0m DynamicVRAM support detected and enabled
2026-11-04T21:25:47.354348 - �[32m[INFO]�[0m Python version: 3.13.12 (main, Feb 12 2026, 00:38:53) [MSC v.1944 64 bit (AMD64)]
2026-11-04T21:25:47.354399 - �[32m[INFO]�[0m ComfyUI version: 0.44.0
2026-11-04T21:25:47.355465 - �[32m[INFO]�[0m comfy-aimdo version: 0.6.0
2026-11-04T21:25:47.356713 - �[32m[INFO]�[0m comfy-kitchen version: 0.2.40
2026-11-04T21:25:47.362538 - �[32m[INFO]�[0m comfyui-frontend-package version: 1.57.6
2026-11-04T21:25:47.362612 - �[32m[INFO]�[0m comfyui-workflow-templates version: 0.11.101
2026-11-04T21:25:47.362663 - �[32m[INFO]�[0m comfyui-embedded-docs version: 0.5.16
2026-11-04T21:25:47.362710 - �[32m[INFO]�[0m comfy-aimdo version: 0.6.0
2026-11-04T21:25:47.362754 - �[32m[INFO]�[0m comfy-kitchen version: 0.2.40
2026-11-04T21:25:47.365992 - �[32m[INFO]�[0m [Prompt Server] web root: C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\comfyui_frontend_package\static
2026-11-04T21:25:47.367085 - �[32m[INFO]�[0m [assets-event] assets.enabled hashing_enabled=false
2026-11-04T21:25:47.367191 - �[32m[INFO]�[0m [START] ComfyUI-Manager
2026-11-04T21:25:47.966947 - [ComfyUI-Manager] Using GitPython backend2026-11-04T21:25:47.966996 - 
2026-11-04T21:25:48.032458 - �[32m[INFO]�[0m [ComfyUI-Manager] network_mode: public
2026-11-04T21:25:48.061526 - �[1m�[33m[WARNING]�[0m [ComfyUI-Manager] The matrix sharing feature has been disabled because the `matrix-nio` dependency is not installed.
	To use this feature, please run the following command:
	C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Scripts\python.exe -m pip install matrix-nio

2026-11-04T21:25:50.119286 - �[32m[INFO]�[0m No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2026-11-04T21:25:54.143973 - [Crystools �[0;32mINFO�[0m] Crystools version: 1.27.4
2026-11-04T21:25:54.214524 - [Crystools �[0;32mINFO�[0m] Platform release: 10
2026-11-04T21:25:54.214607 - [Crystools �[0;32mINFO�[0m] JETSON: Not detected.
2026-11-04T21:25:54.216811 - [Crystools �[0;32mINFO�[0m] CPU: AMD Ryzen 7 5700X 8-Core Processor - Arch: AMD64 - OS: Windows 10
2026-11-04T21:25:54.475788 - [Crystools �[0;32mINFO�[0m] pynvml (NVIDIA) initialized.
2026-11-04T21:25:54.475955 - [Crystools �[0;32mINFO�[0m] GPU/s:
2026-11-04T21:25:54.476043 - [Crystools �[0;32mINFO�[0m] 0) AMD Radeon RX 9070 XT
2026-11-04T21:25:54.476100 - [Crystools �[0;32mINFO�[0m] NVIDIA Driver: AMD Driver: Unknown

2026-11-04T21:33:12.325886 - �[32m[INFO]�[0m Model storage policy: fast_disk=False paths=['H:\\models\\vae\\minimax_h3_video_vae_int8_convrot.safetensors']
2026-11-04T21:33:12.326022 - �[32m[INFO]�[0m Found quantization metadata version 1
2026-11-04T21:33:12.690747 - �[32m[INFO]�[0m VAE load device: cuda:0, offload device: cpu, dtype: torch.float16
2026-11-04T21:33:12.721555 - �[32m[INFO]�[0m Found quantization metadata version 1
2026-11-04T21:33:12.722056 - �[32m[INFO]�[0m Using MixedPrecisionOps for text encoder
2026-11-04T21:33:13.101244 - �[32m[INFO]�[0m Model storage policy: fast_disk=True paths=['C:\\Users\\drepou\\ComfyUI-Shared\\models\\text_encoders\\qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors']
2026-11-04T21:33:17.281329 - �[32m[INFO]�[0m CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
2026-11-04T21:33:17.358092 - �[32m[INFO]�[0m Requested to load MiniMaxH3TEModel_
2026-11-04T21:33:17.573046 - �[32m[INFO]�[0m Model MiniMaxH3TEModel_ prepared for dynamic VRAM loading. 14956MB Staged. 0 patches attached. Force pre-loaded 410 weights: 4572 KB.
2026-11-04T21:33:44.081229 - �[32m[INFO]�[0m Requested to load MiniMaxH3VideoVAE
2026-11-04T21:33:44.186431 - �[32m[INFO]�[0m Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 2677MB Staged. 0 patches attached. Force pre-loaded 128 weights: 691 KB.
2026-11-04T21:33:46.133917 - �[32m[INFO]�[0m Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 2677MB Staged. 0 patches attached. Force pre-loaded 128 weights: 691 KB.
2026-11-04T21:33:46.674953 - �[32m[INFO]�[0m Found quantization metadata version 1
2026-11-04T21:33:46.675039 - �[32m[INFO]�[0m Detected mixed precision quantization
2026-11-04T21:33:46.675223 - �[32m[INFO]�[0m Using mixed precision operations
2026-11-04T21:33:46.675287 - �[32m[INFO]�[0m Native ops: convrot_w4a4, float8_e4m3fn, asym_w4a8_int8, float8_e5m2, int8_tensorwise, w6a8_int8 , emulated ops: mxfp8, nvfp4
2026-11-04T21:33:46.689938 - �[32m[INFO]�[0m model weight dtype torch.bfloat16, manual cast: torch.bfloat16
2026-11-04T21:33:46.692058 - �[32m[INFO]�[0m model_type FLOW_AV
2026-11-04T21:33:46.693089 - �[32m[INFO]�[0m Model storage policy: fast_disk=True paths=['C:\\Users\\drepou\\ComfyUI-Shared\\models\\diffusion_models\\minimax_h3_fl2va_pruned_int8_convrot.safetensors']
2026-11-04T21:33:47.611297 - �[32m[INFO]�[0m Requested to load MiniMaxH3
2026-11-04T21:33:47.612238 - �[32m[INFO]�[0m 0 models unloaded.
2026-11-04T21:33:47.717056 - �[32m[INFO]�[0m Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 208 patches attached. Force pre-loaded 210 weights: 1175 KB.
2026-11-04T21:35:12.495027 - 
100%|██████████| 6/6 [01:04<00:00, 10.82s/it]2026-11-04T21:35:12.495078 - 
2026-11-04T21:35:12.545514 - �[32m[INFO]�[0m Comfy model compiler graph breaks: 0, rogues: 0
2026-11-04T21:35:12.605899 - �[32m[INFO]�[0m Requested to load MiniMaxH3AudioVAE
2026-11-04T21:35:12.774883 - �[32m[INFO]�[0m Model MiniMaxH3AudioVAE prepared for dynamic VRAM loading. 576MB Staged. 0 patches attached. Force pre-loaded 401 weights: 539 KB.
2026-11-04T21:35:15.471073 - �[32m[INFO]�[0m Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 2677MB Staged. 0 patches attached. Force pre-loaded 128 weights: 691 KB.
2026-11-04T21:35:47.220963 - �[32m[INFO]�[0m Model storage policy: fast_disk=False paths=['H:\\models\\latent_upscale_models\\minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors']
2026-11-04T21:35:47.269017 - �[32m[INFO]�[0m Requested to load MiniMaxH3LatentUpscaler
2026-11-04T21:35:47.334467 - �[32m[INFO]�[0m Model MiniMaxH3LatentUpscaler prepared for dynamic VRAM loading. 658MB Staged. 0 patches attached. Force pre-loaded 150 weights: 202 KB.
2026-11-04T21:36:07.217349 - �[32m[INFO]�[0m Requested to load MiniMaxH3
2026-11-04T21:36:07.218819 - �[32m[INFO]�[0m 0 models unloaded.
2026-11-04T21:36:07.299739 - �[32m[INFO]�[0m Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 208 patches attached. Force pre-loaded 210 weights: 1175 KB.
2026-11-04T21:36:09.151338 - 
  0%|          | 0/3 [00:00<?, ?it/s,   Model Initializing ...  ]2026-11-04T21:36:09.151416 - 
2026-11-04T21:36:09.158827 - �[32m[INFO]�[0m Comfy model compiler graph breaks: 0, rogues: 0
2026-11-04T21:36:09.194579 - �[1m�[31m[ERROR]�[0m !!! Exception during processing !!! shape mismatch: value tensor of shape [450, 96] cannot be broadcast to indexing result of shape [1058, 96]
2026-11-04T21:36:09.226572 - �[1m�[31m[ERROR]�[0m Traceback (most recent call last):
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 556, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 353, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 327, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\execution.py", line 315, in process_inputs
    result = f(**inputs)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy_api\latest\_io.py", line 2219, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy_extras\nodes_custom_sampler.py", line 1055, in execute
    samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1336, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 114, in execute
    return self.wrappers[self.idx](self, *args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\custom_nodes\comfyui-kjnodes\nodes\preview_override_node.py", line 957, in __call__
    return executor(noise, latent_image, sampler, sigmas, denoise_mask, new_callback, disable_pbar, seed, latent_shapes=latent_shapes)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 106, in __call__
    return new_executor.execute(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1263, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1238, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1005, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\torch\utils\_contextlib.py", line 124, in decorate_context
    return func(*args, **kwargs)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\k_diffusion\sampling.py", line 1619, in sample_er_sde
    denoised = model(x, sigmas[i] * s_in, **extra_args)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 640, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1208, in __call__
    return self.outer_predict_noise(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1215, in outer_predict_noise
    ).execute(x, timestep, model_options, seed)
      ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 1218, in predict_noise
    return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 620, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 211, in calc_cond_batch
    return _calc_cond_batch_outer(model, conds, x_in, timestep, model_options)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 219, in _calc_cond_batch_outer
    return executor.execute(model, conds, x_in, timestep, model_options)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\samplers.py", line 335, in _calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\model_base.py", line 213, in apply_model
    return comfy.patcher_extension.WrapperExecutor.new_class_executor(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ...<2 lines>...
        comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.APPLY_MODEL, transformer_options)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ).execute(x, t, c_concat, c_crossattn, control, transformer_options, **kwargs)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\model_base.py", line 257, in _apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\torch\nn\modules\module.py", line 1778, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\.venv\Lib\site-packages\torch\nn\modules\module.py", line 1789, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\ldm\minimax\model.py", line 623, in forward
    graph_out = comfy.patcher_extension.WrapperExecutor.new_class_executor(
    ...<2 lines>...
        comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.DIFFUSION_MODEL, transformer_options)
    ).execute(x, timestep, context, transformer_options, minimax_payload=minimax_payload,
              denoise_mask=denoise_mask, audio_denoise_mask=audio_denoise_mask, **kwargs)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\ldm\minimax\model.py", line 741, in _forward
    h = self._embed_and_pack(video_x, audio_x, context, layout, payload, transformer_options)
  File "C:\Users\drepou\ComfyUI-Installs\minimax\ComfyUI\comfy\ldm\minimax\model.py", line 576, in _embed_and_pack
    all_video_rows[~img_update] = cond_video_rows
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^
RuntimeError: shape mismatch: value tensor of shape [450, 96] cannot be broadcast to indexing result of shape [1058, 96]

2026-11-04T21:36:09.231842 - �[32m[INFO]�[0m �[32mPrompt executed in 177.17 seconds�[0m
2026-11-04T21:36:09.609135 - �[32m[INFO]�[0m Seeder start (roots=('output',), phase=full)
2026-11-04T21:36:09.609874 - �[32m[INFO]�[0m [assets-event] seeder.scan_started phase=full root=output
2026-11-04T21:36:09.610013 - �[32m[INFO]�[0m Asset scan [output] directories: ['H:\\output']
2026-11-04T21:36:09.633900 - �[32m[INFO]�[0m Fast scan complete: 0.024s total (created=0, skipped=36, total_paths=36)
2026-11-04T21:36:09.712595 - �[32m[INFO]�[0m Scan(('output',), full) done 0.103s: created=0 enriched=0 skipped=36
2026-11-04T21:36:09.712793 - �[32m[INFO]�[0m [assets-event] seeder.scan_completed cpu_ms=0 created=0 dirs_listed_count=5 elapsed_ms=103 enrich_failed=0 enriched=0 files_statted_count=0 hash_failed=0 missing_marked_count=0 paused_ms=0 permission_denied=0 phase=full recovered_count=0 root=output skipped=36
2026-11-04T21:47:00.779475 - �[32m[INFO]�[0m Using RAM pressure cache.
2026-11-04T21:47:01.353236 - �[32m[INFO]�[0m Seeder start (roots=('output',), phase=full)
2026-11-04T21:47:01.354338 - �[32m[INFO]�[0m [assets-event] seeder.scan_started phase=full root=output
2026-11-04T21:47:01.354609 - �[32m[INFO]�[0m Asset scan [output] directories: ['H:\\output']
2026-11-04T21:47:01.357710 - �[32m[INFO]�[0m Fast scan complete: 0.003s total (created=0, skipped=36, total_paths=36)
2026-11-04T21:47:01.363159 - �[32m[INFO]�[0m Scan(('output',), full) done 0.009s: created=0 enriched=0 skipped=36
2026-11-04T21:47:01.363430 - �[32m[INFO]�[0m [assets-event] seeder.scan_completed cpu_ms=0 created=0 dirs_listed_count=5 elapsed_ms=9 enrich_failed=0 enriched=0 files_statted_count=0 hash_failed=0 missing_marked_count=0 paused_ms=0 permission_denied=0 phase=full recovered_count=0 root=output skipped=36

Other

No response

Activity

  1. added
    Potential BugUser is reporting a bug. This should be tested.
    on Nov 4, 2026
  2. LukeG89 commented on Nov 4, 2026

    @LukeG89

    The size should be divisible by 32, might be the problem

  3. m8rr commented on Nov 5, 2026

    @m8rr

    Try using the 'MiniMax H3 Reference to Video' node instead of the 'MiniMax H3 Image to Video' node.

  4. ootsby commented on Nov 5, 2026

    @ootsby

    @drepou
    You're doing a two-stage FL2V workflow with an upscale but trying to only use a single I2V node. When you use images they get pinned in the conditioning at the resolution you set in the I2V node and when the sampler sees mismatched latent resolution it errors. To fix this you just need to add a second I2V node set to your upscaled resolution and wire in the images and prompt as with your first I2V node, you then wire the positive output from the new I2V node to your second stage Guider conditioning input and just leave the latent output unwired as you're using the upscaled latent in the second stage.

  5. drepou commented on Nov 5, 2026

    @drepou
    Author

    @drepou You're doing a two-stage FL2V workflow with an upscale but trying to only use a single I2V node. When you use images they get pinned in the conditioning at the resolution you set in the I2V node and when the sampler sees mismatched latent resolution it errors. To fix this you just need to add a second I2V node set to your upscaled resolution and wire in the images and prompt as with your first I2V node, you then wire the positive output from the new I2V node to your second stage Guider conditioning input and just leave the latent output unwired as you're using the upscaled latent in the second stage.

    Thanks you work with second I2V node i dont understand how the guy from youtube make it work with a single node ... now the upsacle work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions