Error while profiling model

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error while profiling model

3,721件の閲覧回数
Hadrien
Contributor I

Hello to all,

I am new to eIQ, and I am trying to profile my own tensorflow model. I can import my model (.tflite or .h5). I checked that the different layers of the CNN were present, but when I launch the profiling, an error appears (see pictures). Unfortunately the error is not very explicit.

error_profiling_eiQ.pngmessage_error_profiling_eiQ.png

I get the same error as I profile the network:
- from a .tflite saved with the tensorflow library
- from a .h5 saved with the tensorflow library
- from a .tflite saved with eIQ from the loaded .h5 

Does anyone have an idea where the error could be coming from?

Thanks in advance,

 

0 件の賞賛
5 返答(返信)

3,334件の閲覧回数
david_piskula
NXP Employee
NXP Employee

Hello @Hadrien, I don't know if the question is still relevant but did you make sure you have the modelrunner application running on your target?

0 件の賞賛

3,644件の閲覧回数
david_piskula
NXP Employee
NXP Employee

Hello Hadrien, can you share your model or is it confidential? In order to provide the most efficient support, I need to reproduce your issue.

Thanks,

David

0 件の賞賛

3,623件の閲覧回数
Hadrien
Contributor I

Hello David, thank you for your interest,

 

Here is a very minimal exemple :

step 1 in python :

input1 = tf.keras.layers.Input(shape=(1,1024,4))

x_conv_sep = tf.keras.layers.SeparableConv2D(4,
                                                                              [1,3],
                                                                              strides=(1, 1),
                                                                              padding='same',
                                                                              data_format="channels_last",
                                                                              dilation_rate=(1,1),
                                                                              depth_multiplier=2,
                                                                              use_bias=False,
                                                                              input_shape =[1,1024, 4],
                                                                              depthwise_initializer='he_normal',
                                                                              pointwise_initializer='truncated_normal',
                                                                              name = "conv_dilatation",
                                                                             )(input1)

model.save("conv2d_sep.h5")

step 2 in EIQ:

import model

Convert to tflite with quantization (int8) (see picture)

Hadrien_0-1670424524187.png

 

import tflite model 

try to profile...

 

It seems to be the same as explain in  the eIQ Toolkit User Guide 1.5.2 (sec. 4.1) but it doesn't work.

Do you see where is the problem ?

 

Thanks in advance,

 

Hadrien

0 件の賞賛

3,610件の閲覧回数
david_piskula
NXP Employee
NXP Employee

Hello Hadrien,

I will report this behavior to our developers and let you know what's wrong once they figure it out.

Thanks,

David

0 件の賞賛

3,605件の閲覧回数
Hadrien
Contributor I

Thank you for your help

 

Hadrien

0 件の賞賛