wizyoung / YOLOv3_TensorFlow

Complete YOLO v3 TensorFlow implementation. Support training on your own dataset.
MIT License
1.55k stars 580 forks source link

How does fix_padding work #104

Closed Cli98 closed 5 years ago

Cli98 commented 5 years ago

Hi everyone,

I wonder if someone can discuss how _fix_padding function work?

Thank you

wizyoung commented 5 years ago

This comes from the yolo source code. see yolo cfg here: https://github.com/pjreddie/darknet/blob/master/cfg/yolov3-spp.cfg#L30.

pad = 1 means padding 1 pixel at left while keeping the same image size after padding.

Cli98 commented 5 years ago

Thanks for your kindly response.