All credit for this AI model goes to Anusua Trivedi, Senior Data Scientist for Microsoft AI for Good Team. The AI model is Copyright (c) Microsoft Corporation. All rights reserved.
- Clone github: https://github.com/tensorflow/models
- Use code here: https://github.com/tensorflow/models/tree/master/research/object_detection
export PYTHONPATH=$PYTHONPATH:/home//<base_dir>/models/research:/home/antriv/notebooks/models/research/slim
python home//<base_dir>/models/research/object_detection/builders/model_builder_test.py
- python /home//<base_dir>/nvidia_smoke/data/smoke_annotations/train_val_test_split.py
- python /home//<base_dir>/nvidia_smoke/data/smoke_annotations/generate_tfrecord.py --csv_input=/home//<base_dir>/nvidia_smoke/data/smoke_annotations/train.csv --output_path=/home//<base_dir>/nvidia_smoke/data/smoke_annotations/train.record --image_dir=/home//<base_dir>/nvidia_smoke/data/smoke_annotations/PNGImages
- python /home//<base_dir>/nvidia_smoke/data/smoke_annotations/generate_tfrecord.py --csv_input=/home//<base_dir>/nvidia_smoke/data/smoke_annotations/test.csv --output_path=/home//<base_dir>/nvidia_smoke/data/smoke_annotations/test.record --image_dir=/home//<base_dir>/nvidia_smoke/data/smoke_annotations/PNGImages
python /home//<base_dir>/models/research/object_detection/model_main.py
--pipeline_config_path=/home//<base_dir>/nvidia_smoke/ssd_mobilenet_v2_smoke/pipeline.config
--model_dir=/home//<base_dir>/nvidia_smoke/ssd_mobilenet_v2_smoke/smoke_model
--num_train_steps=10000
--alsologtostderr
python /home//<base_dir>/models/research/object_detection/export_inference_graph.py --input_type image_tensor --pipeline_config_path /home//<base_dir>/nvidia_smoke/ssd_mobilenet_v2_smoke/pipeline.config --trained_checkpoint_prefix /home//<base_dir>/nvidia_smoke/ssd_mobilenet_v2_smoke/smoke_model/model.ckpt-10000 --output_directory /home//<base_dir>/nvidia_smoke/ssd_mobilenet_v2_smoke/smoke_model/frozen_graph
python /home//<base_dir>/models/research/object_detection/nvidia_smoke_OD_inference.py NOTE: You will need Xming server client to test locally