Skip to content
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

model conversion failed #19

Closed
happyjohn360 opened this issue Aug 5, 2020 · 1 comment
Closed

model conversion failed #19

happyjohn360 opened this issue Aug 5, 2020 · 1 comment

Comments

@happyjohn360
Copy link

happyjohn360 commented Aug 5, 2020

I tried to convert .pb file to .tflite file.
I run "06_mobilenetv2-ssdlite/01_coco/01_float32/03_integer_quantization_with_postprocess.py" files and get this error

ValueError: Invalid tensors 'TFLite_Detection_PostProcess,TFLite_Detection_PostProcess:1,TFLite_Detection_PostProcess:2,TFLite_Detection_PostProcess:3' were found.

I've run the script to download tflite_graph.pb.
could you please check out the problem for me?
Also can you tell me where you get tflite_graph.pb?
can I convert model zoo ssdlite_mobilenet_v2_coco by your code?
Thanks!

@PINTO0309
Copy link
Owner

PINTO0309 commented Aug 5, 2020

First do the following:
https://github.com/tensorflow/models/blob/master/research/object_detection/export_tflite_ssd_graph.py

[English ver.] [Tensorflow Lite] Various Neural Network Model quantization methods for Tensorflow Lite (Weight Quantization, Integer Quantization, Full Integer Quantization, Float16 Quantization, EdgeTPU). As of May 05, 2020.
https://qiita.com/PINTO/items/865250ee23a15339d556#4-2-7-quantize-the-model-generated-by-the-tensorflow-object-detection-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants