ultralytics / yolov3

YOLOv3 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
10.25k stars 3.45k forks source link

question about yolov3.cfg and yolov3-spp.cfg? #520

Closed H-YunHui closed 5 years ago

H-YunHui commented 5 years ago

@glenn-jocher in yolov3.cfg, the width and height are 416, the anchor: 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326 in yolov3-spp.cfg, the width and height are 608, the anchor also: 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326 Why is the input size(width*height) different,but the anchor are same?

glenn-jocher commented 5 years ago

@H-YunHui anchor size is in pixels and read from the cfg file. Training size is not read from the cfg, it comes from the --img-size argparser argument. The two are independent.