Giter Club home page Giter Club logo

labels_to_cvat's Introduction

labels_to_cvat

Export a YOLO labeled dataset to CVAT. Will add different formats in the future.

How to use

Run:

$ python labels_to_cvat.py -f <path to folder with the images and .txt> -c <class1name,class2name...> 

add -no_zip at the end if you dont need/want the .zip files with the images

This will create 2 .zip files inside the image folder. One with the images and one with the labels and other necessary files to import the dataset into CVAT.

Demo

we have a folder named 'images' with 2 images and their corresponding label (yolo format .txt) like:

tutorial_1

there are 2 types of objects labeled: dog,person

Run: (remember to change the /user/ part or the full path if neccesary)

$ python labels_to_cvat.py -f /home/user/Desktop/images -c dog,person

if you have the images folder and the labels_to_cvat.py in the same folder its easier to run:

$ python labels_to_cvat.py -f images -c dog,person

This will create the images_upload.zip and the annotations_upload.zip inside the images. The first contains all the images and the second zipfile contains the annotations plus the obj.names, obj.data and train.txt files necessary to upload to CVAT in order to edit the labels or export them into another format.

tutorial_2

The files will be rearranged and will look like:

tutorial_3

Autores ✒️

  • Oscar Mauriaca - Desarrollo - xaerincl

labels_to_cvat's People

Contributors

xaerincl avatar

Stargazers

 avatar  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.