PhotoMaker icon indicating copy to clipboard operation
PhotoMaker copied to clipboard

error in running demo note book

Open mahilaMoghadami opened this issue 1 year ago • 4 comments

/content/PhotoMaker/photomaker/model.py in fuse_fn(self, prompt_embeds, id_embeds) 47 48 def fuse_fn(self, prompt_embeds, id_embeds): ---> 49 stacked_id_embeds = torch.cat([prompt_embeds, id_embeds], dim=-1) 50 stacked_id_embeds = self.mlp1(stacked_id_embeds) + prompt_embeds 51 stacked_id_embeds = self.mlp2(stacked_id_embeds)

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 8 but got size 4 for tensor number 1 in the list.

mahilaMoghadami avatar Oct 02 '24 06:10 mahilaMoghadami

I have the same error

rich-sz avatar Oct 14 '24 08:10 rich-sz

i have the same error

GritLs avatar Dec 31 '24 06:12 GritLs

same to you , what's the matter ?

ucas010 avatar Jul 03 '25 06:07 ucas010

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 8 but got size 4 for tensor number 1 in the list.

ucas010 avatar Jul 03 '25 06:07 ucas010