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
Thanks for your great repo. I changed some models'backbone into MobileViT, but it were wrong in traning. I checked the feature size carefully and I don‘t know how to solve it. Looking for your reply and thanks a lot.
The text was updated successfully, but these errors were encountered:
In External-Attention-pytorch/model/backbone/MobileViT.py,line134,you can change it. nn.Conv2d(inp, hidden_dim, kernel_size=1, stride=self.stride, bias=False),
In External-Attention-pytorch/model/backbone/MobileViT.py,line134,you can change it. nn.Conv2d(inp, hidden_dim, kernel_size=1, stride=self.stride, bias=False),
谢谢您的帮助!!!我按照您的建议修改line 134,这个错误解决了。但是出现了新的错误如下:
raise ValueError('Expected more than 1 value per channel when training, got input size {}'.format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1])
我尝试了drop_last=True和改大batchsize,仍未解决。请问您遇到过这个错误吗?
Thanks for your great repo. I changed some models'backbone into MobileViT, but it were wrong in traning. I checked the feature size carefully and I don‘t know how to solve it. Looking for your reply and thanks a lot.
The text was updated successfully, but these errors were encountered: