Acly/comfyui-inpaint-nodes

Shape mismatch diffusion_model

Kfredric opened this issue · 7 comments

Hi, I get the following printed out hundreds of times to the console when running this. Although I still get an output what is better than running with out this.
Is this intended behavior?

[ApplyFooocusInpaint] Shape mismatch diffusion_model.middle_block.1.proj_out.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.middle_block.2.in_layers.2.weight, weight not merged (torch.Size([1280, 1280, 3, 3]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.middle_block.2.emb_layers.1.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.middle_block.2.out_layers.3.weight, weight not merged (torch.Size([1280, 1280, 3, 3]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.0.in_layers.2.weight, weight not merged (torch.Size([1280, 2560, 3, 3]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.0.emb_layers.1.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.0.out_layers.3.weight, weight not merged (torch.Size([1280, 1280, 3, 3]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.0.skip_connection.weight, weight not merged (torch.Size([1280, 2560, 1, 1]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.proj_in.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.0.attn1.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.0.attn2.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.0.ff.net.0.proj.weight, weight not merged (torch.Size([10240, 1280]) != torch.Size([10240]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.0.ff.net.2.weight, weight not merged (torch.Size([1280, 5120]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.1.attn1.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.1.attn2.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.1.ff.net.0.proj.weight, weight not merged (torch.Size([10240, 1280]) != torch.Size([10240]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.1.ff.net.2.weight, weight not merged (torch.Size([1280, 5120]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.2.attn1.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.2.attn2.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.2.ff.net.0.proj.weight, weight not merged (torch.Size([10240, 1280]) != torch.Size([10240]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.2.ff.net.2.weight, weight not merged (torch.Size([1280, 5120]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.3.attn1.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.3.attn2.to_out.0.weight, weight not merged (torch.Size([1280, 1280]) != torch.Size([1280]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.3.ff.net.0.proj.weight, weight not merged (torch.Size([10240, 1280]) != torch.Size([10240]))
[ApplyFooocusInpaint] Shape mismatch diffusion_model.output_blocks.0.1.transformer_blocks.3.ff.net.2.weight, weight not merged (torch.Size([1280, 5120]) != torch.Size([1280]))

same as you

This happens on Apply Fooocus inpaint from Today...
Some updates relate this.

Acly commented

Not intended, and likely it means it's not actually working.

Which workflow did you use? I can't reproduce this with latest ComfyUI.

I found the issue that only using with IPAdapter can generates errors!
There was big update on IPAdapter, so this inpaint node doesn't matter!

Acly commented

Still works fine for me with latest IP-adapter changes.

I updated the "promptless" example workflow to use the new V2 ip-adapter nodes.

same problem when running custom_nodes/comfyui-inpaint-nodes/workflows/outpaint.json

works fine after update ComfyUI