Questions tagged [object-detection-api]
Questions related to the tensorflow object detection api
1,149
questions
0
votes
0
answers
8
views
Object Detection API: ModuleNotFoundError: No module named 'object_detection'
I follow the tutorials
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html#install-the-object-detection-api
enter image description here
I ran the test and succeeded,...
-1
votes
0
answers
10
views
error running make command in cocoapi/PythonAPI folder using Colab
this is my first question in stackoverflow yeyyy. Honestly, I always found solutions just by googling, but now I was literally 2 days searching for stuff to fix this. I'm following this tutorial which ...
0
votes
0
answers
7
views
Conversion of TF2 model (saved_model.pb) to TF1 format (frozen_inference_graph.pb)
Currently OpenCV does not support TF2 Object Detection models. I would like to convert a MobileNet V2 FPNLite 640x640 SSD model from TF2 to TF1 to run via cv2.readNetFromTensorflow. How is this ...
1
vote
0
answers
30
views
Tensorflow using all of one GPU but little of the other
After running into OOM errors using Tensorflow Object Detection API with an NVIDIA 3080 (10GB) I bought a 4090 (24GB). I am currently running both together, but I noticed that in high batch size runs, ...
-1
votes
0
answers
9
views
Transfer Learning or Fine Tuning Object Detection Model
I am wanting to fine tune a Spaghettinet model but need some help in understanding a couple of thngs. Basically, i run an object detection software on my IP cameras that is opensource and uses the ...
-1
votes
0
answers
10
views
Error while running efficientDet on colab
8 label_map = '/content/Ship2-1/train/ships_label_map.pbtxt'
----> 9 categories = label_map_util.convert_label_map_to_categories(
10 label_map, max_num_classes=9, ...
0
votes
1
answer
63
views
How to use an object detection tensor flow lite model (converted from yolo v5) in android camera app?
I'm making an object detection app using kotlin and tensor flow lite model (I used yolo v5 and then converted it to tensor flow lite using the following line:
python export.py --weights best.pt --...
0
votes
0
answers
56
views
Tensorflow object detection api installation problem
I'm trying to install the TF Object Detection API following instructions from here.
Not using anything related to GPU.
I successfully have already gone through everything except this line:
python -m ...
0
votes
0
answers
52
views
How to modify output from TFLite exported Yolov5s model to work with an android app built with kotlin?
I want to load my TFLite exported Yolov5s model into my object detection android app. I followed this tutorial: https://www.youtube.com/watch?v=zs43IrWTzB0
However, my TFLite Yolov5 model outputs an ...
0
votes
0
answers
25
views
ImportError: cannot import name 'training' from 'tensorflow.compat.v1.estimator'
I'm getting the following error while trying to train my model. What should I do?
ImportError: cannot import name 'training' from 'tensorflow.compat.v1.estimator'
Couldn't find a proper solution ...
0
votes
0
answers
27
views
Is there a way to run Tensorflow Object Detection API's model_main_tf2.py from within a Jupyter Notebook cell?
From https://github.com/tensorflow/models/blob/master/research/object_detection/model_main_tf2.py, the approach shared was to run Tensorflow object detection API from the linux terminal or anaconda ...
0
votes
0
answers
11
views
How can we implement early stopping in tensorflow 2 object detection API?
Basically tfod2 is used for transfer learning in object detection use case, but in this repository there is no any mentioning about early stopping or how to implement it
I gone through model_main_tf2....
0
votes
0
answers
58
views
TypeError: __init__() got an unexpected keyword argument 'fpn_min_level'
When I am running my object detection model I got the following type error displayed on screen:
TypeError Traceback (most recent call last)
\<ipython-input-26-...
0
votes
0
answers
11
views
How to discard annotations based on size with tensorflow 2 object detection API’s pipeline config
I am using tensorflow 2 object detection api with a custom dataset to train object detection networks. Some of the labels in the dataset are too big and cover regions that they should not cover. Is ...
0
votes
0
answers
14
views
Error: TensorList shape mismatch: Shapes -1 and 3 must match
Trying to deploy the sign language detection using tensorflow object detection api on react.
Having this error on console
Repo
When the camera is on it should predict the sign language. but its ...
0
votes
0
answers
34
views
How do I deploy my custom trained tensorflow 2.0 model into my react.js webapp
I have converted my tensorflow model into a .tflite file, not sure if it is the correct format, but I tried uploading it onto firebase but it was not compatible with reactjs as it only gives the code ...
0
votes
0
answers
18
views
I want to add a boundry box
I have a code that detects the object but I want to add the boundary box to the detections.
import cv2
import numpy as np
from keras.models import load_model
# Load the model
model = load_model('...
-2
votes
1
answer
55
views
How to Convert tensorflow saved_model to frozen inference graph?
I train a model by tensorflow 2 to detecting vehicles, but I want to Convert tensorflow saved_model to frozen inference graph.
Can any one help?
0
votes
0
answers
31
views
Naming of TensorFlow 2 Detection Model Zoo
Looking for the best architecture for object detection. That's why I evaluated all the models in TensorFlow 2 Detection Model Zoo.
However, my images have a resolution of 666x600. That's why I started ...
0
votes
0
answers
25
views
Problem detecting zebra crossings with SSD's using TensorFlow Object detection API
My task is to evaluate different Models of the TensorFlow Object detection API for the detection of zebra crossings. I have a dataset of 400 labeled pictures. I already tried the Faster R-CNN based ...
0
votes
1
answer
27
views
unable to from Convert Pascal VOC to tfrecords for tensor flow object detection API
unable to from Convert Pascal VOC to tfrecords for tensor flow object detection API , reference : https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html#create-...
0
votes
0
answers
30
views
pre-trained SSD + segmentation
I am training a pre-trained model from the TensorFlow zoo. I want to do segmentation to the existing model. how do I do it?
The model I am using is SSD MobileNet V2 FPNLite 320x320
0
votes
0
answers
31
views
tf objectection api: how to export saved model to onnx without postprocess (NMS)?
I need to remove postprocess part from the model trained with Tensorflow Objection Detection API (SSD Arch). How can I do it?
0
votes
0
answers
55
views
Trying to create the CSV files and the "label_map.pbtxt" file from xml files in colab
I'm using this code to create csv file:
def xml_to_csv(path):
classes_names = []
xml_list = []
for xml_file in glob.glob(path + '/*.xml'):
tree = ET.parse(xml_file)
root = tree.getroot()...
0
votes
1
answer
31
views
Installing tensorflow object_detection api in a repo in google drive
I have cloned the models repo from TensorFlow and installed it into my project folder in google drive.
but when I try to run the model_builder_tf2_test.py I am getting ModuleNotFoundError: No module ...
0
votes
1
answer
125
views
CUDA and CUDAtoolkit TensorFlow in wsl2 ubuntu 20.04 with gpu enabled
are CUDA and CUDAtoolkit different?
I installed CUDA using this tutorial
I ran the sample too and it worked but to run tensorflow using gpu Do I need to install CUDAtoolkit and cudnn along with the ...
0
votes
2
answers
58
views
Python Tensorflow stopped working; cannot import tensorflow due to keras import error
I was playing around with a custom object detector through the Tensorflow object detection API in Python. All of a sudden my code stopped working and is producing the following error when trying to ...
0
votes
0
answers
49
views
Object Detection API List index out of range
I'm trying to use the ssd mobilenetv3 object detection model, I found this tutorial
I tried running the python file on my device using an image I snapped with my phone
but I keep getting this error
...
0
votes
0
answers
83
views
Weird results for different models of Tensorflow object detection API
I am training 3 different models for covid-19 detection SSD MobileNetV2 FPNLite 320x320, SSD MobileNetV2 FPNLite 640x640, and SSD MobileNetV2 320x320. I have trained each model for 4000 steps, and I ...
0
votes
0
answers
22
views
Facing trouble during installation of TensorFlow 2 object detection API
Tried to build Tensorflow 2 object detection API in Ubuntu 20.04 version..
Cuda version:10.1,** Cudnn version:7.6.5 and tensorflow version: 2.2**..
After executing all steps, I had found en error ...
1
vote
0
answers
314
views
Serialization error while exporting Object detection model
While expoting an object detection model inference graph with Tensorflow Object Detection API (TFODAPI), I am getting a warning as:
WARNING:tensorflow:Skipping full serialization of Keras layer ...
0
votes
0
answers
122
views
Change the input spec of object detection model in tensorflow object detection api
I am using efficientdet_d1_coco17_tpu-32 model after fine-tuning it on my images for object detection. I have used TFOD(tensorflow object detection) API.
I can successfully pass a single image for ...
0
votes
0
answers
46
views
Relation between mean average precision(mAP) and Validation loss
I am training two models for Covid-19 detection using chest x-ray. SSD mobilenetV2 320x320 and SSD mobilenetV2 640x640 from Tensorflow object detection API. The training loss for model SSD ...
0
votes
1
answer
463
views
"import tensorflow" results in error: No module named 'tensorflow.python.eager.polymorphic_function' (Python in Jupyter Lab)
Python 3.9.12.
Windows 10.
jupyterlab 3.3.2.
Import tensorflow
When I try to import Tensorflow, I get the following 'tensorflow.python.eager.polymorphic_function' error.
------------------------------...
1
vote
1
answer
86
views
Tensorflow object detection API only evaluates the latest checkpoint
I've trained SSD mobilent v2 320x320 model with around 4k steps which produced quite a few checkpoints that are saved in my training folder.The issue I am experiencing now is that this only evaluates ...
0
votes
0
answers
27
views
Tensorflow deploy in firebase
It is okay to deploy first the tflite model to firebase instead to android studio for Object detection? need help
I deployed first my model in android studio and it has an error "Not a valid ...
0
votes
0
answers
44
views
TF object detection API: evaluation does not wait the next checkpoint
I am trying to train and evaluate a object detection model. The training is running smoothly:
tfod="/home/zzz/tensorflow/models/research/object_detection"
jobdir="/scratch/"
model=&...
0
votes
0
answers
20
views
Adjust "max_detection_per_class" for every class in Tensorflow Object Detection API
I am training an object detection algorithm using the Tensorflow Object Detection API. I am currently using the vanilla version of the config files, I just changed what was absolutely necessary to ...
0
votes
0
answers
125
views
How can make inference graph file using models/research/object_detection/export_inference_graph.py
python : 3.9.13
tensorflow : 2.9.1
I am making a custom dataset with 'tensorflow object detection'
The saved_model.pb file was generated by trainning with the FastRCNN dataset.
I took this file and ...
1
vote
0
answers
27
views
display per class precision and per class recall for "pascal_voc_instance_segmentation_metrics"
I trained Mask-RCNN with tensorflow object detection API on my custom dataset, I can run the evaluation script with the following command:
python object_detection/model_main_tf2.py \
--...
0
votes
0
answers
294
views
tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile error when training a custom object detector
I have been following this tutorial to make a custom object detector using tensorflow. I've encountered a few errors regarding file paths but solved them by installing the object_detection folder as a ...
0
votes
0
answers
11
views
Tensorflow object detection V.s Classfication
In SSD MobileNet V2 FPNLite 320x320 config file (downloaded from https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_classification_zoo.md), we can change to ...
0
votes
0
answers
17
views
Tensorflow Model Question about saved model
what is differnece between
inference graph/saved model and ssd_... (inferencee graph = python exporter_main_v2.py ,,,--output_directory)
SSD MobileNet V2 FPNLite 320x320... -tpu/saved_model
0
votes
0
answers
26
views
Tensorflow2 Object detection working like classification
After I built my custom object detection with ssd_mobilenet_v2_fpnlite_320x320, my result looks like classification not object deteciton.
Even after I changed classification -> detection in ...
0
votes
0
answers
66
views
Need help to continue training on a saved checkpoint on tensorflow
I am currently using the Object detection API in tensforflow and a pre-trained model. I was able to add a class and have it trained. But now, I wish to add more data to the training set. I generated ...
0
votes
0
answers
115
views
Fine-tuning pre-trained model with TensorFlow Object Detection API
Similar question to this one; how does transfer learning work with the Object Detection API in TensorFlow? Also, how can we optimize performance with transfer learning?
I am curious specifically about ...
1
vote
0
answers
41
views
Best practices for including Object Detection API in project?
I'm using the TensorFlow Object Detection API with a custom dataset in my own repository (following the project structuring recommended on the Training Custom Object Detector guide).
What the best ...
0
votes
0
answers
119
views
How can I configure the model to detect (the same) keypoints for multiple classes?
I want to do keypoint estimation, but rather than just having class "person" I have multiple person classes such as "person_standing", "person_sitting", etc. I can't ...
1
vote
1
answer
189
views
How to perform object detection model training on more than 1 class?
Link: https://github.com/tensorflow/models/blob/master/research/object_detection/colab_tutorials/eager_few_shot_od_training_tf2_colab.ipynb
I have tried the above google colab to train a object ...
0
votes
0
answers
75
views
I cannot find the xml_to_csv.py in my object dection folder
I'm working on Faster R-CNN for object detection and now I want to train and test the model on my own dataset but it shows this
(myenv) E:\Labels\models-master\research\object_detection>python
...