-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HunyuanVideoPipeline produces NaN values #10314
Comments
Transformer needs to be in bfloat16. Could you try with that? |
Same result @a-r-r-o-w |
On CUDA we've seen the same issue when not using the latest PyTorch, from |
Thanks for the suggestion @hlky , I'll try some more combinations.
|
Same, I also get nan value. |
@tanshuai0219 Is this on a CUDA GPU or MPS/ROCm? I'm unable to replicate when using the transformer in |
Yes, it's on a CUDA GPU, CUDA version: 12.4 Then I run: `import torch model_id = "hunyuanvideo-community/HunyuanVideo" output = pipe( import numpy as np print(np.array(output[0])) export_to_video(output, "output.mp4", fps=15)` np.array(output[0]) is all zero. output.mp4 |
Can you share the output of
output.mp4 |
here is mine:
|
If I upgrade the transformers from 4.46.3 to 4.48.0.dev0, I get the error like: |
Describe the bug
Running
diffusers.utils.export_to_video()
on the output ofHunyuanVideoPipeline
results inAfter adding some checks to
numpy_to_pil()
inimage_processor.py
I have confirmed that the output containsNaN
valuesReproduction
Logs
No response
System Info
GPU: AMD MI300X
Who can help?
@DN6 @a-r-r-o-w
The text was updated successfully, but these errors were encountered: