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 'CLIPImageProcessor' from 'transformers' #129

Open
ashishgore opened this issue Jul 4, 2023 · 0 comments

Comments

@ashishgore
Copy link

Problem: Import Error while importing the difffusers library

diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py", line 21, in <module>
    from transformers import CLIPImageProcessor, XLMRobertaTokenizer
ImportError: cannot import name 'CLIPImageProcessor' from 'transformers' 

Workaround: Upgrade to transformers v4.29 or above to fix

pip install git+https://github.com/huggingface/[email protected]

Solution:
Please update documentation to specify transformers release requirement.

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

1 participant