Create selective class tfrecord from coco2017 dataset very simple selective class tfrecord creator from coco2017 dataset.
The program works jupyter notebook (.ipynb file)
- Clone this Repo .
- Download cocoa2017 dataset with annotations files from: http://cocodataset.org/#download
Under "Images" download
2017 Train images [118K/18GB]
2017 Val images [5K/1GB]
Under "Annotations" download
2017 Train/Val annotations [241MB]
- <#Dataset path#>
- annotations (folder)
- train2017
- val2017
- test2017 (not compulsory)
- Python 3
- COCO API
- Tensorflow
- numpy
- PILLOW
- Jupyter Notebook
This you would already know
You will need COCO API. Installation instruction can be found on this link COCO API Still for your quick reference will list installation instruction:
Clone git repo:
git clone https://github.com/cocodataset/cocoapi
cd cocoapi/PythonAPI
make
*if you use 'python3' to run python files please make chanes in cocoapi/PythonAPI/Makefile (replace 'python' with 'python3')
pip3 install tensorflow
or
pip3 install tensorflow-gpu
pip3 install numpy
pip3 install pillow
pip3 install jupyter
Post cloning the Repo, go to repo dir.
jupyter notebook
the notebook will open in a browser. double click on ipynb file and start executing cell by cell :)
This project is licensed under the MIT License - see the LICENSE file for details