Coder Social home page Coder Social logo

Comments (3)

PINTO0309 avatar PINTO0309 commented on July 21, 2024 1

I have created a conversion tool that supports Dequantize operation (built-in_code = 6). I just created it 3 days ago, so I will add more OPs to support it.
https://github.com/PINTO0309/tflite2tensorflow

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on July 21, 2024

The weights set in each layer were extracted by hand using Netron. It is possible to extract the weights in bulk if you create a script, but so far I have not created such a script.
image

The script to convert the new model is below. All you have to do is specify the weight file in Numpy format extracted from the above work in each layer in np.load. I put all the weight files under a folder named weights_front and converted them.
https://github.com/PINTO0309/PINTO_model_zoo/blob/master/030_BlazeFace/01_float32/07_new_blazeface_front_tflite2h5_weight_int_fullint_float16_quant.py

conv1_1 = Conv2D(filters=24, kernel_size=[5, 5], strides=[2, 2], padding="same", dilation_rate=[1, 1], activation='relu',
kernel_initializer=Constant(np.load('weights_front/conv2d_Kernel').transpose(1,2,3,0)),
bias_initializer=Constant(np.load('weights_front/conv2d_Bias')))(inputs)

from pinto_model_zoo.

PINTO0309 avatar PINTO0309 commented on July 21, 2024

This is closed as it has been resolved. If you have other issues, please post a new issue.

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.