-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TensorFlow Lite model for pedestrian detection #5
Comments
@sayakpaul Here's the update . I made the model conversion and inference functions. I used a pretrained tflite model and checked my inference and prediction functions with it. Got a fair output but can be done much better if I can use my custom non-max-suppression function on the predicted output of the model. But the tflite model which I used, does not provide the "raw_detections" (without non-max-suppression) . Whereas the other models from tensorflow hub does provide those "raw detections" and thus tested it out. It worked better than the previous tflite model with different threshold values of min_score and non_max_suppression. But I am facing issues converting those models to its tflite equivalent. |
Without looking into the results you are getting it's a bit difficult for me to comment on this. Also, it's problematic to comment without actually seeing your code used for conversion. It would be helpful to also know which exact model variants you have tried. Have you considered looking into the following resources that show how to convert certain object detection models to TensorFlow Lite? Not all the models are TFLite compatible and you should know about that. |
@sayakpaul Thanks for the reply. |
This hub model won't get converted to TensorFlow Lite because it's not compatible. You can follow the conversion process of a similar model here - https://github.com/sayakpaul/E2E-Object-Detection-in-TFLite (specifically this notebook). Also, now might be a good time to study/discover if there are existing issues that other people have reported that are similar to yours. |
@sayakpaul , @rishiraj |
@around-star great start. A couple of improvement pointers -
|
@around-star While I appreciate the efforts you have put, I feel you have deviated from the original goals of this issue. The goal of this issue was to convert to a TFLite model and making prediction with it on static images. So using a pre-trained model doesn't help. Please go through the deliverables carefully. You can collaborate with @piyush-cosmo to get the model for conversion. |
@sayakpaul , @rishiraj This is my improved colab. The model code is taken from @piyush-cosmo (colab). |
Goal
Come up with a TensorFlow Lite model (an optimized FlatBuffer format with the .tflite file extension) that is capable of detecting pedestrians from a scene.
Deliverables
The text was updated successfully, but these errors were encountered: