ayooshkathuria / YOLO_v3_tutorial_from_scratch

Accompanying code for Paperspace tutorial series "How to Implement YOLO v3 Object Detector from Scratch"
https://blog.paperspace.com/how-to-implement-a-yolo-object-detector-in-pytorch/
2.32k stars 725 forks source link

Difficulty on understanding the anchors #39

Open xuexingyu24 opened 5 years ago

xuexingyu24 commented 5 years ago

Hello, ayooshkathuria

Can you help explain the below line from yolov3.cfg

anchors = 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326

It is understood that there are three different detection layers such that the last layer has mask with 0, 1, 2 representing the first three anchors. But what are these numbers representing ? I doubt there are dimensions for each anchors such that the height and width (pw and ph) of the pre-defined default bounding boxes ?

Please correct me if I am wrong. Thanks for your explanation