-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to fill the 'ANCHORS' in yolo.py? #23
Comments
@brucelee78 Darknet uses a list of indices (mask) to define which anchors to use in each YOLO layer. For example, if the first YOLO layer has a mask of Repeat the above step for the second and third layers. Group anchors for all YOLO layers to get |
OK, I get it , Thank you for your detail reply! |
Hello , thank you to open your code!
i want to use it detect the airplane which is used our own datasets, and need to change the anchors in darknet(YOLOv4) cfg file
so if I use your code ,how to fill the
ANCHORS
inyolo.py
? Could you give a example to achieve it ?because i don't understand that
You need to mask out the anchors for each yolo layer using the indices in mask. For tiny and YOLOv3, the anchors are usually flipped.
this sentence inREADME..md
for a instance , my anchors are
12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
and how to fill the 'ANCHORS' in yolo.py?
Thank you very much!
The text was updated successfully, but these errors were encountered: