Git Product home page Git Product logo

Comments (7)

vinay0410 avatar vinay0410 commented on July 2, 2024

Yes sir,
Preprocessing is required since tensorflow returns normalized bounding boxes and have to be converted so as to be used by DetectionSuite.

Similarly, the image had to be converted to C++ PyObject PyArray.
And, I have already implemented both of them here in TensorFlowInferencer.cpp.
This file handles both pre-processing and post-processing.

But, I haven't updated the documentation to display tensorflow support.
And was thinking of updating GitHub wiki for the same.

Is that right?
Or should I update documentation somewhere else ?

Thanks

from detectionmetrics.

jmplaza avatar jmplaza commented on July 2, 2024

Hi @vinay0410, great.

The DetectionSuite's github is the reference place for documentation, and also the wiki at the JdeRobot web page. Please feel free to update both, do not feel embarrassed.

Current documentation is kind of minimal, but it will grow and we will improve it in the following months, just to make easy to other developers to use this tool and replicate our (future) tutorials.

from detectionmetrics.

naxvm avatar naxvm commented on July 2, 2024

Hello Vinay! I have worked on the ObjectDetector output. The network (both TF and Keras versions) "returns" on each prediction the bounding boxes already scaled to the input image size, I already handled that. In addition, it returns the class(directly the string, instead of an index) and the corresponding score.

I said "returns" because it is not the return of a call. As the network is an object (DetectionNetwork class), these outputs are callable properties (network.boxes; network.detections; network.scores). This has thought made on a way that allows you to only set the input and then retrieve the output (the network must be running continuously on its pertinent thread). Have a look on the component itself!

Feel free to contact me for anything, or any kind of help.

from detectionmetrics.

vinay0410 avatar vinay0410 commented on July 2, 2024

Hi @naxvm,
Thanks for the support!
Though TensorFlow support has already been added. I am using C++ to call python functions for running inference which returns bounding boxes, classes, confidence scores, etc just as you mentioned.
Checkout this pull request #19.

I have also made a video testing the same in DetectionSuite, metioned below:
Link to Video
Detection Suite tensorflow inferencer

It uses frozen inference graphs, just like dl-objectdetector to load the model and run inferences. The config file isn't necessary because of the same reason, and any file can be selected, just as depicted in the video.

You can try running an inference, and please do share your valuable suggestions.

Only, thing left for this issue, is to update the documentation regarding tensorflow support.

Thanks!

from detectionmetrics.

vinay0410 avatar vinay0410 commented on July 2, 2024

Here’s the pull request updating documentation and minor improvements for the inferencer.
I have updated Github’s wiki extensively, but since github has no option for pull request for a wiki, I have updated my local clone and mentioned it’s link.
Please have a look !
Link to my Local clone of Github Wiki

from detectionmetrics.

naxvm avatar naxvm commented on July 2, 2024

Hello Vinay,

Your TF implementation seems fantastic for me, as we only need the frozen graph file, as you mention. The video inference seems promising, I was wondering why it takes that much time to make the prediction on the image. Is it because of the Python/C++ conversion? It should take far less time.

Regards!

from detectionmetrics.

vinay0410 avatar vinay0410 commented on July 2, 2024

Hi @naxvm ,
Actually,
It was using Faster R-CNN on a CPU which very slow, therefore, each inference was taking approximately 25 sec.
I will make video using SSD MobileNet which 30x faster than Faster R-CNN on CPU and post it.

Though, I will update my python file for major speed improvements in a couple of days.

Thanks for the feedback!

from detectionmetrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.