Coder Social home page Coder Social logo

Comments (9)

PINTO0309 avatar PINTO0309 commented on June 20, 2024

Here is the script I used for the conversion.
https://github.com/PINTO0309/PINTO_model_zoo/blob/master/08_mask_rcnn_inceptionv2/01_float32/01_export_inference_graph.txt

from pinto_model_zoo.

kewin1807 avatar kewin1807 commented on June 20, 2024

Thanks. I will try. Have you use model which can be converted from this script =)

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on June 20, 2024

No, I'm a weird, so I'm just enjoying the conversion for now.

from pinto_model_zoo.

kewin1807 avatar kewin1807 commented on June 20, 2024

i see the error "Invalid tensors 'image_tensor' were found." Can you solve it ??

from pinto_model_zoo.

kewin1807 avatar kewin1807 commented on June 20, 2024

Check failed: array.data_type == array.final_data_type Array "image_tensor" has mis-matching actual and final data types (data_type=uint8, final_data_type=float).
Can you solve it ??

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on June 20, 2024

First, you need to change the placeholder in the Python code of the model from UInt8 to Float32. I'll share the code with you when I have time, but I'm pretty busy and I don't have enough time to work, so please wait a bit.

from pinto_model_zoo.

kewin1807 avatar kewin1807 commented on June 20, 2024

yeah. i fixed it. But when i load the model tflite. i have a problem "Encountered unresolved custom op: Enter.Node number 0 (Enter) failed to prepare."

Can you solve it ?? Thanks

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on June 20, 2024

Two days ago, it seems that the mask r-cnn correspondence was committed to the master branch. So, today I tried to regenerate the weight quantization model using the latest Tensorflow. Operation has not been confirmed.
https://github.com/PINTO0309/PINTO_model_zoo/blob/master/08_mask_rcnn_inceptionv2/02_weight_quantization/mask_rcnn_inception_v2_coco_256_weight_quant.tflite

The installation of the Tensorflow v2.1.0 master I built is as follows.
https://drive.google.com/open?id=1EqkpK_FIWM5flUK-7Z3au9SkavMCvBrY

Below is the script of Weight Quantization.
https://github.com/PINTO0309/PINTO_model_zoo/blob/master/08_mask_rcnn_inceptionv2/01_float32/03_weight_quantization.py

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on June 20, 2024

@hoangtubatu123 hoangtubatu123
I was able to successfully convert without a custom OP with Tensorflow v2.2.0-rc3 (Tensorflow Lite). If you feel like it, give it a try.
https://github.com/PINTO0309/PINTO_model_zoo/tree/master/08_mask_rcnn_inceptionv2

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.