TFLite model conversion in Under 3 minutes

preview_player
Показать описание
Convert your TensorFlow model to TFlite file with ease.

Рекомендации по теме
Комментарии
Автор

ValueError: NodeDef mentions attr 'explicit_paddings' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type, allowed=[DT_HALF, DT_BFLOAT16, DT_FLOAT, DT_DOUBLE]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool, default=true; attr=padding:string, allowed=["SAME", "VALID"]; attr=data_format:string, default="NHWC", allowed=["NHWC", "NCHW"]; attr=dilations:list(int), default=[1, 1, 1, 1]>; NodeDef: convolution = Conv2D[T=DT_FLOAT, data_format="NCHW", dilations=[1, 1, 1, 1], explicit_paddings=[], padding="VALID", strides=[1, 1, 2, 2], use_cudnn_on_gpu=true](split_1, split). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). HOLY SHIT

prabeshgautam
Автор

i have made a model and its file is in pkl format, so what steps to follow to convert it in tflite format

nitesharu
Автор

I am getting this error:
ConverterError: See console for info.
2020-02-24 16:54:45.951609: I Converting unsupported operation: Enter
2020-02-24 16:54:45.951897: I Converting unsupported operation: TensorArrayV3
2020-02-24 16:54:45.951935: I Unsupported data type in placeholder op: 20

sameersingh
Автор

Hi, thank you for your tutorial. Can I ask which TensorFlow version you used?

yaohongtao
Автор

How to find out the names of i/p and o/p nodes?

mrunalinim
Автор

How do you obtain input and output arrays from frozen graph?

anandramesh
Автор

Hi, How to know the input shape?
I am getting ValueError: Provide an input shape for input array 'batch_size'.


I have used


converter =
localpb,
['batch_size'],
['embeddings'])

monikasingh
Автор

Hi. Thank you for the tutorial!

I have a question: How can I discover the input name and output name?

flavioafranca
Автор

Using Netron App i checked type of input and output array- it show uint8 and float32 respectively.

This is the only error I am getting during conversion to tflite format. Can you help me how to resolve it.

nitinkumarsharma
Автор

Hi, If I have .pb model file and I want to convert it to .h5 can I do that?

nawalhamed
Автор

hi... i have taken the frozen graph .pb file from some other source so i dont know about the name of input and output node what should i do?

yasirnaseer
Автор

i changed tf vrsion to 1.15 but i got this error

AttributeError: module 'tensorflow_core.contrib' has no attribute 'lite'

erolgyte
Автор

Very good, please what version of the python, tensorflow and windows used? tks

beniciomagalhaes
Автор

I like your tutorials, can you make a series of tutorials on Tensorflow 2.0 .

Mesenqe
Автор

I'm having the error "No module named _tensorflow_wrap_toco". Can you help me solve it?

arnaldog
Автор

how to reduce the size of frozen model .pb file ??

geetanjalisharma
Автор

AttributeError: module 'tensorflow' has no attribute 'contrib'

erolgyte
Автор

ImportError: cannot import name 'lite'. Can you please help in resolving this?

devanathanng
Автор

i ran a code in kaggle kernel for speech recognition. How can i convert that into tflite file so that i can test in android.

viharipinnenti
Автор

Can you do an app that can predict img with Android

mn