Hi @Bronzi88 and @faib,
Thanks for the very informative post and notebook files. I had a go at using the CocoTiny_Retina_Net notebook, and have a few questions about it. If you can give me some pointers about them, that would be much appreciated~!
Having used the following code to generate the anchors,
anchors = create_anchors(sizes=[(32,32),(16,16),(8,8),(4,4)], ratios=[0.5, 1, 2], scales=[0.35, 0.5, 0.6, 1, 1.25, 1.6])
But the next bit to visualise the boxes only referred to the first 18 boxes:
for i, bbox in enumerate(anchors[:18]):
and when creating the RetinaNet model, n_anchors was also set to 18. Why is that? Can a larger (or a different) number of n_anchors be used instead?
Also, the anchor box sizes were defined as
sizes=[(32,32),(16,16),(8,8),(4,4)], and then consistently set when creating the RetinaNet model. I tried to add a further (64,64) to the sizes, but that does not seem to work. However, it seems to be ok to remove the smaller size (4,4) from the array though. I don’t really understand why that is the case?
Thank you very much for your help. And hope you are enjoying your vacation, @Bronzi88!