"git@developer.sourcefind.cn:one/TransferBench.git" did not exist on "9b7f0b757bc7400c99acf316aad5bb76a546d589"
Unverified Commit a2091b70 authored by Duong A. Nguyen's avatar Duong A. Nguyen Committed by GitHub
Browse files

Fix SDXL conversion from original to diffusers (#4280)

* fix sdxl conversion

* convention
parent d8bc1a4e
...@@ -1186,6 +1186,7 @@ def download_from_original_stable_diffusion_ckpt( ...@@ -1186,6 +1186,7 @@ def download_from_original_stable_diffusion_ckpt(
StableDiffusionInpaintPipeline, StableDiffusionInpaintPipeline,
StableDiffusionPipeline, StableDiffusionPipeline,
StableDiffusionXLImg2ImgPipeline, StableDiffusionXLImg2ImgPipeline,
StableDiffusionXLPipeline,
StableUnCLIPImg2ImgPipeline, StableUnCLIPImg2ImgPipeline,
StableUnCLIPPipeline, StableUnCLIPPipeline,
) )
...@@ -1542,7 +1543,7 @@ def download_from_original_stable_diffusion_ckpt( ...@@ -1542,7 +1543,7 @@ def download_from_original_stable_diffusion_ckpt(
checkpoint, config_name, prefix="conditioner.embedders.1.model.", has_projection=True, **config_kwargs checkpoint, config_name, prefix="conditioner.embedders.1.model.", has_projection=True, **config_kwargs
) )
pipe = pipeline_class( pipe = StableDiffusionXLPipeline(
vae=vae, vae=vae,
text_encoder=text_encoder, text_encoder=text_encoder,
tokenizer=tokenizer, tokenizer=tokenizer,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment