s both image_size and scaling_factor to from_single_file() if you’re loading
a VAE from SDXL or a Stable Diffusion v2 model or higher.  Examples:   Copied from diffusers import AutoencoderKL

url = "https://huggingface.co/stabilityai/sd-vae-ft-mse-original/blob/main/vae-ft-mse-840000-ema-pruned.safetensors"  # can also be local file
model = AutoencoderKL.from_single_file(url)  FromOriginalControlnetMixin  class diffusers.loaders.FromOriginalCon