Skip to content
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

The generated result is black,what's wrong with it? #107

Open
TZYSJTU opened this issue Dec 23, 2024 · 9 comments
Open

The generated result is black,what's wrong with it? #107

TZYSJTU opened this issue Dec 23, 2024 · 9 comments
Assignees

Comments

@TZYSJTU
Copy link

TZYSJTU commented Dec 23, 2024

hi,the demo result looks strange,it is all black
Will Smith casually eats noodles, his relaxed demeanor contrasting with the energetic background of .mp4
https://github.com/user-attachments/assets/cb953284-a617-43d4-980a-27f0eb682370

@TZYSJTU
Copy link
Author

TZYSJTU commented Dec 23, 2024

hi,the demo result looks strange,it is all black Will Smith casually eats noodles, his relaxed demeanor contrasting with the energetic background of .mp4 https://github.com/user-attachments/assets/cb953284-a617-43d4-980a-27f0eb682370

H20

@TZYSJTU
Copy link
Author

TZYSJTU commented Dec 23, 2024

RuntimeWarning: invalid value encountered in cast
outputs.append((x * 255).numpy().astype(np.uint8))
It seems that the results are NAN, then transferred to black

@TZYSJTU
Copy link
Author

TZYSJTU commented Dec 23, 2024

When I used --precision bf16, the generated results look right

A.lone.hiker.stands.atop.a.towering.cliff.silhouetted.against.the.vast.horizon.The.rugged.landscap.mp4

@foreverpiano
Copy link
Collaborator

Thanks for reporting this issue. The black output is caused by NaN values in computation getting cast to zeros. Using --precision bf16 resolves this numerical instability problem, as you found. Thank you for sharing this solution.

@zhisbug
Copy link
Collaborator

zhisbug commented Dec 23, 2024

@TZYSJTU we'll support a lower precision soon, stay tuned.

@rlsu9 rlsu9 closed this as completed Dec 23, 2024
@TimPietrusky
Copy link

TimPietrusky commented Jan 5, 2025

@TZYSJTU I'm also trying to get this to work, which model did you use? https://huggingface.co/FastVideo/FastHunyuan or https://huggingface.co/FastVideo/FastHunyuan-diffusers?

I was using diffusers in combination with scripts/inference_diffusers_hunyuan.sh, but all results are black, even when i change the precision parameter.

What kind of setup do you have?

@foreverpiano or is the diffusers pipeline just not working right now?

@foreverpiano
Copy link
Collaborator

cc @rlsu9

@rlsu9 rlsu9 reopened this Jan 5, 2025
@rlsu9
Copy link
Collaborator

rlsu9 commented Jan 5, 2025

@TimPietrusky Hi, could you please provide your scripts/inference_diffusers_hunyuan.sh? Thanks a lot.

@rlsu9 rlsu9 self-assigned this Jan 5, 2025
@TimPietrusky
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants