rykov8 / ssd_keras

Port of Single Shot MultiBox Detector to Keras
MIT License
1.1k stars 553 forks source link

what's the difference between prior_boxes_ssd300.pkl and PriorBox #116

Open LinHungShi opened 6 years ago

LinHungShi commented 6 years ago

Hi, thanks for your hard work. I look into the code, and try to reduce model size. But I am a bit confused with prior_boxes_ssd300.pkl and PriorBox. My guess is that, In pkl file it has the upper-left and bottom-right coordinates of the default boxes, which are used for mapping into ground truth label. On the other hand, PriorBox generates the default boxes for each location in the input image based on the size of feature maps. Am I right? If I am right, does it mean it's possible that we can use pkl file to generate default boxes instead of calculating it in PriorBox?

KazuyaTomita commented 6 years ago

My guess is same with yours. So, you can do so, but the affected area seems to be big. It would be a hard job.