Coder Social home page Coder Social logo

Comments (4)

PINTO0309 avatar PINTO0309 commented on June 20, 2024

Have you tried the following? A working test code has already been committed. ssdlite_mobilenet_v2

  1. https://github.com/PINTO0309/PINTO_model_zoo/tree/master/25_head_pose_estimation/03_integer_quantization/head_pose_estimation.py

  2. https://github.com/PINTO0309/PINTO_model_zoo#sample3---head-pose-estimation-multi-stage-inference-with-multi-model

from pinto_model_zoo.

vpenades avatar vpenades commented on June 20, 2024

Okey, I can see now that I was trying to use the Pose_Estimator in place of the Face_Detector.

Now, I tried to use the face detection models on Emgu.TF (C#) and I am having these problems:

If I load ssdlite_mobilenet_v2_face_300_integer_quant_with_postprocess.tflite on Emgu.TF.Lite it seems it points to the incorrect input tensor. Instead of pointing to normalized_input_image_tensor, it points to BoxPredictor_4/BoxEncodingPredictor/weights which is not good to use...

Then, I tried to use the PB model at 25_head_pose_estimation\01_float32\01_face_detector, but when I try to load it, it gives me this error:

Op type not registered 'TFLite_Detection_PostProcess' in binary running on DESKTOP-XXXXXXXX. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.)

Also, keep in mind my knowledge of Python is very limited, I'm trying to use some of your models using C#.

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on June 20, 2024

TFLite_Detection_PostProcess is a custom OP for Tensorflow Lite. The derived version of Tensorflow Lite probably won't run. If you don't need a custom OP, use the Object Detection API to train and just generate a .pb file without specifying "--add_postprocessing_op=True".

https://github.com/tensorflow/models/tree/master/research/object_detection

$ python3 object_detection/export_tflite_ssd_graph.py \
    --pipeline_config_path=pipeline.config \
    --trained_checkpoint_prefix=model.ckpt-44548 \
    --output_directory=export #\
#    --add_postprocessing_op=True

https://qiita.com/PINTO/items/865250ee23a15339d556#4-2-7-1-generating-a-pb-file-with-post-process

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on June 20, 2024

Closed due to lack of progress.

from pinto_model_zoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.