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

problems about the random seed in the code #18

Closed
snowflakewang opened this issue Apr 12, 2024 · 2 comments
Closed

problems about the random seed in the code #18

snowflakewang opened this issue Apr 12, 2024 · 2 comments

Comments

@snowflakewang
Copy link

hello, thank you for your brilliant work in the fast feed-forward 3d generation model!
i have tried your HuggingFace demo and it works well. I noticed that users can manipulate the random seed in the demo. but when I run your code, it seems no command arguments for the random seed. i wonder how can I set the seed properly. np? torch? torch.cuda?

thank you :)

@thuwzy
Copy link
Collaborator

thuwzy commented Apr 12, 2024

Hi! You can manually call the set_seed() function in the pipeline class. https://github.com/thu-ml/CRM/blob/3e677cb41d4856dc7c46c5dace00d52336f5c614/pipelines.py#L129-#L132

@snowflakewang
Copy link
Author

Hi! You can manually call the set_seed() function in the pipeline class. https://github.com/thu-ml/CRM/blob/3e677cb41d4856dc7c46c5dace00d52336f5c614/pipelines.py#L129-#L132

Thank you for your reply! I have solved this problem.
Have a good day :)

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

2 participants