vit-pytorch
vit-pytorch copied to clipboard
Distillation RuntimeError
Hi,
I am using distiller where teacher network is resnet34.
I am getting this error while training the model:
distiller(data, target)
Traceback (most recent call last):
File "/home/neel/miniconda3/envs/process/lib/python3.7/code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
the shape of my data is: torch.Size([24, 3, 224, 224]) the shape of the target is : torch.Size([24])
Is there something wrong? I am using the same instructions from the GitHub homepage. Has anyone else experienced this?
Neel
@NeelKanwal Looking at this stackoverflow q around this - https://stackoverflow.com/questions/56783182/runtimeerror-the-size-of-tensor-a-133-must-match-the-size-of-tensor-b-10-at
Are you using the same dataloader for both your data and the target / could this potentially be a dataloader issue? - Clerkie (clerkie.co/)