Open matheth opened 1 year ago
ya a quick comment at the top of each of the scripts stating "the last line of the file has the name of .json file, so you would just edit that." would have been nice
these scripts dont work dont waste your time thinking about it
Thanks for writing the issue. We check it works using this script global_json2yolo.py.
Looking at the global_json2yolo code, there are some flags. Converting the COCO bbox format to YOLO bbox format.
use_segments=False,
use_keypoints=False,
Converting the COCO segmentation format to YOLO segmentation format.
use_segments=True,
use_keypoints=False,
Converting the COCO keypoints format to YOLO keypoints format.
use_segments=False,
use_keypoints=True,
To convert the COCO segmentation format to YOLO segmentation format.
if __name__ == '__main__':
source = 'COCO'
if source == 'COCO':
convert_coco_json('../datasets/coco/annotations', # directory with *.json
use_segments=True,
use_keypoints=False,
cls91to80=False)
This is the folder structure when we run the script.
Please let us know your opinion.
You're welcome! We understand your concerns. Our team has tested the provided script and it works as expected. The script uses flags to customize the conversion from COCO format to YOLO format, including options for segments and keypoints conversion. Running the script with the appropriate flags should produce the desired output. We recommend trying the example provided and adjusting the script for your specific needs. Let us know if you encounter any issues or need further assistance.
you run the code like this
python code.py
the last line of the file has the name of .json file, so you would just edit that. Having said that, I agree - it could stand to be flushed out quite a lot. They need a video example.
LabelBox should really be the ones providing this. Both companies are kind of just like "meh, you'll figure it out".