onnx2caffe icon indicating copy to clipboard operation
onnx2caffe copied to clipboard

pytorch1.5 onnx2caffe failed

Open qiuhaining opened this issue 4 years ago • 5 comments

from pytorch1.5 to onnx,then convert onnx to caffemodel with your code but the output of caffemodel is zero why?

onnx_pytorchv1.5.zip

qiuhaining avatar May 14 '20 06:05 qiuhaining

me too,and i get erro: if node.attrs["broadcast"] != 1 or node.attrs["transB"] != 1: KeyError: 'broadcast'

shopping-tang avatar Jun 03 '20 07:06 shopping-tang

i tried to change "if node.attrs["broadcast"] != 1 or node.attrs["transB"] != 1:" to "if node.attrs["transB"] != 1:",It works and i get a caffe model. But when I run the caffe model,i get a new bug:"Exception: Input blob arguments do not match net inputs."

shopping-tang avatar Jun 03 '20 07:06 shopping-tang

OK,I got it ! I repaired this bug !

shopping-tang avatar Jun 03 '20 08:06 shopping-tang

OK,I got it ! I repaired this bug !

what did yo do...

lxgyChen avatar Jul 10 '20 09:07 lxgyChen

OK,I got it ! I repaired this bug !

what did yo do...

Sorry, bro,I notice your email now, my method is what I said above.

shopping-tang avatar Jul 23 '20 03:07 shopping-tang