Free | No tracking | Every fact with a source|German and English

Error / Other

expected scalar type Half but found Float (number formats do not match)

In a node, numbers in half precision (fp16) and full precision (fp32) meet, and PyTorch refuses to calculate with them.

The message

RuntimeError: expected scalar type Half but found Float  |  RuntimeError: expected scalar type Float but found Half

Affects: ComfyUI

Why is this happening?

Depending on the graphics card, models run in fp16, bf16, or fp32. A node has to convert all data to the same format before computing. If it forgets, PyTorch stops with this message. This is almost always a program bug in the affected node, often in a Custom Node, and it often happens after an update of ComfyUI or PyTorch when the Custom Node has not yet been adapted. Older cards like the GTX 16 series are especially often affected.

How to fix it

  1. Read the last lines of the error trace in the console. If you see a path with custom_nodes\…, the error is in this Custom Node; otherwise, it is in ComfyUI itself.
  2. Update ComfyUI. Portable: run update\update_comfyui.bat in the ComfyUI_windows_portable folder. Desktop app: Manage → Update tab. Manual installation: activate the venv, run git pull in the ComfyUI folder, then pip install -r requirements.txt.
  3. Update the affected Custom Node in the ComfyUI Manager. Example: For AnimateDiff-Evolved and Advanced-ControlNet, the error is fixed starting with version 1.5.7.
  4. As a workaround, start ComfyUI with --force-fp32. Portable: .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --force-fp32. This uses more VRAM and is slower.
  5. If none of that helps, report the error with the console log, workflow, and graphics card on the GitHub page of the Custom Node or at ComfyUI. Until it is fixed, an older version of the Custom Node may help.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.