Questions tagged [onnx]

ONNX is an open format to represent deep learning models and enable interoperability between different frameworks.

ONNX

The Open Neural Network Exchange (ONNX) is an open-source artificial intelligence ecosystem. With ONNX, AI developers can more easily move models between state-of-the-art tools and choose the combination that is best for them. ONNX is widely supported and can be found in many frameworks, tools, and hardware. It is developed and supported by a community of partners.

Official resources

809 questions
0
votes
1 answer

PyTorch VAE fails conversion to onnx

I'm trying to convert a PyTorch VAE to onnx, but I'm getting: torch.onnx.symbolic.normal does not exist The problem appears to originate from a reparametrize() function: def reparametrize(self, mu, logvar): std = logvar.mul(0.5).exp_() …
jbm
  • 1,248
  • 10
  • 22
0
votes
1 answer

ONNXRuntime Issue: Output:Y [ShapeInferenceError] Mismatch between number of source and target dimensions

I am trying to build a onnx graph using helper APIs. The simplest example I started is the following. A MatMul op that takes two [1] matrix inputs (X and W), and produces [1] matrix output Y. import numpy as np import onnxruntime as rt from onnx…
ardorem
  • 21
  • 3
0
votes
1 answer

"strip" onnx graph from its constants (initializers)

I have an onnx graph/model that has big constants in it, so it is taking a lot of time to load it and parse it. Can I "strip" the data from the graph, so I inspect the graph nodes without its data ?
yehudahs
  • 2,488
  • 8
  • 34
  • 54
0
votes
1 answer

onnx 1.2 models (Custom Vision) on HoloLens

This is a more specific continuation of my previous Post: Custom Vision on HoloLens I'm still using the Unity Project from this blogpost:…
0
votes
1 answer

Onnx 'helper' and 'checker' attribute are not defined

I have onnx 0.2.1 installed on my conda virtual environment conda list | grep onnx packages in environment at /Users/aanirud/anaconda2/envs/onnx: onnx 0.2.1 py27_1 ezyang onnx-caffe2 0.2.1 py27hbe716ef_1 ezyang onnx-mxnet 0.4.1 But I am not able…
Anirudh
  • 52
  • 1
  • 7
-1
votes
1 answer

eras conversion to ONNX

I have my trained keras model and I am trying to convert it into ONNX format to use it in Unity but I constantly get errors anyone could help: `import tensorflow.keras as keras import onnx import keras2onnx model =…
-1
votes
1 answer

How can I extract and print the metadata of a onnx model in c++?

This in the c++ code where I try to extract and print the metadata of a ONNX model. Loading the onnx model works perfectly but I can't extract the model's metadata. I am using ort version 1.14.0 ` // Load the ONNX model Ort::SessionOptions…
bb45678
  • 1
  • 1
-1
votes
1 answer

NonImplementedError on using torch.onnx.export

I am trying to convert a pre-saved PyTorch model into a TensorFlow one via ONNX. For now, the following code is to export the model into .onnx format. The neural network has 2 inputs, one hidden layer with 5 neurons and a scalar output. Here's the…
Acad
  • 161
  • 5
-1
votes
1 answer

Deploying Pytorch Models into Production

is it possible for me to create a website that uses ONNX.js to serve the model and create a frontend using React? If yes, please point toward some resources. Also, what other ways can a Pytorch model be served into production in conjunction with a…
-1
votes
1 answer

Can't create an inference session in onnxruntime

I am not able to create an instance of InferenceSession using onnxruntime. My platform is Mac OS(Big Sur). The code doesn't even throw any exceptions. Process is simply being killed. The same code works perfectly on Windows. Here are the…
Niyazi Babayev
  • 120
  • 2
  • 9
-1
votes
1 answer

How to Export Stanza to ONNX format?

How to export Stanza to ONNX format? It seems impossible to just simply train the model.
-1
votes
1 answer

performance openvino demo error --- python:command not found

when I execute follow script in the vm,it take place this erro: (yolox_torch) [root@localhost cenos]# cd /opt/intel/openvino_2021/deployment_tools/model_optimizer/install_prerequisites/ (yolox_torch) [root@localhost install_prerequisites]#…
-1
votes
1 answer

How to find the floating point precision of a tensorflow model (frozen graph in .pb format),onnx model(.onnx format) like whether it is FP32 or FP16?

I am trying to convert a frozen graph of a resnet-50 model to onnx model and then to tensorRT. I want to make sure the floating point precision at each conversion.
-1
votes
1 answer

The way to change the bilinear resize to nearest neighbor(NN) in TF2.0 saved or frozen graph or onnx model

I have the customized onnx model and want to implement it into specific embedded device. Before to implement it, It is needed to convert the model to the embedded device compatible model. But the thing is that.. My model has Bilinear resize…
Seongkyun Han
  • 119
  • 1
  • 2
  • 8
-1
votes
1 answer

How to access DisposableList in C# coding for Microsoft.ML.onnxruntime?

May i know how to display the values circled in yellow in the console. i tried using (var results = Session.Run(outputs)) { var highestIndex = results.First().AsTensor().First(); …
hanzgs
  • 1,498
  • 17
  • 44
1 2 3
53
54