"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "da84f0b15f5c32ab4823e67316bc670f10c43e82"
Commit 71713888 authored by comfyanonymous's avatar comfyanonymous
Browse files

Print missing VAE keys.

parent 76e0f8fc
...@@ -152,7 +152,9 @@ class VAE: ...@@ -152,7 +152,9 @@ class VAE:
sd = comfy.utils.load_torch_file(ckpt_path) sd = comfy.utils.load_torch_file(ckpt_path)
if 'decoder.up_blocks.0.resnets.0.norm1.weight' in sd.keys(): #diffusers format if 'decoder.up_blocks.0.resnets.0.norm1.weight' in sd.keys(): #diffusers format
sd = diffusers_convert.convert_vae_state_dict(sd) sd = diffusers_convert.convert_vae_state_dict(sd)
self.first_stage_model.load_state_dict(sd, strict=False) m, u = self.first_stage_model.load_state_dict(sd, strict=False)
if len(m) > 0:
print("Missing VAE keys", m)
if device is None: if device is None:
device = model_management.vae_device() device = model_management.vae_device()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment