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
When use the pre-trained model VOLO-D4-448, the error as flow:
Traceback (most recent call last):
File "F:/volo-main/main1_all_complete.py", line 416, in
main()
File "F:/volo-main/main1_all_complete.py", line 168, in main
train_loss,train_accuracy=train(train_loader,model, loss_f,optimizer,epoch,args)
File "F:/volo-main/main1_all_complete.py", line 239, in train
logits,aux,auxx =model(image)
File "D:\Python36\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "F:\volo-main\models\volo.py", line 614, in forward
x = self.forward_tokens(x)
File "F:\volo-main\models\volo.py", line 579, in forward_tokens
x = x + self.pos_embed
RuntimeError: The size of tensor a (28) must match the size of tensor b (14) at non-singleton dimension 2
The text was updated successfully, but these errors were encountered:
When use the pre-trained model VOLO-D4-448, the error as flow:
Traceback (most recent call last):
File "F:/volo-main/main1_all_complete.py", line 416, in
main()
File "F:/volo-main/main1_all_complete.py", line 168, in main
train_loss,train_accuracy=train(train_loader,model, loss_f,optimizer,epoch,args)
File "F:/volo-main/main1_all_complete.py", line 239, in train
logits,aux,auxx =model(image)
File "D:\Python36\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "F:\volo-main\models\volo.py", line 614, in forward
x = self.forward_tokens(x)
File "F:\volo-main\models\volo.py", line 579, in forward_tokens
x = x + self.pos_embed
RuntimeError: The size of tensor a (28) must match the size of tensor b (14) at non-singleton dimension 2
The text was updated successfully, but these errors were encountered: