The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
sd: delay VAE dtype archive until after override (#12388)
rattusf719f9c06266
diff --git a/comfy/sd.py b/comfy/sd.pyindex bc9407405..f65e7cadd 100644--- a/comfy/sd.py+++ b/comfy/sd.py@@ -793,8 +793,6 @@ class VAE:self.first_stage_model = AutoencoderKL(**(config['params']))self.first_stage_model = self.first_stage_model.eval()- model_management.archive_model_dtypes(self.first_stage_model)-if device is None:device = model_management.vae_device()self.device = device@@ -803,6 +801,7 @@ class VAE:dtype = model_management.vae_dtype(self.device, self.working_dtypes)self.vae_dtype = dtypeself.first_stage_model.to(self.vae_dtype)+ model_management.archive_model_dtypes(self.first_stage_model)self.output_device = model_management.intermediate_device()mp = comfy.model_patcher.CoreModelPatcher