Skip to content

Add UnCLIPImageVariationPipeline to dummy imports #1897

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

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

anton-l
Copy link
Member

@anton-l anton-l commented Jan 3, 2023

This makes sure that we don't get an import error when transformers aren't installed and we run a script like diffusers-cli env or make fix-copies, as seen in #1895

diffusers/src/diffusers/pipelines/__init__.py", line 57, in <module>
    from .unclip import UnCLIPImageVariationPipeline, UnCLIPPipeline
ImportError: cannot import name 'UnCLIPImageVariationPipeline' from 'diffusers.pipelines.unclip' (diffusers/src/diffusers/pipelines/unclip/__init__.py)

cc @williamberman

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jan 3, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Contributor

Just noticed this as well - thanks a lot!

@patrickvonplaten patrickvonplaten merged commit f17fae6 into main Jan 3, 2023
@patrickvonplaten patrickvonplaten deleted the fix-unclip-dummy-import branch January 3, 2023 10:58
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* Add UnCLIPImageVariationPipeline to dummy imports

* style
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

Successfully merging this pull request may close these issues.

3 participants