onnx2caffe
onnx2caffe copied to clipboard
pytorch to caffe by onnx
Traceback (most recent call last): File "convertCaffe.py", line 108, in convertToCaffe(graph, prototxt_path, caffemodel_path) File "convertCaffe.py", line 34, in convertToCaffe graph.channel_dims[edge_name] = graph.shape_dict[edge_name][1] IndexError: tuple index out of range
Hi, thank you very much for your jobs. May I ask how to add and implement PRelu operator ?
i have redefine the layer type like prelu and Transpose, when i run convertCaffe.py and i get error like this.  my env is ubuntu16.04, pytorch 1.3.0 and torchvision 0.3.0.
We are facing issues in converting model which has transpose convolution. Here are the details ` Traceback (most recent call last): File "convertCaffe.py", line 108, in convertToCaffe(graph, prototxt_path, caffemodel_path) File...
@MTlab Hi : I want to convert resnet to caffe,but TypeError: ONNX node of type GlobalAveragePool is not supported. I should how to solve it
ONNX2caffe run in the docker of caffe I0119 09:22:36.791309 249 layer_factory.hpp:77] Creating layer input I0119 09:22:36.791831 249 net.cpp:84] Creating Layer input I0119 09:22:36.792078 249 net.cpp:380] input -> input I0119 09:22:36.792362...
在使用onnx2caffe项目转换ConvTranspose2d层到caffe的Deconvolution层时,_operators.py的代码 `num_output=W.shape[1],` 但我在转的onnx模型中,ConvTranspose2d层的weight的shape是[256, 1, 2, 2],模型源码的定义是 `self.deconv = nn.ConvTranspose2d(c1, c1, kernel_size=k, stride=s, padding=0, output_padding=0, groups=c1, bias=False)` 想请教大大佬,这个是什么原因导致onnx模型中ConvTranspose2d层weight的shape定义不一样。
Traceback (most recent call last): File "convertCaffe.py", line 112, in convertToCaffe(graph, prototxt_path, caffemodel_path) File "convertCaffe.py", line 58, in convertToCaffe layer = converter_fn(node,graph,err) File "/data00/huqingwen.huqwen/workspace/npu/caffe2pb2tflite/gesture/hand-gestures/apu/pytorch2onnx2caffe2tf/onnx2caffe/_operators.py", line 194, in _convert_Reshape return err.unsupported_op_configuration(node,...