question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support other tensorflow object detection models

See original GitHub issue

Currently one can run other models using TF_ANNOTATION_MODEL_PATH (see here) - though I guess you’d need to modify this in the dockerfile somehow (maybe here - though you’d still need to get the file onto the image).

however, the class labels are hard-coded which, in practice, means only a small subset of tensorflow object detections will work (i.e. those trained on COCO (?) which hopefully have the class names in the correct order).

Happy to submit a PR. I was thinking of doing something hacky-ish like reading the classes from a json at TF_ANNOTATION_CLASSES_PATH but then I realised that this isn’t that great, as the same model would be used on all tasks i.e. you couldn’t use model X for one annotation task, and model Y for another. So, I’m thinking that in the GUI, the user can upload a model (frozen graph + classes), which gets used - in the same way we upload videos etc. I feel like this should be pretty straightforward plumbing, since all of the code to run the model etc. already exists.

If that sounds like a good idea, I can have a play. Otherwise, if it’s a bad idea, can someone propose an alternative? And - if there’s not enough interest in this feature, then I can just hack something out for my own use case (which will be much quicker and easier for me, after all).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
savan77commented, Nov 16, 2018

we have already implemented this feature for our local usage and working on adding tracking for videos. we are also planning to open-source once everything is tested thoroughly.

0reactions
zishanahmed08commented, Apr 3, 2020

@savan77 any updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object detection | TensorFlow Lite
An object detection model is trained to detect the presence and location of multiple classes of objects. For example, a model might be...
Read more >
How to Train Your Own Object Detector Using TensorFlow ...
Go to the official protoc release page and download an archive for the latest protobuf version compatible with your operation system and processor...
Read more >
Object Detection with TensorFlow 2 Object Detection API
The TensorFlow Object Detection API is an open-source computer vision framework for building object detection and image segmentation models that can localize ...
Read more >
Training Custom Object Detector
Before we begin training our model, let's go and copy the TensorFlow/models/research/object_detection/model_main_tf2.py script and paste it straight into our ...
Read more >
TensorFlow object detection API - models - GitHub
The TensorFlow Object Detection API supports both TensorFlow 2 (TF2) and TensorFlow 1 (TF1). A majority of the modules in the library are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found