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

[CLIP] cannot import name '_expand_mask' #603

Open
denis-ismailaj opened this issue Dec 2, 2023 · 0 comments · May be fixed by #604
Open

[CLIP] cannot import name '_expand_mask' #603

denis-ismailaj opened this issue Dec 2, 2023 · 0 comments · May be fixed by #604

Comments

@denis-ismailaj
Copy link

The _expand_mask function that is imported from transformers.models.clip.modeling_clip in models/blip_diffusion_models/modeling_ctx_clip.py does not exist anymore since this commit that is part of release v4.35.0.

It has since been replaced with transformers.modeling_attn_mask_utils._prepare_4d_attention_mask.

There is another closed issue ( #571 ) in this repo regarding this error, but there is not enough information to tell whether using transformers>=4.35 was the cause of that one too.

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

Successfully merging a pull request may close this issue.

1 participant