This article was originally published on runaihome.com
RuntimeError: Shape Mismatch During Model Loading
This error occurs when a tensor's actual dimensions don't match what the model layer expects. The expected shape [1, 68, 120, 16, 2, 2] requires 52,224 elements, but the loaded tensor contains 1,044,480 elements. This typically indicates a corrupted model file, incomplete download, or incompatible checkpoint version.
Fix 1: Re-download the Model
Corrupted model files commonly cause this error.
- Navigate to your ComfyUI model directory (typically
ComfyUI/models/checkpoints/) - Delete the affected model file
- Re-download from the original source
- Clear the ComfyUI cache: delete
ComfyUI/model_cache/if present - Restart ComfyUI
If using portable version, verify the download size matches the expected file size on the model source.
Fix 2: Disable Custom Nodes
Conflicting custom node versions may pass incorrect tensor dimensions to core modules.
- Move the
custom_nodesfolder:mv custom_nodes custom_nodes_backup - Start ComfyUI and test if the error persists
- If resolved, re-enable nodes selectively:
mv custom_nodes_backup custom_nodes
- Use ComfyUI-Manager to update problematic nodes individually
Check ComfyUI-Manager for updates to nodes like was-node-suite or impact-pack that frequently cause dimension conflicts.
Top comments (0)