Comments (18)
Hi there, until now the models I have tried to train and convert in model zoo, only the "ssd_mobilenet_v2_quantized_coco" can be used to fine tune and convert to tflite successfully.
from tensorflow_object_detection_tflite.
I will update train method and convert commands later
from tensorflow_object_detection_tflite.
So, if I try to convert ssd_mobilenet_v2 to tflite, should it not work out-of-the-box without re-training?
I am actually confused:-(
from tensorflow_object_detection_tflite.
If I just pass inference_input_type=QUANTIZED_UINT8 and leave output type to float, it works fine. But then the model size is no longer reduced...I just need to convert the model to tflite with qunatized weights and run inference. How do you suggest me to deal with?
from tensorflow_object_detection_tflite.
You can try the command that I provided. The method I provided has already been verified.
tflite_convert --output_file=path to/models/research/object_detection/mobilenet_ssd_v2_train/tflite/model.tflite --graph_def_file=path to/models/research/object_detection/mobilenet_ssd_v2_train/tflite/tflite_graph.pb --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --input_shape=1,300,300,3 --allow_custom_ops --output_format=TFLITE --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_dev_values=127
from tensorflow_object_detection_tflite.
Thanks for your time. I tried this, but then the detections always point to class label 'person' at some fixed positions.
from tensorflow_object_detection_tflite.
Have you test you tflite model with python?
from tensorflow_object_detection_tflite.
No, I have not tested it. Please find the tflite model attached. There is a fundamental difference in the output section between the attached model and the model you have in the repo. I checked it with Netron.
from tensorflow_object_detection_tflite.
I doubt if I am generating the tflite model properly. I use similar command as you have mentioned above.
from tensorflow_object_detection_tflite.
I will try your tflite model. I had already implemented this model to detect heavy machinery on an arm board, so there is nothing to doubt, as long as you follow the method I recommended.
from tensorflow_object_detection_tflite.
Besides, you can use object_detector_detection_api_lite.py to test your model correctness after training before you implementing it with c++.
from tensorflow_object_detection_tflite.
Ok. Thanks. :-)
from tensorflow_object_detection_tflite.
Hi,
A very quick question, with pre-trained SSD MobileNet v2 non-quantized, there is always only one object in the frame detected. However, your detect.tflite detects multiple objects, that is cool. What is the reason for this? Becasue you have retrained?
from tensorflow_object_detection_tflite.
The reaults of non quantized models I tested were same as yours, only the quantized mobilenet ssd V2 works for me and can be retrained.
from tensorflow_object_detection_tflite.
So, only one object getting detected in Non-Quantized case is as expected? It means Nothing wrong from my implementations?
Your model works perfect.
from tensorflow_object_detection_tflite.
I think the tflite opts don’t support non quantized models correctly.
from tensorflow_object_detection_tflite.
You are right. You can close this issue? Thanks for your time buddy:-)
from tensorflow_object_detection_tflite.
You’re welcome
from tensorflow_object_detection_tflite.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow_object_detection_tflite.