-
Notifications
You must be signed in to change notification settings - Fork 6.9k
StableDiffusionInpaintPipeline missing from_single_file #4002
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.