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 converting pose_detection.tflite [ No such file or directory: './pose_detection.json' ] #24

Closed AnindyaSanyalHiperdyneJP closed 2 years ago

AnindyaSanyalHiperdyneJP commented 2 years ago

Issue Type

Support

OS

Ubuntu

OS architecture

x86_64

Programming Language

Python

Framework

TensorFlowLite

Download URL for tflite file

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

Description

I want to convert this tflite model file to tensorflow, TF-TRT and also onnx. While trying to convert to tensorflow, I am receiving the following error "No such file or directory: './pose_detection.json'". I tried both docker and os installation.

Relevant Log Output

sh: ../flatc: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/tflite2tensorflow", line 6429, in <module>
    main()
  File "/usr/local/bin/tflite2tensorflow", line 5724, in main
    ops, json_tensor_details, op_types, full_json = parse_json(jsonfile_path)
  File "/usr/local/bin/tflite2tensorflow", line 246, in parse_json
    j = json.load(open(jsonfile_path))
FileNotFoundError: [Errno 2] No such file or directory: './pose_detection.json'

Source code for simple inference testing code

No response

mch0dmin commented 2 years ago

hi @AnindyaSanyalHiperdyneJP ,Can you tell me where to get pose_ detection.json?

DataXujing commented 2 years ago

Do you slove this problem, I have the same problem!

PINTO0309 commented 2 years ago
  1. No json file #33
  2. OSError: SavedModel file does not exist at: saved_model/{saved_model.pbtxt|saved_model.pb} #34