GithubHelp home page GithubHelp logo

normantud / convert-yolo-to-pascalvoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carolinepacheco/convert-yolo-to-pascalvoc

0.0 1.0 0.0 1.99 MB

A python script to convert COCO into Pascal VOC 2012 format

Python 100.00%

convert-yolo-to-pascalvoc's Introduction

Convert-YOLO-to-PascalVOC

Last Page Update: 20/07/2020

A python script to convert YOLO into Pascal VOC 2012 format. It generates xml annotation file in PASCAL VOC format for Object Detection.

Notes

  • Make sure you have the dependencies listed on yolo_to_voc.py.

  • Update root path (where this script lies) in line 46. ROOT = 'coco'.

  • Let's say that you have a custom dataset, which is not included in COCO. eg ship. Add its name to YOLO_CLASSES=(), in the first position.

  • Remove images that are already in /coco/images, /coco/labels and /coco/outputs.

  • Put all your images at /coco/images folder.

  • Put corresponding annotations (.txt files) to /coco/labels

Prerequisites (my environment)

  • Python 3.8.3

  • Numpy

  • Opencv

Usage

Please to run this script use the command below :

python3 yolo_to_voc.py

or

python yolo_to_voc.py

Some academic projects

https://www.behance.net/carolinepacheco

Medium blog site

https://medium.com/@lolyne.pacheco

convert-yolo-to-pascalvoc's People

Contributors

carolinepacheco avatar normantud avatar

Watchers

 avatar

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.