Steps to how to start labelling objects for TensorFlow
Install labelImg
Clone Repo and place it anywhere (not in labelImg Directory)
Put all .jpg
images in images/
Follow Steps for labelImg
open /images
as dir
change save dir to /annotations
<-- Start labelling -->
Place the .jpg
and .xml
in /images/test
and /images/train
run:
python3 xml_to_csv.py
run:
python3 generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=data/test.record --image_dir=images/ --name={Exact Class Name}
run:
python3 generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record --image_dir=images/ --name={Exact Class Name}`
Class Names are case sensitive
note: install any missing dependecies: i.g.
pip3 install tensorflow Pillow object_detection