git clone https://github.com/tensorflow/models
cd models/research ; export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim ; protoc object_detection/protos/*.proto --python_out=. ; cd ../..
cd data ; wget http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_coco_2017_11_17.tar.gz ; tar -xzf ssd_mobilenet_v1_coco_2017_11_17.tar.gz
sh 1_movie_to_images.sh
python 2_resize_images.py
python 3_xml_to_csv.py
python 4_random_split_csv.py
- Create train data:
python 5_generate_tf_records.py --csv_input=data/train_labels.csv --output_path=data/train.record
- Create test data:
python 5_generate_tf_records.py --csv_input=data/test_labels.csv --output_path=data/test.record
- You need to follow the instructions
echo 6_training_job.txt
- You need to follow the instructions
echo 6_evaluation_job.txt
tensorboard --logdir=`pwd`/train
python 7_object_detection_app.py
or do it by multithreading
python 7_object_detection_multithreading.py