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 due to outdated colab #21

Open
rudolphyo opened this issue Feb 3, 2023 · 0 comments
Open

ImportError due to outdated colab #21

rudolphyo opened this issue Feb 3, 2023 · 0 comments

Comments

@rudolphyo
Copy link

colab tagged in README have outdated imports.
if you need to use lambda-diffusers and prefer colab here is quick fix:

# at any first cell where pip installs 
! git clone https://github.com/LambdaLabsML/lambda-diffusers.git lambda_diffusers
# actual import
from lambda_diffusers.lambda_diffusers import StableDiffusionImageEmbedPipeline
...
# seems like its more relevant to import as on hfspaces 
# from diffusers import StableDiffusionImageVariationPipeline

btw, thanks for your work on this repo! neat trick with "swapping" text encoder with CLIP image embeddings.

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