This code will help to convert any shaped annotations such as circle, rectangle or polygon into YOLO format.

RUN the code

python labelme2yolo.py --json_dir "your .json and .jpg conatinining folder path"

NOTE: This code also splits the data into train, test and validation folders. You can modify the desired ratio inside the code.