PR #1365 broke importing diffusers
See original GitHub issueDescribe the bug
When I try to import diffusers, I get the error below. The file causing the error is from PR #1365, which was merged today.
Reproduction
%cd /content
!git clone -b main https://github.com/huggingface/diffusers.git
import sys
sys.path.insert(0,'/content/diffusers/src/')
import diffusers
Logs
ImportError Traceback (most recent call last)
<ipython-input-2-3ef39c283978> in <module>
20 import sys
21 sys.path.insert(0,'/content/diffusers/src/')
---> 22 import diffusers
23 diffusers.__file__
24
5 frames
/content/diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py in <module>
20 import PIL
21 from diffusers.utils import is_accelerate_available
---> 22 from transformers import CLIPFeatureExtractor, CLIPVisionModelWithProjection
23
24 from ...models import AutoencoderKL, UNet2DConditionModel
ImportError: cannot import name 'CLIPVisionModelWithProjection' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/__init__.py)
System Info
On a colab notebook.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:4
- Comments:5 (4 by maintainers)
Top Results From Across the Web
StableDiffusionImageVariationPi...
StableDiffusionImageVariationPipeline by patil-suraj · Pull Request #1365 · huggingface/diffusers · GitHub. Have a question about this project?
Read more >Application of Circular Bubble Plume Diffusers to Restore ...
A total of 95% of the imported oxygen was dissolved, ... Moreover, it remains unknown whether the bubble plume can break stratification.
Read more >Guidelines for Environmental Infection Control in Health-Care ...
air exhaust or out-takes; and registers, diffusers, or grilles for proper distribution of the air (Figure 1).213,. 214 Decreased performance of healthcare ...
Read more >Hair Loss Prevention: 22 Tips to Help Save Your Hair
In this article, we'll break down 22 tips to stop hair loss and explore some frequently ... Made from imported, first cold-pressed olives ......
Read more >Homeware & Gifts | Gift Ideas | Gifts for Couples – Goddiva
... scented candles and diffusers; or create a cozy retreat with soft furnishings, wall art and photo frames you'll just love to come...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in a patch release
0.8.1
: https://github.com/huggingface/diffusers/releases/tag/v0.8.1 ⚠️ Please upgrade withpip install --upgrade diffusers
orpip install diffusers==0.8.1
I suppose pipeline_stable_diffusion_image_variation.py should fail gracefully if an unreleased model it is depending on is not available.