1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Show a better error message if the VAE is invalid.

This commit is contained in:
comfyanonymous
2025-03-15 08:26:36 -04:00
parent 7ebd8087ff
commit 3c3988df45
2 changed files with 9 additions and 0 deletions

View File

@@ -770,6 +770,7 @@ class VAELoader:
vae_path = folder_paths.get_full_path_or_raise("vae", vae_name)
sd = comfy.utils.load_torch_file(vae_path)
vae = comfy.sd.VAE(sd=sd)
vae.throw_exception_if_invalid()
return (vae,)
class ControlNetLoader: