tutorials
tutorials copied to clipboard
Tutorials for creating and using ONNX models
i have a pytorch model xxxx.pth, but inside there is only parameters, and no the structure of the model. can it be translate to .onnx file ? how ? i...
I am converting encoder and decoder to onnx format. Everything works fine but as soon as I compare torch_out with caffe2 model it gives AtrributError np.testing.assert_almost_equal(torch_out.data.cpu().numpy(), c2_out, decimal=3) In this...
dear sir, I tried to convert my model tensorflow->onnx->tensorrt but tensorrt said your input has type uint8 (no support) is there a way to change model input from uint8 to...
Hi, Can someone please help me How can I build and use the OnnxRuntime Server in windows which can support gRPC and HTTP. I have made a c++ api which...
tf2onnx
when i try to convert tensorflow pb model to onnx: it raise error as follows: raise ValueError("get tensor value: {} must be Const".format(self.name)) ValueError: get tensor value: model_0/build_feature_pyramid/build_P4/up_sample_nearest_neighbor/size_Concat__1007 must be...
Shape must be rank 4 but is rank 0 for 'darknet/conv0/Conv2D' (op: 'Conv2D') with input shapes: [], [3,3,3,32]
Hi, I'm trying to convert onnx to pb. The onnx file loading is done successfully. Then, I call prepare (a function of onnx_tf.beckend). This function calls onnx.checker.check_model -> that calls...
Hi, I followed the tutorial in https://github.com/onnx/tutorials/blob/master/tutorials/Caffe2OnnxExport.ipynb to convert the caffe2 model to onnx. However, the conversion didn't succeed to report error ``` .... "onnx.onnx_cpp2py_export.checker.ValidationError: Unrecognized attribute: dilations for operator...
Code: ``` def run_onnx_in_caffe2(args, message_tensor): # Load the ONNX ModelProto object. model is a standard Python protobuf object model_onnx = onnx.load(args.output_path) # prepare the caffe2 backend for executing the model_onnx...
After convert pth to pb,open pb file with netron, graph is confusing.The following is a comparison of onnx files and pb files opened with netron.   @shinh