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

import error in inference pipeline notebook #319

Open
ranpin opened this issue Jan 14, 2023 · 4 comments
Open

import error in inference pipeline notebook #319

ranpin opened this issue Jan 14, 2023 · 4 comments

Comments

@ranpin
Copy link

ranpin commented Jan 14, 2023

hello, when i use the inference pipeline notebook given by the readme.md, i meet the following error. I didnot change anything but just run the codes one by one, how can i deal with the problem?

image

@WangTiantian139
Copy link

The file structure of the lib transformers has changed in recent updates, so the python interpreter can not find the class to be imported named FlaxSampleOutput. I have fixed the error by changing the module transformers.generation_flax_utils into transformers.generation.flax_utils.

- 33 from transformers.generation_flax_utils import FlaxSampleOutput
+ 33 from transformers.generation.flax_utils import FlaxSampleOutput

You can find the file at %your_python_path%/lib/python3.9/site-packages/dalle_mini/model/modeling.py. Please replace %your_python_path% into the path in your environment.

@borisdayma
Copy link
Owner

Thanks for flagging it.
I had fixed in the repo but forgot to upload the updated version to pypi.
Now it should work fine.

@sajeedmehrab
Copy link

image

@borisdayma
Copy link
Owner

This was a different issue that happened shortly after 😅
Should be fixed. I pinned transformers version.

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

4 participants