Skip to content

How to fill the 'ANCHORS' in yolo.py? #23

Closed
@brucelee78

Description

@brucelee78

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 in yolo.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 in README..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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions