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

yolo layer difference between yolov4.cfg and yolov4.cfg #1560

Closed dadaligoudan closed 3 years ago

dadaligoudan commented 4 years ago

❔Question

Hi, I want to know what the difference between yolov3.cfg and yolov4.cfg about the yolo layer? How do you use this parameters in the yolo layer? After transfering to caffe model, the model i trained using the yolov4.cfg doesn't perform the way it should be. The bounding boxes do not match the object, seems it has been scaled. But the yolov3.cfg performed well. I have checked your official code, i still cann't find the reason. Could you please help me with this, thanks. YOLOv4 yolov

Additional context

github-actions[bot] commented 4 years ago

Hello @dadaligoudan, thank you for your interest in our work! Ultralytics has open-sourced YOLOv5 at https://github.com/ultralytics/yolov5, featuring faster, lighter and more accurate object detection. YOLOv5 is recommended for all new projects.



To continue with this repo, please visit our Custom Training Tutorial to get started, and see our Google Colab Notebook, Docker Image, and GCP Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

For more information please visit https://www.ultralytics.com.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

glenn-jocher commented 1 year ago

@dadaligoudan the YOLOv4 architecture introduces new hyperparameters in the YOLO layer which may impact inference. To troubleshoot the issue, I recommend checking the input dimensions, anchors, and scale settings between the two configurations. Additionally, ensure that the Caffe conversion and deployment are compatible with the modified architecture. If the issue persists, please provide more details for a thorough diagnosis.