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 724 forks source link

In function prep_image #52

Open KaiyueTao opened 4 years ago

KaiyueTao commented 4 years ago

the code in tutorial is different from here:

github:

img = (letterbox_image(img, (inp_dim, inp_dim)))

in tutorial:

img = cv2.resize(img, (inp_dim, inp_dim))

which will make scaling step a little bit wrong(because no letterbox step, then bbox coordinate scaling should be calculated separately)

Anyway, not a big deal, but it's easy to misunderstand, so just issue here:)