huanghoujing / beyond-part-models

PCB of paper: Beyond Part Models: Person Retrieval with Refined Part Pooling, using Pytorch
331 stars 81 forks source link

Different CMC for model_weight_file #29

Closed wang5566 closed 5 years ago

wang5566 commented 5 years ago

I run the test mode with config.model_weight_file = "my model path", exp_dir= "" and config.model_weight_file = '', exp_dir="". And I got two different cmc results with much error. I only have one model file, and I check the code for load statics that there is no something different for the model loaded. So what the problem it may be?

wang5566 commented 5 years ago

I found the error when I load from weight file it will load weight with statics_dict including model and optimizer weight, so I should transfer only model static dict to the dest model. I finally got the correct answer.