segment-anything icon indicating copy to clipboard operation
segment-anything copied to clipboard

scale input image size problem

Open nazimii opened this issue 1 year ago • 0 comments

Hi, I meet a problem when try to scale input image size, 1024 is to big so I scale it to 224, but if I use the "use_rel_pos=True", the input image_size args in all ckpt is 1024, it will report error (size mismatch at blocks 2, 5、8、11) at Attention() module in VIT. image so, is it feasible to set encoder_global_attn_indexes = [] to avoid this error? Will the performance degrade?

nazimii avatar May 08 '23 06:05 nazimii