Training Custom Object Detector - TensorFlow Object Detection API Tutorial p.5

sentdex · 232K views · 2017 · 18:14

Open on YouTube

Machine learning & deep learningComputer vision, speech & NLPtutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they were following when they hit errors running train.py, such as missing modules, missing pbtxt files and resource exhaustion, while training custom object detectors.

Recommended by 0 people across 0 different months, 2017 to 2020.

What it is

Part 5 of sentdex's TensorFlow Object Detection API tutorial series, a screen-recorded Python walkthrough of training a custom object detector. It covers preparing images and matching TFRecords, editing the model configuration file, and launching training with train.py.

What people said

Cites user7659542 · 2017-10 · Stack Overflow · on “ImportError: No module named 'deployment'”

Not sure whether I should be posting this on askubuntu or here. I am trying to perform object detection using Tensorflow. I am therefor following this tutorial [this video] (this link shows the exact issue I am facing). When running this script [LINK] , I get this error: $ python3 train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config Traceback (most recent call last): File "train.py", line 51, in <module> from object_detection import trainer File "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/trainer.py", line 33, in <module> from deployment import model_deploy ImportError: No module named 'deployment Acc

Cites Traviccc · 2018-02 · Stack Overflow · on “I'm trying to train my own object-detection using tensorflow, but I get the following error”

I'm trying to classify my own images in tensorflow. I have entered the following command to train my model: python3 train.py --logstderr --train_dir=training/ -- pipeline_config_path=training/ssd_mobilenet_v1_pets.config From tutorial [this video] time 12:38 and I get the following error: Traceback (most recent call last): File "train.py", line 51, in <module> from object_detection.builders import model_builder File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 664, in _load_unlocked File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible File "

Cites Wilbus Fugu · 2018-02 · Stack Overflow · on “Tensorflow Python OutofRange Error: Resource Exhausted”

I am following the following Tensorflow Object Detection tutorial Tensorflow Object Detection [this video] . I have downloaded the models from the following GitHub link Object Models [LINK] . I am trying to detect flowers using custom data. The TFRecords and the labels have all been created and as shown in the above tutorial when I run the train.py as python train.py --logtostderr --train_dir=training\ --pipeline_config_path=training\ssd_mobilenet_v1_pets.config . I get the following error: Instructions for updating: Please switch to tf.train.create_global_step INFO:tensorflow:depth of additional conv before box predictor: 0 INFO:tensorflow:depth of additional conv before box predictor: 0 INFO:te

Cites muyece · 2018-06 · Stack Overflow · on “tensorflow - object-detection.pbtxt; No such file or directory”

I am trying to retrain a pretrained model, by following the steps of this tutorial [LINK] or the corresponding youtube video [this video] . This is the relevant part of my directory structure: ~/Desktop/models/research/object_detection$ ls anchor_generators evaluator.py __init__.py model_main.py test_ckpt box_coders eval_util.py inputs.py models test_data builders eval_util_test.py inputs_test.py model_tpu_main.py test_images CONTRIBUTING.md exporter.py matchers object_detection_tutorial.ipynb trainer.py core exporter_test.py meta_architectures protos trainer_test.py data export_inference_graph.py metrics __pycache__ training data_decoders g3doc model_hparams.py README.md train.py dataset_tools i

Cites Abir Khan · 2020-10 · Stack Overflow · on “ModuleNotFoundError: No module named 'official'”

ValueError: ssd_mobilenet_v1 is not supported. See model_builder.py for features extractors compatible with different versions of Tensorflow [this video] ( i was trying this)