PINTO0309 / tflite2tensorflow

Generate saved_model, tfjs, tf-trt, EdgeTPU, CoreML, quantized tflite, ONNX, OpenVINO, Myriad Inference Engine blob and .pb from .tflite. Support for building environments with Docker. It is possible to directly access the host PC GUI and the camera to verify the operation. NVIDIA GPU (dGPU) support. Intel iHD GPU (iGPU) support. Supports inverse quantization of INT8 quantization model.
https://qiita.com/PINTO
MIT License
262 stars 41 forks source link

Error on converting of face_landmark.tflite #21

Closed hovnatan closed 2 years ago

hovnatan commented 2 years ago

Issue Type

Bug, Support

OS

Mac OS

OS architecture

x86_64

Programming Language

Python

Framework

TensorFlowLite

Download URL for tflite file

https://github.com/google/mediapipe/blob/master/mediapipe/modules/face_landmark/face_landmark.tflite

Description

I get AssertionError: conv2d_21 is not in graph when running tflite2tensorflow --model_path face_landmark.tflite --flatc_path ../flatc --schema_path ../schema.fbs --output_pb

Relevant Log Output

AssertionError: conv2d_21 is not in graph

Source code for simple inference testing code

No response

hovnatan commented 2 years ago

It turned out the output name in the graph was converted to conv2d_21_1.

PINTO0309 commented 2 years ago

Yes. I just fixed it and committed it. Please wait for about 30 minutes for the CI release to finish. https://github.com/PINTO0309/tflite2tensorflow/releases/tag/v1.16.3

hovnatan commented 2 years ago

Thanks!