Fooocus GitHub Bot Commit

This commit is generated by a GitHub bot of Fooocus
This commit is contained in:
lllyasviel
2023-10-17 21:18:50 -07:00
parent a5236781fc
commit c79d653e49
9 changed files with 246 additions and 220 deletions
+2 -1
View File
@@ -584,7 +584,8 @@ class VAELoader:
#TODO: scale factor?
def load_vae(self, vae_name):
vae_path = folder_paths.get_full_path("vae", vae_name)
vae = fcbh.sd.VAE(ckpt_path=vae_path)
sd = fcbh.utils.load_torch_file(vae_path)
vae = fcbh.sd.VAE(sd=sd)
return (vae,)
class ControlNetLoader: