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

Extra key in ucf101.pt #56

Closed
wang-muhan opened this issue Mar 11, 2024 · 8 comments
Closed

Extra key in ucf101.pt #56

wang-muhan opened this issue Mar 11, 2024 · 8 comments
Labels
automatic-closing automatic-stale question Further information is requested

Comments

@wang-muhan
Copy link

When I'm loading the pretrained ucf101 checkpoint, the error appears:
RuntimeError: Error(s) in loading state_dict for Latte:
Unexpected key(s) in state_dict: "y_embedder.embedding_table.weight".
All the other checkpoints can generate videos successfully, can you check this? Thank you

@maxin-cn
Copy link
Collaborator

maxin-cn commented Mar 11, 2024

When I'm loading the pretrained ucf101 checkpoint, the error appears: RuntimeError: Error(s) in loading state_dict for Latte: Unexpected key(s) in state_dict: "y_embedder.embedding_table.weight". All the other checkpoints can generate videos successfully, can you check this? Thank you

Hi, can I confirm whether the extras parameter is 2 when you use the ucf101 pre-train model? See:

extras: 2 # [1, 2] 1 unconditional generation, 2 class-conditional generation

@wang-muhan
Copy link
Author

Do you have pretrained models for unconditional generation?

@maxin-cn
Copy link
Collaborator

Do you have pretrained models for unconditional generation?

All pre-trained models are unconditional generation except ucf101 and t2v.

@wang-muhan
Copy link
Author

Thanks. How can I control the class being sampled, is it "sample_names" in the ucf101_sample.yaml? But I didn't found where you reference this value in your code

@maxin-cn maxin-cn added the question Further information is requested label Mar 12, 2024
@maxin-cn
Copy link
Collaborator

Thanks. How can I control the class being sampled, is it "sample_names" in the ucf101_sample.yaml? But I didn't found where you reference this value in your code

You can change the class label in here,

y = torch.randint(0, args.num_classes, (1,), device=device)

@wang-muhan
Copy link
Author

What's you training loss after converge? I want to reproduce but met some problem.

@maxin-cn
Copy link
Collaborator

What's you training loss after converge? I want to reproduce but met some problem.

Training loss decreases quickly and oscillates around a value.

Copy link

Hi There! 👋

This issue has been marked as stale due to inactivity for 60 days.

We would like to inquire if you still have the same problem or if it has been resolved.

If you need further assistance, please feel free to respond to this comment within the next 7 days. Otherwise, the issue will be automatically closed.

We appreciate your understanding and would like to express our gratitude for your contribution to Latte. Thank you for your support. 🙏

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatic-closing automatic-stale question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants