use fake VAE config
This commit is contained in:
parent
555de5e07d
commit
df1504d9b0
|
@ -78,9 +78,9 @@ class OnnxStableDiffusionUpscalePipeline(StableDiffusionUpscalePipeline):
|
||||||
max_noise_level: int = 350,
|
max_noise_level: int = 350,
|
||||||
):
|
):
|
||||||
if hasattr(vae, "config") == False:
|
if hasattr(vae, "config") == False:
|
||||||
setattr(vae, "config", {
|
config = {}
|
||||||
"scaling_factor": 0.08333,
|
setattr(config, "scaling_factor", 0.08333)
|
||||||
})
|
setattr(vae, "config", config)
|
||||||
|
|
||||||
super().__init__(vae, text_encoder, tokenizer, unet, low_res_scheduler, scheduler, max_noise_level)
|
super().__init__(vae, text_encoder, tokenizer, unet, low_res_scheduler, scheduler, max_noise_level)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue