This code divides the coco format segmentation json file into individual json files according to the file name, and merges only the desired files into one json file.
Python | Windows | Mac | Linux |
---|---|---|---|
3.8 | windows10 | Proceeding | Proceeding |
Clone repo and install requirements.txt in a Python>=3.8.0 environment
git clone https://github.com/dohyeonYoon/COCO-split-merge # clone
cd COCO-split-merge
pip install -r requirements.txt # install
You can split the desired json file into individual json files according to the file name and optionally merge them again.
cd src
python coco_json_split
python coco_json_merge
python coco_json_edit(optional)
This code only works for coco format segmentation json file.