Cheems-Seminar / grounded-segment-any-parts

Grounded Segment Anything: From Objects to Parts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glip demo run error

LengZhuo0831 opened this issue · comments

Hello, thanks for your contributions. But there's a bug when I run demo_glip_sam.py, how can I solve it? Looking forward to your reply.

mnt/lustre/lengzhuo/Projects331/segment-anything-and-name-it/glip/maskrcnn_ benchmark/utils/fuse_helper.py:421 in single_attention_call
│   419 │   def single_attention_call(self, v, l, attention_mask_l=None, dummy 
│   420 │   │   v = self.layer_norm_v(v)                                       
│ ❱ 421    │   l = self.layer_norm_l(l)                                       
│   422 │   │   delta_v, delta_l = self.attn(v, l, attention_mask_l=attention_ 
│   423 │   │   # v, l = v + delta_v, l + delta_l                              
│   424 │   │   v = v + self.drop_path(self.gamma_v * delta_v)                 
RuntimeError: Given normalized_shape=[1024], expected input with shape [*, 1024], but got input of size[1, 256, 768]

Hi, @LengZhuo0831

Thanks for your interest in our project.

Could you provide us with your command and full error log?

I think I have got it, thanks.