Skip to content

ImportError due to outdated colab #21

Open
@rudolphyo

Description

@rudolphyo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions