google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://mediapipe.dev
Apache License 2.0
26.09k stars 5.04k forks source link

Convert the face_landmark.tflite file in your solution back to face_landmark.pb (protobuf file). #5502

Open arahanthjain160386 opened 6 days ago

arahanthjain160386 commented 6 days ago

I am trying to convert the "face_landmark.tflite" file in your solution back to face_landmark.pb (protobuf file). I am working with C# code and unable to find any wrapper frameworks which make use of .tflite files for face landmark detection. Tensorflow.NET does not support an interpreter to load the .tflite models. But it supports loading models in .pb or "savedModel" format. Can you please let me know if you have the original tensorFlow model in 'SavedModel of .pb format? I can use this with TensorFlow.net. I tried converting the .pbtxt file back to .pb file but since converting a MediaPipe graph configuration file to a TensorFlow model file (.pb) is not directly feasible due to the different purposes and structures of the two, i am stuck at this juncture. Please let me know if you have the face_landmark.tflite in .pb or SAVED_MODEL format.

Also, is any one of the pre-trained model of TensorFlow (link provided below) used for face_landMark.tflite model generation? Please suggest. https://github.com/tensorflow/models/tree/master/research/slim#Pretrained