Faster-rcnn.pytorch: load pretrained model failed?

Created on 22 Oct 2018  路  2Comments  路  Source: jwyang/faster-rcnn.pytorch

download from report res101 link, and command as follow:
python demo.py --net res101 --dataset coco --checksession 1 --checkepoch 10 --checkpoint 9771 --cuda --load_dir data/pretrained_model

image

Most helpful comment

Sorry. I found this in the test_net.py file. You may just replace [8,16,32] with [4,8,16,32] by args.set_cfgs = ['ANCHOR_SCALES', '[4, 8, 16, 32]', 'ANCHOR_RATIOS', '[0.5,1,2]']

All 2 comments

Yeah. I had the exact the same error. It seems that in the pretrained model, the RPN has 12 anchor boxes, which result in 24 scores and 48 coordinates, while in current model definition there were only 9 (3x3) anchor boxes.
Any ideas on how to redefine the anchor boxes (ratios and scales) @jwyang
Thanks so much.

Sorry. I found this in the test_net.py file. You may just replace [8,16,32] with [4,8,16,32] by args.set_cfgs = ['ANCHOR_SCALES', '[4, 8, 16, 32]', 'ANCHOR_RATIOS', '[0.5,1,2]']

Was this page helpful?
0 / 5 - 0 ratings