You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
Activity
WangTiantian139 commentedon Jan 22, 2023
The file structure of the lib
transformershas changed in recent updates, so the python interpreter can not find the class to be imported namedFlaxSampleOutput. I have fixed the error by changing the moduletransformers.generation_flax_utilsintotransformers.generation.flax_utils.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 commentedon Jan 22, 2023
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 commentedon Feb 6, 2023
borisdayma commentedon Feb 8, 2023
This was a different issue that happened shortly after 😅
Should be fixed. I pinned
transformersversion.