Skip to content

A reusable class to generate anchor points using KMeans for the VOC dataset.

Notifications You must be signed in to change notification settings

deanhu2/VOC-KMeans-AnchorPoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VOC Kmeans AnchorPoints

The original version from WillieMaddox is available here. The purpose of this version is to provide a simpler solution to drop into any VOC project and provide documentation for new users. Coco functionality has been ignored as I did not require it.

Usage!

For use with darknet download the 2007-2012 datasets, however this library does work with any VOC dataset.

wget https://pjreddie.com/media/files/VOCtrainval_11-May-2012.tar
wget https://pjreddie.com/media/files/VOCtrainval_06-Nov-2007.tar
wget https://pjreddie.com/media/files/VOCtest_06-Nov-2007.tar
tar xf VOCtrainval_11-May-2012.tar
tar xf VOCtrainval_06-Nov-2007.tar
tar xf VOCtest_06-Nov-2007.tar

On Windows:

Manually donwload each tar file and use winrar,winzip or 7zip to extract the files into a single location.

python setup

Instance the class in your python project:

import AnchorLibrary.Anchors as AnchorLibrary


vocLocation = "X:\\Downloads\\training\\VOCdevkit"
getAnchors = AnchorLibrary.Anchor(vocLocation)

About

A reusable class to generate anchor points using KMeans for the VOC dataset.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages