-
Notifications
You must be signed in to change notification settings - Fork 983
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
cannot import name '_expand_mask' #571
Comments
After updating the "transformers" version to either 4.28 or 4.31, the issue was resolved. |
Thank you! |
resolved |
after updating it to transformers==4.31.0 it throws error of |
me too, I have this question |
|
transformers 4.31.0 is ok |
pip install diffusers==0.15.0 |
I am getting this error with transformers 4.35.2 |
|
I have the same error with transformers 4.36.2 |
I solve the error with transformers 4.33.0 |
Thx, this works for me! |
Copy the function definition from previous transformer libraries
Then install using Btw I have already created pull request, refer to my cloned version |
transformers 4.31.0 is ok! |
When I try to execute
train.py
, I encounter the following error:ImportError: cannot import name '_expand_mask' from 'transformers.models.clip.modeling_clip' (/home/tmp/onishi3n/Honki/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py)
The text was updated successfully, but these errors were encountered: