DEV Community

Jovan Chan
Jovan Chan

Posted on • Originally published at runaihome.com

RuntimeError: shape [1, 68, 120, 16, 2, 2] is invalid for Fix 2026

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.

  1. Navigate to your ComfyUI model directory (typically ComfyUI/models/checkpoints/)
  2. Delete the affected model file
  3. Re-download from the original source
  4. Clear the ComfyUI cache: delete ComfyUI/model_cache/ if present
  5. 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.

  1. Move the custom_nodes folder: mv custom_nodes custom_nodes_backup
  2. Start ComfyUI and test if the error persists
  3. If resolved, re-enable nodes selectively:
   mv custom_nodes_backup custom_nodes
Enter fullscreen mode Exit fullscreen mode
  1. 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.

Fix 3: Verify ComfyUI and

Top comments (0)