You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error when i'm trying to train RuntimeError: shape '[1, 125584, 32]' is invalid for input of size 8037376
It is coming from this method tgt2 = self.multihead_attn(query=self.with_pos_embed(tgt, query_pos), key=self.with_pos_embed(memory, pos), value=memory, attn_mask=memory_mask, key_padding_mask=memory_key_padding_mask)[0]
in src/models/transformer/deformable_transformer.py
Any idea why?
The text was updated successfully, but these errors were encountered:
I have met the similar error with you, after I modified the get_ref_imgs function in vid_multi.py, the error is gone.
In my view, it's the self.frame_seg_len[idx] out of idex, I hope this can help you.
I am getting the following error when i'm trying to train
RuntimeError: shape '[1, 125584, 32]' is invalid for input of size 8037376
It is coming from this method
tgt2 = self.multihead_attn(query=self.with_pos_embed(tgt, query_pos), key=self.with_pos_embed(memory, pos), value=memory, attn_mask=memory_mask, key_padding_mask=memory_key_padding_mask)[0]
in src/models/transformer/deformable_transformer.py
Any idea why?
The text was updated successfully, but these errors were encountered: