Questions tagged [retinanet]

41 questions
1
vote
0 answers

Inferencing a Retinanet/Keras model after Tensorflow conversion

I successfully retrained a Retinanet network (https://github.com/fizyr/keras-retinanet) against my own dataset. Everything is working as expected when I run it against a video stream. Object are detected but performances are poor on a Jetson Xavier…
1
vote
2 answers

How to prepare my images and annotation for retinanet training?

I followed this tutorial for training object detection model on coco dataset. The tutorial contains a step to download and use coco dataset and its annotations and convert them to TFRecord. I need to use my own custom data to train, i annotated…
0
votes
0 answers

calculate other keras retinanet metrics like f1score, recall, precision

I'm working on an object detection task using Keras RetinaNet. I would appreciate guidance on how to compute F1 score, precision, and recall for my RetinaNet model. Specifically, I'm interested in understanding how to leverage the model's predicted…
Ghazal Kz
  • 3
  • 3
0
votes
0 answers

RetinaNet for satellite image based object detection - annotation assignment error

Currently trying to construct a RetinaNet model for training on a custom data set. The custom data set itself constitutes of 1000 randomly selected samples from a pre-tiled image directory. There are 3 classes, which are mapped in a directory…
0
votes
0 answers

The classification module returns a tensor filled with '0' from the second epoch

I'm practicing this code. https://github.com/afzalxo/CameraRadarFusionNet-Pytorch Perhaps because of the time, there were a lot of version problems(nuscenes-devkit, python), so we implemented the learning after a little adjustment of the data…
0
votes
0 answers

Creating a custom dataset in TensorFlow for training RetinaNet on image and XML annotation data

I'm currently working on training a RetinaNet model using TensorFlow and the Keras implementation provided in the official documentation (https://keras.io/examples/vision/retinanet/).However, I'm having difficulty understanding how to create a…
0
votes
0 answers

How to solve 'InvalidArgumentError' during RetinaNet object detection training with Keras and ResNet152?

Getting below InvalidArgumentError: Graph execution error: Detected at node 'mean_squared_error/SquaredDifference' while calling retinanet.fit function. Node: 'mean_squared_error/SquaredDifference' required broadcastable shapes [[{{node…
0
votes
0 answers

Training a retinanet with varying bounding box output sizes

I am looking to train a retinanet_resnet50_fpn_v2 in pytorch, but am facing a problem with varying output sizes. I am training on the SKU110K dataset, which has images that can have a varying number of bounding boxes. For example, image 1 contains…
anactualtoaster
  • 396
  • 3
  • 4
0
votes
0 answers

Object Detection with RetinaNet(Keras) the model does not make any detection

I ran the Retinanet tutorial on Colab but in the prediction phase, the model does not make any detections and no bounding box is displayed on the images. any help please I displayed the content of the "detections" variable (detections =…
0
votes
1 answer

bad shape array after convertition from h5 to tflite

I trained a model via keras retinanet (by fizyr). I converted it to .tflite but ran into issues when viewing the .tflite template information Model informations: tflife_input_details = tflife_model.get_input_details() [{'name': 'input_1', 'index':…
0
votes
1 answer

keras retinanet model converter to tflite

I trained a model for class recognition. I used fizyr's Keras for training: Fizyr - Keras Retinanet GitHub. I managed to finish the training with excellent results. My goal is to integrate the obtained model into android. I tried to convert the…
0
votes
0 answers

"List index of out of range error " during inference ( Show up this week )

i have been using same notebook on colab for more than 2 months with same weights and dependencies. It started to give me error this week. I didn't change anything. It suprisingly started to give me error. while loading the model. Could you please…
0
votes
0 answers

Keras RetinaNet Result Really Bad

so i'm trying to make object detection model based on Keras RetinaNet and ResNet-152 backbone. I have followed every tutorial that explain how to do it. Up untill now, i have trained my model where the loss i achieve is 0.81, i thought it was an…
0
votes
0 answers

Pretrained retinanet model with Keras. SavedModel file does not exist at: "path"/"file".h5/{saved_model.pbtxt|saved_model.pb}

I'm trying to load a pretrained retinanet model with keras by running: # import keras import keras # import keras_retinanet from keras_retinanet import models from keras_retinanet.utils.image import read_image_bgr, preprocess_image,…
Elie Eid
  • 703
  • 7
  • 11
0
votes
0 answers

SyntaxError: invalid syntax when using the retina net library

i am trying to load a model using the models.load_model() api but i keep getting this error. I tried installing all the necessary keras and tensorflow library but it doesnot seem to work. This is my current code import numpy as np import…
Steve
  • 3
  • 4