vgg_19 slim model a frozen.pb graph?

I downloaded the vgg_19_2016_08_28.tar.gz and extracted a vgg-19.pb graph. I am using this for tf2onnx. However, this seems to have some dynamic parameters and hence tf2onnx if failing. I want to...

windows-machine-learning - "No suitable kernel definition found for op Add"

Running latest WinMLRunning but getting error: No suitable kernel definition found for op Add (node InceptionV1/InceptionV1/Conv2d_1a_7x7/BatchNorm/FusedBatchNorm) I converted custom inference...

pip search finds tensorflow, but pip install does not

I am trying to build a Django app that would use Keras models to make recommendations. Right now I'm trying to use one custom container that would hold both Django and Keras. Here's the Dockerfile...

Error when importing tf2onnx through Jupyter notebook

I have a new env in conda and if I run the following command after activating the env, it will be successful: python -c "import tf2onnx" But, if I run the same command (after activating the env)...

How to convert Tensorflow v2 models to Onnx

I am trying to convert my TF 2.0 RC1 models to onnx (using keras2onnx or tf2onnx). When I execute this code: import keras2onnx or this code import tf2onnx I get the error: ModuleNotFoundError:...

ValueError: You passed in an iterable attribute but I cannot figure out its applicable type

I am trying to convert facenet model(20170512-110547.pb) to onnx format using tf2onnx tool. But When I am trying to convert it using this command python3 -m tf2onnx.convert\ --input...

Conversion from Tensorflow to Onnx

I want to transform this TF model: ICNET_0.5 to onnx and I followed this example: ConvertingSSDMobilenetToONNX I understood if I just want to inference I should use the frozen graph (in my case:...

How to set environment variable TF_Keras = 1 for onnx conversion?

Recently updated to tensorflow 2.0 and am having trouble getting my .h5 models into .onnx . Used to be a very simple procedure but now I am having an issue. When I run the following code: # onnx...

Inference of onnx model (opset11) in Windows 10 c++?

In order to use my custom TF model through WinML, I converted it to onnx using the tf2onnx converter. The conversion finally worked using opset 11. Unfortunately I cannot load the model in the...

How to convert a tflite model into a frozen graph (.pb) in Tensorflow?

I would like to convert an integer quantized tflite model into a frozen graph (.pb) in Tensorflow. I read through and tried many solutions on StackOverflow and none of them worked. Specifically,...

How to get input tensor shape of an unknown PyTorch model

I am writing a python script, which converts any deep learning models from popular frameworks (TensorFlow, Keras, PyTorch) to ONNX format. Currently I have used tf2onnx for tensorflow and...

Error converting FaceNet model into ONNX format

System information OS Platform and Distribution: Linux Ubuntu 19.10 Tensorflow Version: 1.15 Python version: 3.7 Issue I downloaded a tensorflow model of FaceNet from this page, and I'm trying...

Convert TensorFlow Model to ONNX within Python using tf2onnx

Is it possible to install tf2onnx, e.g. using conda to convert TF models programmatically in Python. Such as: from tf2onnx import convert convert(model_dir)

What is tensorflow concrete function outputs correspond to structured_outputs?

I trained my customized ssd_mobilenet_v2 using TensorFlow2 Object Detection API. After training completed, I used exporter_main_v2.py to export a saved_model of my customized model. If I load...

Unable to convert .h5 model to ONNX for inferencing through any means

I built a custom model in .h5 from Matterport's MaskRCNN implementation. I managed to save the full model and not the weights alone using model.keras_model.save(), and assume it worked...

OpenCV DNN fails reading an ONNX network

I'm trying to load a simple four-layer convolutional neural network from an ONNX file in C++ with OpenCV. The ONNX file was created from a TensorFlow model using the tf2onnx library in Python. I...