fix(api): correct VAE config check
This commit is contained in:
parent
e960ee1d85
commit
555de5e07d
|
@ -77,7 +77,7 @@ class OnnxStableDiffusionUpscalePipeline(StableDiffusionUpscalePipeline):
|
|||
scheduler: Any,
|
||||
max_noise_level: int = 350,
|
||||
):
|
||||
if getattr(vae, "config") is None:
|
||||
if hasattr(vae, "config") == False:
|
||||
setattr(vae, "config", {
|
||||
"scaling_factor": 0.08333,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue