From fb4bf7f591e4c0917e66814370216ef7858c6b6a Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sun, 18 Jun 2023 03:18:25 -0400 Subject: [PATCH] This is not needed anymore and causes issues with alphas_cumprod. --- comfy/sd.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/comfy/sd.py b/comfy/sd.py index 24806dd0..7f04ae3a 100644 --- a/comfy/sd.py +++ b/comfy/sd.py @@ -1159,9 +1159,6 @@ def load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, o else: model = model_base.BaseModel(unet_config, v_prediction=v_prediction) - if fp16: - model = model.half() - model = load_model_weights(model, sd, verbose=False, load_state_dict_to=load_state_dict_to) return (ModelPatcher(model), clip, vae, clipvision)