Skip to content

StableDiffusionInpaintPipeline missing from_single_file #4002

Description

@ballenvironment

Is your feature request related to a problem? Please describe.
The inpaint pipeline is missing from_single_file method, which is inconsistent with the other pipelines.

Describe the solution you'd like

generator = StableDiffusionInpaintPipeline.from_single_file(model)

Describe alternatives you've considered
I'm currently doing this as an alternative, but it's ugly code.

generator = StableDiffusionImg2ImgPipeline.from_single_file(model)
saved_vae = generator.vae
saved_text_encoder = generator.text_encoder
saved_tokenizer = generator.tokenizer
saved_unet = generator.unet
saved_scheduler = generator.scheduler
saved_safety_checker = generator.safety_checker
saved_feature_extractor = generator.feature_extractor
generator = StableDiffusionInpaintPipeline(vae=saved_vae, text_encoder=saved_text_encoder, tokenizer=saved_tokenizer, 
            unet=saved_unet, scheduler=saved_scheduler, safety_checker=saved_safety_checker, feature_extractor=saved_feature_extractor)

Additional context
Add any other context or screenshots about the feature request here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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