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 answers
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in OBJECT-DETECTION
- coco API installation error in anaconda prompt
- I am trying to make a project of object detection on kaggle notebook using yolo. and i am facing this error. here is my code and my error
- How to add a class to an existing model, reduce the images or classes and limit the objects it can detect at a time
- Ultralytics doesn't find source
- How do I fix this error code on Thonny For Object Detection
- Classification errors in object detection
- Can i merge my custom model and pretrained model in yolov9
- unable to import model model_main (from object_detection import model_main)
- IndexError: too many indices for tensor of dimension 0
- TensorflowLite output tensorsor data extraction
- How do I run the following script in Raspberry pi 4 terminal as soon as it starts up?
- ModuleNotFoundError: No module named 'setuptools'
- Tensorflow Lite: ImportError: libusb-1.0.so.0: cannot open shared object file: No such file or directory
- No bouding box displayed with draw_bouding_boxes from pytorch
- Tensorflow: model_builder_tf2_test.py: AttributeError: module 'keras._tf_keras.keras.layers' has no attribute 'experimental'
Related Questions in SINGLE-SHOT-DETECTOR
- Why am I getting an attribute error when trying to use tf.compat.v1
- Train, eval, and test in Tensorflow Object Detection API (TFOD TF2)
- Quantization for Single shot detector(SSD)
- How to Convert labelme json data to Pascal VOC format using labelme2voc.py
- Getting Nan value for the loss while training a SSD-Mobilenet that was using a custom loss function
- How to display the number of objects in an image for single class?
- How to fix 'tensor is out of scope and cannot be use here' ? in Python
- OpenVino anchor output Python
- Unstable loss SSD-300 due to which mAP is low
- how to create pretrained weight using VGG16(pytorch) with custom datasets
- Reduce Training steps for SSD-300
- How to predict Precision, Recall and F1 score after training SSD
- Training SSD gives ValueError: Can't load save_path when it is None
- Tensorflow Object-API: convert ssd model to tflite and use it in python
- Output tensor size mismatch with SSD FPN Models on mobile
Related Questions in LABELME
- Image annotation in computer vision
- labelme does not open window
- Cannot Install Labelme in Anaconda Environment
- How to Convert labelme json data to Pascal VOC format using labelme2voc.py
- Create Empty Json with 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?
- pip install labelme failing because FreeType version 2.3 or higher is required
- Inference on image dataset without annotations in detectron2
- From LabelMe .xml polygon to coco format .json
- Convert coco to labelme format
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?
Popular Tags
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)
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.