Closed kadirnar closed 2 years ago
Unitl now I have not tried Scaled-YOLOv4. Could you outline the changes regarding the computation grapth, pre and post-processing?
I did not understand your question. I changed the file paths in the detection file. It works on yolov3 and yolov4 models, but not on scaled-yolov4 and yolov4-mish models.
Scaled Yolov4: https://github.com/AlexeyAB/darknet/issues/7087 Orijinal Repo Scale-Yolov4: https://github.com/WongKinYiu/ScaledYOLOv4 Yolov4-Mish: https://github.com/AlexeyAB/darknet/issues/6987
Pytorch-Yolov3: https://github.com/eriklindernoren/PyTorch-YOLOv3/blob/master/pytorchyolo/detect.py#L19 Yolov4-Csp: https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov4-csp.cfg#L1276 The nms function is used in the PyTorch-YOLOv3 repo. Used diounms in the scaled-yolov4 repo. Could it be because of this?
parser.add_argument("-m", "--model", type=str, default="cfg/yolov4-csp.cfg") parser.add_argument("-w", "--weights", type=str, default="weights/yolov4-csp.weights")
Output-1:
Output-2:
Output-3:
How can i solve this problem?