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

ImportError: cannot import name 'CLIPVisionModelWithProjection' from 'transformers' (/usr/local/lib/python3.9/dist-packages/transformers/__init__.py) #1377

Closed
AlekseiSDev opened this issue Nov 23, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@AlekseiSDev
Copy link

AlekseiSDev commented Nov 23, 2022

Describe the bug

ImportError: cannot import name 'CLIPVisionModelWithProjection' from 'transformers' (/usr/local/lib/python3.9/dist-packages/transformers/init.py)
1 hour ago it worked nice.

Reproduction

No response

Logs

No response

System Info

last, all, all

@AlekseiSDev AlekseiSDev added the bug Something isn't working label Nov 23, 2022
@aablsk
Copy link

aablsk commented Nov 23, 2022

Seeing the same issue. I suspect it's related to the new 0.8.0 release?

@Mistobaan
Copy link

seeing this too. Installing the version of transformers from github seems to work but definitely diffusers will need a new release:

pip install git+https://github.com/huggingface/transformers.git

@aablsk
Copy link

aablsk commented Nov 23, 2022

Can confirm that downgrading to 0.7.2 fixes the issue as well.

@pedrogengo
Copy link
Contributor

The issue is within transformers library, because they didnt release the new version with this new model yet.

@pcuenca
Copy link
Member

pcuenca commented Nov 23, 2022

Thanks for reporting this! We are working on it, meanwhile please install transformers from github as @Mistobaan suggested above.

pip install git+https://github.com/huggingface/transformers.git

@plambe
Copy link

plambe commented Nov 23, 2022

I have the same issue; installing transformers from git works for me too

@patrickvonplaten
Copy link
Contributor

Sorry about this! We working on a fix asap - we'll do a patch release in 30min

@anton-l
Copy link
Member

anton-l commented Nov 24, 2022

Fixed in a patch release 0.8.1: https://github.com/huggingface/diffusers/releases/tag/v0.8.1
⚠️ Please upgrade with pip install --upgrade diffusers or pip install diffusers==0.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants