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

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 2 but got size 1 for tensor number 1 in the list. #187

Open
gebaltso opened this issue Sep 11, 2024 · 2 comments

Comments

@gebaltso
Copy link

Can anyone help with this error? I used the default setting, didn't change anything.

@Sooplex
Copy link

Sooplex commented Sep 23, 2024

The issue might be as mentioned here: #182 (comment)
You could add the following line in the load_photomaker_adapter() in photomaker/pipeline.py:
self.num_tokens =2 if pm_version =='v2'else 1 ## this seems ignore the compatibility with v1

@gebaltso
Copy link
Author

The issue might be as mentioned here: #182 (comment) You could add the following line in the load_photomaker_adapter() in photomaker/pipeline.py: self.num_tokens =2 if pm_version =='v2'else 1 ## this seems ignore the compatibility with v1

Thanks but unfortunately I get the same error.

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