question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PR #1365 broke importing diffusers

See original GitHub issue

Describe 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:closed
  • Created 10 months ago
  • Reactions:4
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
anton-lcommented, 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

1reaction
OrionFivecommented, Nov 23, 2022

I suppose pipeline_stable_diffusion_image_variation.py should fail gracefully if an unreleased model it is depending on is not available.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found