Skip to content

Commit c77ac24

Browse files
authored
Fixed SDXL single file loading to use the correct requested pipeline class (huggingface#4142)
Using pipeline_class argument to instantiate the correct pipeline when loading SDXL models from single files
1 parent ed2a358 commit c77ac24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ def download_from_original_stable_diffusion_ckpt(
15361536
checkpoint, config_name, prefix="conditioner.embedders.1.model.", has_projection=True, **config_kwargs
15371537
)
15381538

1539-
pipe = StableDiffusionXLPipeline(
1539+
pipe = pipeline_class(
15401540
vae=vae,
15411541
text_encoder=text_encoder,
15421542
tokenizer=tokenizer,

0 commit comments

Comments
 (0)