Questions tagged [object-detection-api]

Questions related to the tensorflow object detection api

Tensorflow object detection api is found at https://github.com/tensorflow/models/tree/master/research/object_detection

1146 questions
100
votes
11 answers

How to solve "AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key"?

I encountered it while executing from object_detection.utils import label_map_util in jupyter notebook. It is actually the tensorflow object detection tutorial notebook(it comes with the tensorflow object detection api) The complete error…
50
votes
8 answers

cannot import name '_registerMatType' from 'cv2.cv2'

I got below error message when I run model_main_tf2.py on Object Detection API: Traceback (most recent call last): File "/content/models/research/object_detection/model_main_tf2.py", line 32, in from object_detection import…
Roger Jin
  • 503
  • 1
  • 4
  • 6
38
votes
3 answers

od_graph_def = tf.GraphDef() AttributeError: module 'tensorflow' has no attribute 'GraphDef'

I have a mac and I am using tensorflow 2.0, python 3.7. I am following the tutorial for creating an object detection model for real-time application. but i am getting the following…
Iyad Alsulaiman
  • 453
  • 2
  • 5
  • 5
38
votes
2 answers

What is difference frozen_inference_graph.pb and saved_model.pb?

I have a trained model (Faster R-CNN) which I exported using export_inference_graph.py to use for inference. I'm trying to understand the difference between the created frozen_inference_graph.pb and saved_model.pb and also model.ckpt* files. I've…
nickponline
  • 25,354
  • 32
  • 99
  • 167
29
votes
3 answers

Get the bounding box coordinates in the TensorFlow object detection API tutorial

I am new to both Python and Tensorflow. I am trying to run the object detection tutorial file from the Tensorflow Object Detection API, but I cannot find where I can get the coordinates of the bounding boxes when objects are detected. Relevant…
Mandy
  • 325
  • 1
  • 4
  • 5
20
votes
2 answers

Understanding COCO evaluation "maximum detections"

I started using the cocoapi to evaluate a model trained using the Object Detection API. After reading various sources that explain mean average precision (mAP) and recall, I am confused with the "maximum detections" paramter used in the…
mincos
  • 401
  • 1
  • 4
  • 13
16
votes
4 answers

Some Python objects were not bound to checkpointed values

I am trying to get started with Tensorflow 2.0 Object Detection API. I have gone through the installation following the official tutorial and I pass all the tests. However, I keep getting an error message that I don't understand when I try to run…
15
votes
3 answers

How to find the Input and Output Nodes of a Frozen Model

I want to use tensorflow's optimize_for_inference.py script on a frozen Model from the model zoo: the ssd_mobilenet_v1_coco. How do i find/determine the names of the input and output name of the model? Hires version of the graph generated by…
gustavz
  • 2,964
  • 3
  • 25
  • 47
13
votes
4 answers

Tensorflow Object Detection API no train.py file

I've correctly installed Tensorflow Object Detection API according to the provided documentation. However, when I need to train my network there is no train.py file in the research/object_detection directory. Is there anything I can do to fix…
Giacomo Bartoli
  • 730
  • 3
  • 9
  • 23
12
votes
4 answers

Tensorflow 2 Object Detection API: Numpy Version Errors

I followed the "Training Custom Object Detector" tutorial (https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html) When running the script to continue training a pre-trained model: python model_main_tf2.py…
Phillip Ng
  • 157
  • 1
  • 6
12
votes
1 answer

Use Tensorflow Object Detection API to detect small objects in images

I'd like to use the Tensorflow Object Detection API to identify objects in a series of webcam images. The Faster RCNN models pre-trained on the COCO dataset appear to be suitable, as they contain all the object categories I need. However, I'd like…
tobycoleman
  • 1,664
  • 1
  • 18
  • 34
12
votes
4 answers

Tensorflow Object Detection API on Windows - error "ModuleNotFoundError: No module named 'utils'"

I'm attempting to get the TensorFlow Object Detection API https://github.com/tensorflow/models/tree/master/research/object_detection working on Windows by following the install…
cdahms
  • 3,402
  • 10
  • 49
  • 75
11
votes
3 answers

Tensorflow object detection API not displaying global steps

I am new here. I recently started working with object detection and decided to use the Tensorflow object detection API. But, when I start training the model, it does not display the global step like it should, although it's still training in the…
10
votes
2 answers

Support for Tensorflow 2.0 in Object Detection API

I am using TF Object Detection API for training a model that I will eventually deploy using tf-serving. I plan to take the output of this network (at intermediate CNN layers) and build additional networks for other functionality besides object…
10
votes
2 answers

How to train Tensorflow Object Detection images that do not contain objects?

I am training an object detection network using Tensorflow's object detection, https://github.com/tensorflow/models/tree/master/research/object_detection I can successfully train a network based on my own images and labels. However, I have a large…
James
  • 17,965
  • 11
  • 91
  • 146
1
2 3
76 77