DomainAdaptiveReID icon indicating copy to clipboard operation
DomainAdaptiveReID copied to clipboard

i train the model on dataset dukemtmc, how can i evaluate the model on dataset market1501 before Adaptation

Open guoyanzi opened this issue 4 years ago • 1 comments

i cna't load the model trained on duckmtmc, dukemtmc, num_classes=632 , market1501 ,num_classes=676,when i load the model , RuntimeError: Error(s) in loading state_dict for ResNet: size mismatch for classifier_x2.weight: copying a param with shape torch.Size([632, 2048]) from checkpoint, the shape in current model is torch.Size([676, 2048]). size mismatch for classifier_x2.bias: copying a param with shape torch.Size([632]) from checkpoint, the shape in current model is torch.Size([676]).

guoyanzi avatar Mar 05 '20 08:03 guoyanzi

For evaluation, you don't need to care about the last fc layer.

lsongx avatar Mar 05 '20 21:03 lsongx