Trans2Seg
Trans2Seg copied to clipboard
about demo
Does anyone knows how to use the demo?It always has a AssertionError when i use it. File "E:\python\Trans2Seg-master\segmentron\models\trans2seg.py", line 74, in forward cls_token, x = self.vit.forward_encoder(x) File "E:\python\Trans2Seg-master\segmentron\modules\transformer.py", line 224, in forward_encoder pos_embed = self.resize_pos_embed(x, pos_embed) File "E:\python\Trans2Seg-master\segmentron\modules\transformer.py", line 242, in resize_pos_embed assert x_h * x_w == hw-1 AssertionError
I have the same problem too
I have the same problem too
Have you solved it?
Not yet . If you soved it please tell me
@3Dimax @WTsPython , try this fix: https://github.com/leochan2009/Trans2Seg/blob/GLDataset/segmentron/modules/transformer.py#L134
@3Dimax @WTsPython , try this fix: https://github.com/leochan2009/Trans2Seg/blob/GLDataset/segmentron/modules/transformer.py#L134
It seems that this fix cannot solve this problem. I still get an assertion error when trying to use the demo.py, lol