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

Different generation outputs even though fixing the random seed #14

Closed
daeunni opened this issue Jul 15, 2024 · 5 comments
Closed

Different generation outputs even though fixing the random seed #14

daeunni opened this issue Jul 15, 2024 · 5 comments

Comments

@daeunni
Copy link

daeunni commented Jul 15, 2024

Hi @Ji4chenLi , I am using the T2V-Turbo (VC2) model and fixing the random seed like below.

def generate(
    prompt: str,
    seed: int = 123,                            # Seed fix (123)
    guidance_scale: float = 7.5,
    num_inference_steps: int = 4,
    num_frames: int = 16,
    fps: int = 16,
    randomize_seed: bool = False,  # Set False 
    ... 

However, even though I fixed random seed =123, the generation results from the prompt "A family of three take their dog and cat for a walk in the park, enjoying the fresh air and exercise" are not the same. (Please refer to the below figure)
image

Why is it happening? How can I fix the generation results? Thanks!

@DancinBit
Copy link

try

from lightning_fabric import seed_everything
...
seed_everything(seed)

@daeunni
Copy link
Author

daeunni commented Jul 29, 2024

I found it still isn't working. Is there any methodological cause for this? I would appreciate you share any idea. Thanks!

@DancinBit
Copy link

use seed_everything before initializing noise latents🤪

@Ji4chenLi
Copy link
Owner

I'll fix this issue in our next update very soon (within 2 days)! Stay tuned!

@Ji4chenLi
Copy link
Owner

The new version is up.

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

3 participants