tensorflow-yolov4-tflite icon indicating copy to clipboard operation
tensorflow-yolov4-tflite copied to clipboard

Error in anchors for Yolov4 tiny

Open aniket611 opened this issue 3 years ago • 1 comments

The anchors defined for YOLOv4 tiny network are different than those given in original YOLOv4 tiny in darknet. https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov4-tiny.cfg Original anchors are: anchors = 10,14, 23,27, 37,58, 81,82, 135,169, 344,319 In config.py, the anchors are: __C.YOLO.ANCHORS_TINY = [23,27, 37,58, 81,82, 81,82, 135,169, 344,319]

This can create wrong outputs if model is trained on darknet and this repo is used for model conversion and inference. If these settings are as per some specific application then we can close this issue.

aniket611 avatar May 23 '22 14:05 aniket611

Hi, if this finding is true, can i simply change the anchors values to solve this ?

TZECHIN6 avatar Jun 16 '22 06:06 TZECHIN6