-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Open
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.
Description
Custom Node Testing
- I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
Expected Behavior
I attempted to run Build.TRT.Engine_SDXL_Base on an ASUS Ascent GX10 using ComfyUI v0.8.0 and v0.7.0, but both versions failed.
Actual Behavior
I attempted to run Build.TRT.Engine_SDXL_Base on an ASUS Ascent GX10 using ComfyUI v0.8.0 and v0.7.0, but both versions failed.
Steps to Reproduce
Debug Logs
# ComfyUI Error Report
## Error Details
- **Node ID:** 2
- **Node Type:** STATIC_TRT_MODEL_CONVERSION
- **Exception Type:** torch.onnx._internal.exporter._errors.TorchExportError
- **Exception Message:** Failed to export the model with torch.export. �[96mThis is step 1/3�[0m of exporting the model to ONNX. Next steps:
- Modify the model code for `torch.export.export` to succeed. Refer to https://pytorch.org/docs/stable/generated/exportdb/index.html for more information.
- Debug `torch.export.export` and submit a PR to PyTorch.
- Create an issue in the PyTorch GitHub repository against the �[96m*torch.export*�[0m component and attach the full error stack as well as reproduction scripts.
## Exception summary
<class 'torch._dynamo.exc.UserError'>: Detected mismatch between the structure of `inputs` and `dynamic_shapes`: `inputs[3]` is a <class 'tuple'>, but `dynamic_shapes[3]` is a <class 'dict'>
For more information about this error, see: https://pytorch.org/docs/main/generated/exportdb/index.html#dynamic-shapes-validation
The error above occurred when calling torch.export.export. If you would like to view some more information about this error, and get a list of all other errors that may occur in your export call, you can replace your `export()` call with `draft_export()`.
(Refer to the full stack trace above for more information.)
## Stack Trace
File "/home/asusgx10/ComfyUI/execution.py", line 516, 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 "/home/asusgx10/ComfyUI/execution.py", line 330, 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 "/home/asusgx10/ComfyUI/execution.py", line 304, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "/home/asusgx10/ComfyUI/execution.py", line 292, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "/home/asusgx10/ComfyUI/custom_nodes/comfyui_tensorrt/tensorrt_convert.py", line 627, in convert
return super()._convert(
^^^^^^^^^^^^^^^^^
File "/home/asusgx10/ComfyUI/custom_nodes/comfyui_tensorrt/tensorrt_convert.py", line 282, in _convert
torch.onnx.export(
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/__init__.py", line 296, in export
return _compat.export_compat(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_compat.py", line 143, in export_compat
onnx_program = _core.export(
^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_flags.py", line 23, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_core.py", line 1385, in export
raise _errors.TorchExportError(
## System Information
- **ComfyUI Version:** 0.7.0
- **Arguments:** main.py --listen 0.0.0.0
- **OS:** linux
- **Python Version:** 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
- **Embedded Python:** false
- **PyTorch Version:** 2.9.1+cu130
## Devices
- **Name:** cuda:0 NVIDIA GB10 : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 128457207808
- **VRAM Free:** 57181077504
- **Torch VRAM Total:** 0
- **Torch VRAM Free:** 0
## Logs
2026-01-08T01:21:46.112972 - [START] Security scan2026-01-08T01:21:46.112985 -
2026-01-08T01:21:46.136728 - [ComfyUI-Manager] Using `uv` as Python module for pip operations.
2026-01-08T01:21:46.167678 - [DONE] Security scan2026-01-08T01:21:46.167688 -
2026-01-08T01:21:46.184084 - ## ComfyUI-Manager: installing dependencies done.2026-01-08T01:21:46.184108 -
2026-01-08T01:21:46.184119 - ** ComfyUI startup time:2026-01-08T01:21:46.184126 - 2026-01-08T01:21:46.184133 - 2026-01-08 01:21:46.1842026-01-08T01:21:46.184139 -
2026-01-08T01:21:46.184147 - ** Platform:2026-01-08T01:21:46.184153 - 2026-01-08T01:21:46.184158 - Linux2026-01-08T01:21:46.184163 -
2026-01-08T01:21:46.184169 - ** Python version:2026-01-08T01:21:46.184175 - 2026-01-08T01:21:46.184180 - 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]2026-01-08T01:21:46.184186 -
2026-01-08T01:21:46.184193 - ** Python executable:2026-01-08T01:21:46.184204 - 2026-01-08T01:21:46.184209 - /home/asusgx10/comfyui-env/bin/python2026-01-08T01:21:46.184215 -
2026-01-08T01:21:46.184222 - ** ComfyUI Path:2026-01-08T01:21:46.184227 - 2026-01-08T01:21:46.184232 - /home/asusgx10/ComfyUI2026-01-08T01:21:46.184237 -
2026-01-08T01:21:46.184244 - ** ComfyUI Base Folder Path:2026-01-08T01:21:46.184249 - 2026-01-08T01:21:46.184255 - /home/asusgx10/ComfyUI2026-01-08T01:21:46.184261 -
2026-01-08T01:21:46.184268 - ** User directory:2026-01-08T01:21:46.184273 - 2026-01-08T01:21:46.184280 - /home/asusgx10/ComfyUI/user2026-01-08T01:21:46.184286 -
2026-01-08T01:21:46.184293 - ** ComfyUI-Manager config path:2026-01-08T01:21:46.184300 - 2026-01-08T01:21:46.184306 - /home/asusgx10/ComfyUI/user/__manager/config.ini2026-01-08T01:21:46.184312 -
2026-01-08T01:21:46.184320 - ** Log path:2026-01-08T01:21:46.184326 - 2026-01-08T01:21:46.184332 - /home/asusgx10/ComfyUI/user/comfyui.log2026-01-08T01:21:46.184338 -
2026-01-08T01:21:46.213177 -
Prestartup times for custom nodes:
2026-01-08T01:21:46.213232 - 0.2 seconds: /home/asusgx10/ComfyUI/custom_nodes/comfyui-manager
2026-01-08T01:21:46.213250 -
2026-01-08T01:21:46.750880 - Checkpoint files will always be loaded safely.
2026-01-08T01:21:46.860558 - /home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/cuda/__init__.py:283: UserWarning:
Found GPU0 NVIDIA GB10 which is of cuda capability 12.1.
Minimum and Maximum cuda capability supported by this version of PyTorch is
(8.0) - (12.0)
warnings.warn(
2026-01-08T01:21:47.021083 - Total VRAM 122506 MB, total RAM 122506 MB
2026-01-08T01:21:47.021166 - pytorch version: 2.9.1+cu130
2026-01-08T01:21:47.021359 - Set vram state to: NORMAL_VRAM
2026-01-08T01:21:47.021521 - Device: cuda:0 NVIDIA GB10 : cudaMallocAsync
2026-01-08T01:21:47.021581 - Using async weight offloading with 2 streams
2026-01-08T01:21:47.021642 - Enabled pinned memory 116381.0
2026-01-08T01:21:47.026100 - working around nvidia conv3d memory bug.
2026-01-08T01:21:47.458998 - Using pytorch attention
2026-01-08T01:21:48.146307 - Python version: 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
2026-01-08T01:21:48.146375 - ComfyUI version: 0.7.0
2026-01-08T01:21:48.147921 - ComfyUI frontend version: 1.35.9
2026-01-08T01:21:48.148166 - [Prompt Server] web root: /home/asusgx10/comfyui-env/lib/python3.12/site-packages/comfyui_frontend_package/static
2026-01-08T01:21:48.336006 - Total VRAM 122506 MB, total RAM 122506 MB
2026-01-08T01:21:48.336070 - pytorch version: 2.9.1+cu130
2026-01-08T01:21:48.336159 - Set vram state to: NORMAL_VRAM
2026-01-08T01:21:48.336200 - Device: cuda:0 NVIDIA GB10 : cudaMallocAsync
2026-01-08T01:21:48.336238 - Using async weight offloading with 2 streams
2026-01-08T01:21:48.336287 - Enabled pinned memory 116381.0
2026-01-08T01:21:48.537463 - ### Loading: ComfyUI-Manager (V3.39.1)
2026-01-08T01:21:48.537688 - [ComfyUI-Manager] network_mode: public
2026-01-08T01:21:48.537744 - [ComfyUI-Manager] ComfyUI per-queue preview override detected (PR #11261). Manager's preview method feature is disabled. Use ComfyUI's --preview-method CLI option or 'Settings > Execution > Live preview method'.
2026-01-08T01:21:48.646943 - ### ComfyUI Revision: 4449 [f59f71cf] *DETACHED | Released on '2025-12-30'
2026-01-08T01:21:48.688587 -
Import times for custom nodes:
2026-01-08T01:21:48.688672 - 0.0 seconds: /home/asusgx10/ComfyUI/custom_nodes/websocket_image_save.py
2026-01-08T01:21:48.688690 - 0.0 seconds: /home/asusgx10/ComfyUI/custom_nodes/comfyui_tensorrt
2026-01-08T01:21:48.688704 - 0.1 seconds: /home/asusgx10/ComfyUI/custom_nodes/comfyui-manager
2026-01-08T01:21:48.688716 -
2026-01-08T01:21:48.803011 - Context impl SQLiteImpl.
2026-01-08T01:21:48.803090 - Will assume non-transactional DDL.
2026-01-08T01:21:48.803538 - No target revision found.
2026-01-08T01:21:48.816656 - Starting server
2026-01-08T01:21:48.816791 - To see the GUI go to: http://0.0.0.0:8188
2026-01-08T01:21:48.850313 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2026-01-08T01:21:48.863700 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2026-01-08T01:21:48.869415 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2026-01-08T01:21:48.975283 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2026-01-08T01:21:49.075176 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2026-01-08T01:21:52.459560 - FETCH ComfyRegistry Data: 5/1182026-01-08T01:21:52.459607 -
2026-01-08T01:21:56.620176 - FETCH ComfyRegistry Data: 10/1182026-01-08T01:21:56.620219 -
2026-01-08T01:22:00.450227 - FETCH ComfyRegistry Data: 15/1182026-01-08T01:22:00.450274 -
2026-01-08T01:22:04.971055 - FETCH ComfyRegistry Data: 20/1182026-01-08T01:22:04.971101 -
2026-01-08T01:22:08.716609 - FETCH ComfyRegistry Data: 25/1182026-01-08T01:22:08.716649 -
2026-01-08T01:22:09.736983 - got prompt
2026-01-08T01:22:09.738287 - Failed to validate prompt for output 2:
2026-01-08T01:22:09.738361 - * CheckpointLoaderSimple 1:
2026-01-08T01:22:09.738407 - - Value not in list: ckpt_name: 'sd_xl_base_1.0_0.9vae.safetensors' not in ['flux1-schnell-fp8.safetensors', 'sd_xl_turbo_1.0_fp16.safetensors', 'v1-5-pruned-emaonly-fp16.safetensors']
2026-01-08T01:22:09.738449 - Output will be ignored
2026-01-08T01:22:09.738505 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2026-01-08T01:22:12.587503 - FETCH ComfyRegistry Data: 30/1182026-01-08T01:22:12.587550 -
2026-01-08T01:22:16.774223 - FETCH ComfyRegistry Data: 35/1182026-01-08T01:22:16.774267 -
2026-01-08T01:22:20.466287 - FETCH ComfyRegistry Data: 40/1182026-01-08T01:22:20.466331 -
2026-01-08T01:22:24.163883 - FETCH ComfyRegistry Data: 45/1182026-01-08T01:22:24.163930 -
2026-01-08T01:22:28.039057 - FETCH ComfyRegistry Data: 50/1182026-01-08T01:22:28.039109 -
2026-01-08T01:22:31.777435 - FETCH ComfyRegistry Data: 55/1182026-01-08T01:22:31.777461 -
2026-01-08T01:22:35.476193 - FETCH ComfyRegistry Data: 60/1182026-01-08T01:22:35.476242 -
2026-01-08T01:22:39.240004 - FETCH ComfyRegistry Data: 65/1182026-01-08T01:22:39.240049 -
2026-01-08T01:22:43.961783 - FETCH ComfyRegistry Data: 70/1182026-01-08T01:22:43.961811 -
2026-01-08T01:22:47.798111 - FETCH ComfyRegistry Data: 75/1182026-01-08T01:22:47.798137 -
2026-01-08T01:22:51.642629 - FETCH ComfyRegistry Data: 80/1182026-01-08T01:22:51.642654 -
2026-01-08T01:22:55.583616 - FETCH ComfyRegistry Data: 85/1182026-01-08T01:22:55.583642 -
2026-01-08T01:22:59.386552 - FETCH ComfyRegistry Data: 90/1182026-01-08T01:22:59.386582 -
2026-01-08T01:23:03.112503 - FETCH ComfyRegistry Data: 95/1182026-01-08T01:23:03.112531 -
2026-01-08T01:23:06.833808 - FETCH ComfyRegistry Data: 100/1182026-01-08T01:23:06.833835 -
2026-01-08T01:23:11.143772 - FETCH ComfyRegistry Data: 105/1182026-01-08T01:23:11.143798 -
2026-01-08T01:23:15.748910 - FETCH ComfyRegistry Data: 110/1182026-01-08T01:23:15.748937 -
2026-01-08T01:23:19.609272 - FETCH ComfyRegistry Data: 115/1182026-01-08T01:23:19.609299 -
2026-01-08T01:23:22.302487 - FETCH ComfyRegistry Data [DONE]2026-01-08T01:23:22.302534 -
2026-01-08T01:23:22.371745 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2026-01-08T01:23:22.378404 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2026-01-08T01:23:22.378424 - 2026-01-08T01:23:22.736836 - [DONE]2026-01-08T01:23:22.736868 -
2026-01-08T01:23:22.765781 - [ComfyUI-Manager] All startup tasks have been completed.
2026-01-08T01:25:50.608482 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-01-08T01:25:50.624317 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-01-08T01:25:51.163697 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-01-08T01:25:51.172110 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-01-08T01:25:57.594489 - got prompt
2026-01-08T01:25:57.706271 - model weight dtype torch.float16, manual cast: None
2026-01-08T01:25:57.706778 - model_type EPS
2026-01-08T01:25:58.063449 - Using pytorch attention in VAE
2026-01-08T01:25:58.064014 - Using pytorch attention in VAE
2026-01-08T01:25:58.117424 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2026-01-08T01:25:58.299699 - CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
2026-01-08T01:25:58.397935 - Requested to load SDXL
2026-01-08T01:25:59.035986 - loaded completely; 46521.01 MB usable, 4897.05 MB loaded, full load: True
2026-01-08T01:25:59.116908 - /home/asusgx10/ComfyUI/custom_nodes/comfyui_tensorrt/tensorrt_convert.py:282: UserWarning: # 'dynamic_axes' is not recommended when dynamo=True, and may lead to 'torch._dynamo.exc.UserError: Constraints violated.' Supply the 'dynamic_shapes' argument instead if export is unsuccessful.
torch.onnx.export(
2026-01-08T01:25:59.117313 - W0108 01:25:59.117000 17211 torch/onnx/_internal/exporter/_compat.py:114] Setting ONNX exporter to use operator set version 18 because the requested opset_version 17 is a lower version than we have implementations for. Automatic version conversion will be performed, which may not be successful at converting to the requested version. If version conversion is unsuccessful, the opset version of the exported model will be kept at 18. Please consider setting opset_version >=18 to leverage latest ONNX features
2026-01-08T01:25:59.340600 - !!! Exception during processing !!! Failed to export the model with torch.export. �[96mThis is step 1/3�[0m of exporting the model to ONNX. Next steps:
- Modify the model code for `torch.export.export` to succeed. Refer to https://pytorch.org/docs/stable/generated/exportdb/index.html for more information.
- Debug `torch.export.export` and submit a PR to PyTorch.
- Create an issue in the PyTorch GitHub repository against the �[96m*torch.export*�[0m component and attach the full error stack as well as reproduction scripts.
## Exception summary
<class 'torch._dynamo.exc.UserError'>: Detected mismatch between the structure of `inputs` and `dynamic_shapes`: `inputs[3]` is a <class 'tuple'>, but `dynamic_shapes[3]` is a <class 'dict'>
For more information about this error, see: https://pytorch.org/docs/main/generated/exportdb/index.html#dynamic-shapes-validation
The error above occurred when calling torch.export.export. If you would like to view some more information about this error, and get a list of all other errors that may occur in your export call, you can replace your `export()` call with `draft_export()`.
(Refer to the full stack trace above for more information.)
2026-01-08T01:25:59.342662 - Traceback (most recent call last):
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_capture_strategies.py", line 118, in __call__
exported_program = self._capture(model, args, kwargs, dynamic_shapes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_capture_strategies.py", line 225, in _capture
raise exc from None
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_capture_strategies.py", line 210, in _capture
return torch.export.export(
^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/__init__.py", line 311, in export
raise e
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/__init__.py", line 277, in export
return _export(
^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 1163, in wrapper
raise e
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 1129, in wrapper
ep = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/exported_program.py", line 124, in wrapper
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 2255, in _export
ep = _export_for_training(
^^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 1163, in wrapper
raise e
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 1129, in wrapper
ep = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/exported_program.py", line 124, in wrapper
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 2071, in _export_for_training
export_artifact = export_func(
^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/_trace.py", line 1957, in _non_strict_export
) = make_fake_inputs(
^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/_export/non_strict_utils.py", line 356, in make_fake_inputs
_check_dynamic_shapes(combined_args, dynamic_shapes)
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/dynamic_shapes.py", line 1031, in _check_dynamic_shapes
_tree_map_with_path(check_shape, combined_args, dynamic_shapes, tree_name="inputs")
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/dynamic_shapes.py", line 686, in _tree_map_with_path
_compare(tree_spec, other_tree_spec, [])
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/dynamic_shapes.py", line 677, in _compare
_compare(
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/dynamic_shapes.py", line 652, in _compare
raise_mismatch_error(
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/export/dynamic_shapes.py", line 634, in raise_mismatch_error
raise UserError(
torch._dynamo.exc.UserError: Detected mismatch between the structure of `inputs` and `dynamic_shapes`: `inputs[3]` is a <class 'tuple'>, but `dynamic_shapes[3]` is a <class 'dict'>
For more information about this error, see: https://pytorch.org/docs/main/generated/exportdb/index.html#dynamic-shapes-validation
The error above occurred when calling torch.export.export. If you would like to view some more information about this error, and get a list of all other errors that may occur in your export call, you can replace your `export()` call with `draft_export()`.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/asusgx10/ComfyUI/execution.py", line 516, 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 "/home/asusgx10/ComfyUI/execution.py", line 330, 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 "/home/asusgx10/ComfyUI/execution.py", line 304, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "/home/asusgx10/ComfyUI/execution.py", line 292, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "/home/asusgx10/ComfyUI/custom_nodes/comfyui_tensorrt/tensorrt_convert.py", line 627, in convert
return super()._convert(
^^^^^^^^^^^^^^^^^
File "/home/asusgx10/ComfyUI/custom_nodes/comfyui_tensorrt/tensorrt_convert.py", line 282, in _convert
torch.onnx.export(
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/__init__.py", line 296, in export
return _compat.export_compat(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_compat.py", line 143, in export_compat
onnx_program = _core.export(
^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_flags.py", line 23, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/asusgx10/comfyui-env/lib/python3.12/site-packages/torch/onnx/_internal/exporter/_core.py", line 1385, in export
raise _errors.TorchExportError(
torch.onnx._internal.exporter._errors.TorchExportError: Failed to export the model with torch.export. �[96mThis is step 1/3�[0m of exporting the model to ONNX. Next steps:
- Modify the model code for `torch.export.export` to succeed. Refer to https://pytorch.org/docs/stable/generated/exportdb/index.html for more information.
- Debug `torch.export.export` and submit a PR to PyTorch.
- Create an issue in the PyTorch GitHub repository against the �[96m*torch.export*�[0m component and attach the full error stack as well as reproduction scripts.
## Exception summary
<class 'torch._dynamo.exc.UserError'>: Detected mismatch between the structure of `inputs` and `dynamic_shapes`: `inputs[3]` is a <class 'tuple'>, but `dynamic_shapes[3]` is a <class 'dict'>
For more information about this error, see: https://pytorch.org/docs/main/generated/exportdb/index.html#dynamic-shapes-validation
The error above occurred when calling torch.export.export. If you would like to view some more information about this error, and get a list of all other errors that may occur in your export call, you can replace your `export()` call with `draft_export()`.
(Refer to the full stack trace above for more information.)
2026-01-08T01:25:59.343297 - Prompt executed in 1.75 seconds
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
{"id":"d6d895d9-2c69-44b8-91ef-53abbef0f47c","revision":0,"last_node_id":2,"last_link_id":1,"nodes":[{"id":2,"type":"STATIC_TRT_MODEL_CONVERSION","pos":[1013.3333740234375,485.3333435058594],"size":[315,178],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"model","name":"model","type":"MODEL","link":1},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null},{"localized_name":"batch_size_opt","name":"batch_size_opt","type":"INT","widget":{"name":"batch_size_opt"},"link":null},{"localized_name":"height_opt","name":"height_opt","type":"INT","widget":{"name":"height_opt"},"link":null},{"localized_name":"width_opt","name":"width_opt","type":"INT","widget":{"name":"width_opt"},"link":null},{"localized_name":"context_opt","name":"context_opt","type":"INT","widget":{"name":"context_opt"},"link":null},{"localized_name":"num_video_frames","name":"num_video_frames","type":"INT","widget":{"name":"num_video_frames"},"link":null}],"outputs":[],"properties":{"cnr_id":"comfyui_tensorrt","ver":"0.1.7","Node name for S&R":"STATIC_TRT_MODEL_CONVERSION"},"widgets_values":["tensorrt/SDXL_BASE",4,1024,1024,1,0]},{"id":1,"type":"CheckpointLoaderSimple","pos":[452.66668701171875,492.66668701171875],"size":[315,98],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"ckpt_name","name":"ckpt_name","type":"COMBO","widget":{"name":"ckpt_name"},"link":null}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","slot_index":0,"links":[1]},{"localized_name":"CLIP","name":"CLIP","type":"CLIP","links":null},{"localized_name":"VAE","name":"VAE","type":"VAE","links":null}],"properties":{"cnr_id":"comfy-core","ver":"0.8.0","Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["sd_xl_base_1.0_0.9vae.safetensors"]}],"links":[[1,1,0,2,0,"MODEL"]],"groups":[],"config":{},"extra":{"ds":{"scale":1,"offset":[-199.99993896484375,-168.00001525878906]}},"version":0.4}
## Additional Context
(Please add any additional context or steps to reproduce the error here)Other
No response
Metadata
Metadata
Assignees
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.