I have annotated images in label-me and the annotation is saved in .json file. I am trying to train a SSD object dictation model and I need data in Pascal VOC format. Label me has a file named labelme2voc.py I tried multiple time and failed each time the documentation regarding this is also very poor. Does anyone know how to convert json to Pascal VOC using these? any-other way would also be appreciated. I have 4 classes but each image conations upwards of 50 annotations.
How to Convert labelme json data to Pascal VOC format using labelme2voc.py
543 Views Asked by What At
1
There are 1 best solutions below
Related Questions in JSON
- getting undefined while iterating json
- How can I serialize a numpy array while preserving matrix dimensions?
- What is best way to check if any of the property of object is null or empty?
- How to query JSON data according to JSON array's size with Spark SQL?
- Extracting data from json_decode with lat and lng geolocation
- Convert JSON.gz to JSON in node js
- How do I get the type to convert to when deserializing from Jackson
- Escape dot in jquery validate plugin
- Are allOf and properties keywords interchangeable?
- Sort continents by amount of countries
- Is there a data format lighter than json?
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- How to read JSON data from a web server running PHP and MySQL?
- Parse Nsmutabledictionary and extract value
- Handle empty JSON values in Java
Related Questions in OBJECT-DETECTION
- Applying homography on non planar surface
- Get depth distance from an object
- OpenCV HOG+SVM: assertion failed checkDetectorSize()
- Data Augmentation for Object Detection using Deep Learning
- is Faster RCNN rotation invariant?
- Find an image inside of a video using python
- AttributeError: 'builtin_function_or_method' object has no attribute 'detectMultiScale'
- Image preprocessing in deep learning
- Why Yolo_9000 use only local image information?
- Error while detecting Face and Eye using OpenCV (Haar Cascade Object Detection)
- What is best Real Time algorithms for image segmentation and object detection (indoor environment)?
- Identifying moving objects using optical flow
- OpenCV Haar Classifier Killed
- Head detection using HOG and SVM
- What can I detect with the haar classifier?
Related Questions in SINGLE-SHOT-DETECTOR
- Why am I getting an attribute error when trying to use tf.compat.v1
- OpenVino anchor output Python
- Post process of tf2 SSD detection models
- Tensorflow Object-API: convert ssd model to tflite and use it in python
- Training SSD gives ValueError: Can't load save_path when it is None
- How to predict Precision, Recall and F1 score after training SSD
- Output tensor size mismatch with SSD FPN Models on mobile
- How to Convert labelme json data to Pascal VOC format using labelme2voc.py
- Quantization for Single shot detector(SSD)
- How to display the number of objects in an image for single class?
- Getting Nan value for the loss while training a SSD-Mobilenet that was using a custom loss function
- Train, eval, and test in Tensorflow Object Detection API (TFOD TF2)
- Reduce Training steps for SSD-300
- how to create pretrained weight using VGG16(pytorch) with custom datasets
- Unstable loss SSD-300 due to which mAP is low
Related Questions in LABELME
- How do I use the given XML annotation files in my CNN to classify images
- How do I convert labelme json directory to one json file for use in MaskRCNN?
- Convert coco to labelme format
- How to Convert labelme json data to Pascal VOC format using labelme2voc.py
- Inference on image dataset without annotations in detectron2
- pip install labelme failing because FreeType version 2.3 or higher is required
- From LabelMe .xml polygon to coco format .json
- Cannot Install Labelme in Anaconda Environment
- labelme does not open window
- Image annotation in computer vision
- Create Empty Json with Labelme
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First you need to download labelme2voc.py file and save to your computer (I saved inside the dataset folder).
Then you need to create a "labels" file containing the label names you used, that needs to be similar to the one provided by labelme. You can also save this file inside the dataset folder.
Then you're gonna run
python3 labelme2voc.py data_annotaded data_dataset_voc --labels labels.txtYou're gonne change
data_annotadedby the path of the data you annotated (where the annotated json is located). And you're gonna changedata_dataset_vocby any name you wish your output folder will be called.In my case I have the following folder structure:
And I'm calling
python3 labelme2voc.py train_labelme train_labelme/train_voc --labels labels.txtto generate the annotation.