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

Initializer expected to generate shape (444, 256) but got shape (472, 256) instead for parameter "kernel" in "/diffusion_model/reverse_network/Dense_0". (https://flax.readthedocs.io/en/latest/api_reference/flax.errors.html#flax.errors.ScopeParamShapeError) python-BaseException #97

Open
oym1994 opened this issue May 24, 2024 · 1 comment

Comments

@oym1994
Copy link

oym1994 commented May 24, 2024

Hi, thanks for your great job.

When I test 01_inference_pretrained.ipynb without any change, there occurs a mistake: "Initializer expected to generate shape (444, 256) but got shape (472, 256) instead for parameter "kernel" in "/diffusion_model/reverse_network/Dense_0". (https://flax.readthedocs.io/en/latest/api_reference/flax.errors.html#flax.errors.ScopeParamShapeError) python-BaseException"

What is the reason and how to solve it? Thank you for your kind response.

@oym1994
Copy link
Author

oym1994 commented Jun 1, 2024

It has no problem now. The reason is that my partner changed the pred_horizon in the octo-small checkpoint file config.json to 8.
So it is ok.

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

1 participant