Kosinkadink / ComfyUI-AnimateDiff-Evolved

Improved AnimateDiff for ComfyUI and Advanced Sampling Support
Apache License 2.0
2.7k stars 206 forks source link

"expected scalar type Half but found Float" in motion_module_ad.py #493

Open kylegrover opened 5 hours ago

kylegrover commented 5 hours ago

I ran into a type mismatch and this seems to fix it: image

am I brute forcing my way through something else I'm doing wrong or is this a sensible thing to add?

using v3_sd15_mm.safetensors with a sd1.5 model and sd15 depth controlnet

Kosinkadink commented 5 hours ago

Make sure you're on newest versions, and then post the full error stack for me to look at. I haven't had anyone else post an error report about this, so might be a weird edge case or a recent ComfyUI update.

ComfyUI code in general does not make use of the autocast, and whatever mismatch is happening should be able to be easily fixed in another way.

kylegrover commented 5 hours ago

I had run into this previously and bodged it the same way and sort of forgot about it. Then today I updated to the latest version and ran into the problem again because it overwrote my patch.

If nobody else is hitting this there's a decent chance I just did something weird with my setup, I do tend to muck about.

error log

Kosinkadink commented 5 hours ago

I see you're using the "efficient" KSampler. Can you check if you run into the issue with a normal KSampler?