OpenVINO API 2.0 cannot convert non-frozen TF1 model

Viewed 58

I tried to convert TensorFlow 1 CycleGAN non-frozen model with OpenVINO API 2.0 on Windows.

enter image description here

I used mo --input_meta_graph cyclegan.model-2002.meta to convert my model.

But got the following error.

[ FRAMEWORK ERROR ]  Cannot load input model: Attempting to use uninitialized value generatorA2B/g_r6_bn2/scale/Adam_1
         [[{{node _retval_generatorA2B/g_r6_bn2/scale/Adam_1_0_218}}]]

Here is my non-frozen model files.

1 Answers

This error might be due to uninitialized variables. Initialize all variables and reload the weights. Another possible workaround is to freeze the graph and export it to protobuf (.pb) file.

Related