Coder Social home page Coder Social logo

k-means-anchors's Introduction

K-Means-Anchors

Usage:

Just run jupyter notebook and replace toy path with your root path that point to annotation files. And it will compute anchor ratios for your train dataset.

The annotation file formate should be like follow:

<annotation>
	<folder>3</folder>
	<filename>ocr_20190202_5c55198534963.jpg</filename>
	<path>ocr_20190202_5c55198534963.jpg</path>
	<source>
		<database>Unknown</database>
	</source>
	<size>
		<width>640</width>
		<height>832</height>
		<depth>3</depth>
	</size>
	<segmented>0</segmented>
	<object>
		<name>driving_license</name>
		<pose>Unspecified</pose>
		<truncated>0</truncated>
		<difficult>0</difficult>
		<bndbox>
			<xmin>37</xmin>
			<ymin>318</ymin>
			<xmax>562</xmax>
			<ymax>664</ymax>
		</bndbox>
	</object>
</annotation>

Note

I am sorry for that I forgot some repositories which some codes came from, pls make a pull request if you knows. Thank u.

k-means-anchors's People

Contributors

ygean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

k-means-anchors's Issues

cluster problem

This is my annotation path. But I find error when i run the cluster. Can any one help me?
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.