Primary competition visual

Makerere Fall Armyworm Crop Challenge

Helping Uganda
$1 000 USD
Challenge completed over 3 years ago
Classification
Computer Vision
701 joined
155 active
Starti
Apr 14, 22
Closei
Jul 23, 22
Reveali
Jul 23, 22
User avatar
Koleshjr
Multimedia university of kenya
Target size is not the same as input size fast ai
Help Ā· 16 Apr 2022, 13:29 Ā· 2

I am getting this error on fastai any help?

Target size (torch.Size([32])) must be the same as input size (torch.Size([64]))

Discussion 2 answers

I think the output of the network is of size 64, whereas the original output is of size 32. check the network and class labels again.

16 Apr 2022, 14:07
Upvotes 0
User avatar
Koleshjr
Multimedia university of kenya

Thank you for the reply, but when i change my input to 64 then it throws an error

Target size (torch.Size([64])) must be the same as input size (torch.Size([128]))

It keep on doubling. What loss function are we supposed to use because it seems like its a loss function error. I am using BCEWithLogitLoss().