shiimizu / ComfyUI-PhotoMaker-Plus

PhotoMaker for ComfyUI
GNU General Public License v3.0
221 stars 22 forks source link

Load Photomaker node gives error #17

Closed MokkaBoss1 closed 8 months ago

MokkaBoss1 commented 8 months ago

since updated node today an errror is produced.

Error occurred when executing PhotoMakerLoader:

Error(s) in loading state_dict for PhotoMakerIDEncoder: Missing key(s) in state_dict: "vision_model.embeddings.class_embedding", "vision_model.embeddings.patch_embedding.weight", "vision_model.embeddings.position_embedding.weight", "vision_model.pre_layrnorm.weight", "vision_model.pre_layrnorm.bias", "vision_model.encoder.layers.0.layer_norm1.weight", "vision_model.encoder.layers.0.layer_norm1.bias", "vision_model.encoder.layers.0.self_attn.q_proj.weight", "vision_model.encoder.layers.0.self_attn.q_proj.bias", "vision_model.encoder.layers.0.self_attn.k_proj.weight", "vision_model.encoder.layers.0.self_attn.k_proj.bias", "vision_model.encoder.layers.0.self_attn.v_proj.weight", "vision_model.encoder.layers.0.self_attn.v_proj.bias", "vision_model.encoder.layers.0.self_attn.out_proj.weight", "vision_model.encoder.layers.0.self_attn.out_proj.bias", "vision_model.encoder.layers.0.layer_norm2.weight", "vision_model.encoder.layers.0.layer_norm2.bias", "vision_model.encoder.layers.0.mlp.fc1.weight", "vision_model.encoder.layers.0.mlp.fc1.bias", "vision_model.encoder.layers.0.mlp.fc2.weight", "vision_model.encoder.layers.0.mlp.fc2.bias", "vision_model.encoder.layers.1.layer_norm1.weight", "vision_model.encoder.layers.1.layer_norm1.bias",

The node was working fine until I updated the node today.

osxdoc commented 8 months ago

Same here, since today comfyui update.

Cgartvfx commented 8 months ago

i also have it, how can i solve it?. Amazing Development Shiimizu, thank you for it!

shiimizu commented 8 months ago
  1. Delete the ConfyUI-PhotoMaker or ConfyUI-PhotoMaker-Plus folder that’s in your custom_nodes folder.
  2. Reinstall the node
MokkaBoss1 commented 8 months ago

Thanks a million. Works fine now

On Fri, 26 Jan 2024 at 04:41, Shiimizu @.***> wrote:

i also have it, how can i solve it?. Amazing Development Shiimizu, thank you for it!

  1. Delete the ConfyUI-PhotoMaker or ConfyUI-PhotoMaker-Plus folder that’s in your custom_nodes folder.
  2. Reinstall the node

— Reply to this email directly, view it on GitHub https://github.com/shiimizu/ComfyUI-PhotoMaker-Plus/issues/17#issuecomment-1911470578, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAPFHJEVAMSM2T7TQ3ZQFATYQMXZNAVCNFSM6AAAAABCJPVK4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRGQ3TANJXHA . You are receiving this because you authored the thread.Message ID: @.***>