roytseng-tw / Detectron.pytorch

A pytorch implementation of Detectron. Both training from scratch and inferring directly from pretrained Detectron weights are available.
MIT License
2.82k stars 567 forks source link

Cannot test with the pre-trained Detectron model? #142

Closed baiyancheng20 closed 5 years ago

baiyancheng20 commented 6 years ago

I use the following commands for inferring: python tools/infer_simple.py --dataset coco --cfg ./configs/baselines/e2e_faster_rcnn_R-50-C4_2x.yaml --load_detectron ./model_final.pkl --image_dir ./demo/sample_images --output_dir ./demo/

I got the following error: p_tensor.copy_(torch.Tensor(src_blobs[d_name])) KeyError: 'conv_rpn_w'

I checked the src_blobs in detectron_weight_helper.py and I found the key and value of 'conv_rpn_w' didn't exit. Could you help me deal with this?

baiyancheng20 commented 5 years ago

Problem has been solved. Download the wrong model.

XPandora commented 5 years ago

Hi, I have the same problem, can you give a correct model link?

MindyZLM commented 5 years ago

@XPandora Hi, I have the same problem,can you tell me how to solve it? thanks!