-
Notifications
You must be signed in to change notification settings - Fork 250
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
Throw error when retrieving an embedding for inferencing one image #62
Comments
@MimiCheng Could you paste the full script? Which resnet are you using? |
Thanks for your prompt response @lucidrains! It's resnet-50 Here is the full script
|
@MimiCheng Oh I understand why Mimi, it is because there is a batch norm in the projection layer, and it requires the batch size to be greater than 1 during training - I've updated the library to give a more informative error message in 0.5.7 For your script, try changing to |
@lucidrains thanks for you explanation. It works with |
@MimiCheng yup, all you have to do is to do |
Step to reproduce:
Error found:
The text was updated successfully, but these errors were encountered: