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

1064 questions
68
votes
6 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…
34
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
  • 22,615
  • 27
  • 86
  • 138
26
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
  • 273
  • 2
  • 4
  • 5
24
votes
2 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
  • 265
  • 1
  • 3
  • 5
17
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
  • 353
  • 2
  • 11
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
  • 615
  • 2
  • 9
  • 22
13
votes
1 answer

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? Here is a link to the graph generated by…
gustavz
  • 1,719
  • 2
  • 15
  • 34
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,302
  • 1
  • 13
  • 30
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
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
  • 2,284
  • 5
  • 29
  • 52
9
votes
2 answers

Class weights for balancing data in TensorFlow Object Detection API

I'm fine-tuning SSD object detector using TensorFlow object detection API on Open Images Dataset. My training data contains imbalanced classes, e.g. top (5K images) dress (50K images) etc... I would like to add class weights to classification loss…
Vadim Smolyakov
  • 1,097
  • 11
  • 23
9
votes
2 answers

How to train and evaluate simultaneously in Object Detection API ?

I want to have train/evaluate the ssd_mobile_v1_coco on my own dataset at the same time in Object Detection API. However, when I simply try to do so, I am faced with GPU memory being nearly full and thus the evaluation script fails to start. Here…
9
votes
1 answer

TensorFlow Object Detection API: evaluation mAP behaves weirdly?

I am training an object detector for my own data using Tensorflow Object Detection API. I am following the (great) tutorial by Dat Tran…
Mari
  • 103
  • 1
  • 6
8
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
  • 19,367
  • 9
  • 72
  • 129
1
2 3
70 71