ComfyUI-TiledDiffusion icon indicating copy to clipboard operation
ComfyUI-TiledDiffusion copied to clipboard

Runtime Error on Tiled VAE Encode Node

Open alexcetea opened this issue 1 year ago • 2 comments

Hi, when trying to use the Tiled VAE Encode Node I get the following error:

VAEEncodeTiled_TiledDiffusion Input type (float) and bias type (struct c10::BFloat16) should be the same

Attached workflow. archviz_ai_basic.json

How can I fix this?

alexcetea avatar Dec 28 '24 17:12 alexcetea

With the help of ChatGPT, I solved the issue by adding the --fp32-vae flag to the run_nvidia_gpu.bat file. The updated command looks like this:

.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fp32-vae pause

This forces the VAE to run in full precision (float32) mode, resolving the compatibility issue I was facing.

Note: Running VAE in full precision (float32) may increase GPU VRAM usage compared to half precision (float16). If you have limited VRAM, this might affect performance or lead to out-of-memory errors when handling large workflows or high-resolution images.

stlasVK avatar Dec 31 '24 21:12 stlasVK

Thank you this helped me, I was going nuts. I don't understand how it could suddenly happen from nowhere.. I hope a fix is comming

dolphin-electric avatar Jan 01 '25 17:01 dolphin-electric