Skip to content

k-means anchors ratios #308

Open
Open
@mnslarcher

Description

@mnslarcher

Hi,

If someone want to give it a try, like https://github.com/Cli98/anchor_computation_tool, I also adapted the code of https://github.com/zhouyuangan/K-Means-Anchors for obtaining anchors ratios using K-Means.

The main difference is that my implementation is faster (less for loops), it takes as input a .json file (not a xml) and has some additional settings (but the Changlin Li repo has more visualization).

https://github.com/mnslarcher/kmeans-anchors-ratios

If you try my code on COCO you will obtain anchors ratios in line with this repo (but for your data set they can be different and this is why it's useful).

Any feedback is appreciated.

UPDATE: I added the commands to get the optimal anchors ratios for COCO, the returned ratios are [(0.6, 1.5), (1.0, 1.0), (1.4, 0.7)], very near to [(0.7, 1.4), (1.0, 1.0), (1.4, 0.7)] (default values of this repo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions