Skip to content

Finetuning res101 model pretrained models error #557

Open
@jsuit

Description

@jsuit

So if you try and retrain the resnet101 (faster_rcnn_1_10_9771.pth) you get the following error:

   File "trainval_net.py", line 336, in <module>
      optimizer.step()
   File "... pytorch_0.4/lib/python3.6/site-packages/torch/optim/sgd.py", line 101, in step
      buf.mul_(momentum).add_(1 - dampening, d_p)
   RuntimeError: The expanded size of the tensor (512) must match the existing size (1024) at 
  non-singleton dimension 1

It's the optimizer version knowledge of the parameters is different than what it actually is. Also, you get the same error if you use, /home/jonathan/faster-rcnn.pytorch/faster_rcnn_1_6_9771.pth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions