deep-floyd / IF

Other
7.63k stars 495 forks source link

ImportError: cannot import name 'CLIPImageProcessor' from 'transformers' #129

Open ashishgore opened 1 year ago

ashishgore commented 1 year ago

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/transformers@v4.29-release

Solution: Please update documentation to specify transformers release requirement.