onnx转换ncnn,获取输出后维度发生变化

rfbsl7qr  于 3个月前  发布在  其他
关注(0)|答案(1)|浏览(39)

error log | 日志或报错信息 | ログ

model | 模型 | モデル

  1. original model
    原始模型输出是这三个特征

输出后,c++调用ncnn,输出维度不对应,80变为32.

how to reproduce | 复现步骤 | 再現方法

1.onnx转换ncnn模型命令:onnx2ncnn *.onnx *.param *.bin,得到的ncnn模型如下:
7767517
207 250
Input images 0 1 images
MemoryData onnx::Split_152 0 1 onnx::Split_152 0=2
MemoryData onnx::Split_167 0 1 onnx::Split_167 0=2
Split splitncnn_0 1 2 onnx::Split_167 onnx::Split_167_splitncnn_0 onnx::Split_167_splitncnn_1
MemoryData onnx::Split_187 0 1 onnx::Split_187 0=2
Split splitncnn_1 1 3 onnx::Split_187 onnx::Split_187_splitncnn_0 onnx::Split_187_splitncnn_1 onnx::Split_187_splitncnn_2
MemoryData onnx::Split_207 0 1 onnx::Split_207 0=2
Split splitncnn_2 1 2 onnx::Split_207 onnx::Split_207_splitncnn_0 onnx::Split_207_splitncnn_1
Convolution /model.0/conv/Conv 1 1 images /model.0/conv/Conv_output_0 0=16 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=432
ReLU /model.0/act/Relu 1 1 /model.0/conv/Conv_output_0 /model.0/act/Relu_output_0
Convolution /model.1/conv/Conv 1 1 /model.0/act/Relu_output_0 /model.1/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=4608
ReLU /model.1/act/Relu 1 1 /model.1/conv/Conv_output_0 /model.1/act/Relu_output_0
Convolution /model.2/cv1/conv/Conv 1 1 /model.1/act/Relu_output_0 /model.2/cv1/conv/Conv_output_0 0=32 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=1024
ReLU /model.2/cv1/act/Relu 1 1 /model.2/cv1/conv/Conv_output_0 /model.2/cv1/act/Relu_output_0
Slice /model.2/Split 2 2 /model.2/cv1/act/Relu_output_0 onnx::Split_152 /model.2/Split_output_0 /model.2/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_3 1 3 /model.2/Split_output_1 /model.2/Split_output_1_splitncnn_0 /model.2/Split_output_1_splitncnn_1 /model.2/Split_output_1_splitncnn_2
Convolution /model.2/m.0/cv1/conv/Conv 1 1 /model.2/Split_output_1_splitncnn_2 /model.2/m.0/cv1/conv/Conv_output_0 0=16 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=2304
ReLU /model.2/m.0/cv1/act/Relu 1 1 /model.2/m.0/cv1/conv/Conv_output_0 /model.2/m.0/cv1/act/Relu_output_0
Convolution /model.2/m.0/cv2/conv/Conv 1 1 /model.2/m.0/cv1/act/Relu_output_0 /model.2/m.0/cv2/conv/Conv_output_0 0=16 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=2304
ReLU /model.2/m.0/cv2/act/Relu 1 1 /model.2/m.0/cv2/conv/Conv_output_0 /model.2/m.0/cv2/act/Relu_output_0
BinaryOp /model.2/m.0/Add 2 1 /model.2/Split_output_1_splitncnn_1 /model.2/m.0/cv2/act/Relu_output_0 /model.2/m.0/Add_output_0 0=0
Concat /model.2/Concat 3 1 /model.2/Split_output_0 /model.2/Split_output_1_splitncnn_0 /model.2/m.0/Add_output_0 /model.2/Concat_output_0 0=0
Convolution /model.2/cv2/conv/Conv 1 1 /model.2/Concat_output_0 /model.2/cv2/conv/Conv_output_0 0=32 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=1536
ReLU /model.2/cv2/act/Relu 1 1 /model.2/cv2/conv/Conv_output_0 /model.2/cv2/act/Relu_output_0
Convolution /model.3/conv/Conv 1 1 /model.2/cv2/act/Relu_output_0 /model.3/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=18432
ReLU /model.3/act/Relu 1 1 /model.3/conv/Conv_output_0 /model.3/act/Relu_output_0
Convolution /model.4/cv1/conv/Conv 1 1 /model.3/act/Relu_output_0 /model.4/cv1/conv/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=4096
ReLU /model.4/cv1/act/Relu 1 1 /model.4/cv1/conv/Conv_output_0 /model.4/cv1/act/Relu_output_0
Slice /model.4/Split 2 2 /model.4/cv1/act/Relu_output_0 onnx::Split_167_splitncnn_1 /model.4/Split_output_0 /model.4/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_4 1 3 /model.4/Split_output_1 /model.4/Split_output_1_splitncnn_0 /model.4/Split_output_1_splitncnn_1 /model.4/Split_output_1_splitncnn_2
Convolution /model.4/m.0/cv1/conv/Conv 1 1 /model.4/Split_output_1_splitncnn_2 /model.4/m.0/cv1/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=9216
ReLU /model.4/m.0/cv1/act/Relu 1 1 /model.4/m.0/cv1/conv/Conv_output_0 /model.4/m.0/cv1/act/Relu_output_0
Convolution /model.4/m.0/cv2/conv/Conv 1 1 /model.4/m.0/cv1/act/Relu_output_0 /model.4/m.0/cv2/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=9216
ReLU /model.4/m.0/cv2/act/Relu 1 1 /model.4/m.0/cv2/conv/Conv_output_0 /model.4/m.0/cv2/act/Relu_output_0
BinaryOp /model.4/m.0/Add 2 1 /model.4/Split_output_1_splitncnn_1 /model.4/m.0/cv2/act/Relu_output_0 /model.4/m.0/Add_output_0 0=0
Split splitncnn_5 1 3 /model.4/m.0/Add_output_0 /model.4/m.0/Add_output_0_splitncnn_0 /model.4/m.0/Add_output_0_splitncnn_1 /model.4/m.0/Add_output_0_splitncnn_2
Convolution /model.4/m.1/cv1/conv/Conv 1 1 /model.4/m.0/Add_output_0_splitncnn_2 /model.4/m.1/cv1/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=9216
ReLU /model.4/m.1/cv1/act/Relu 1 1 /model.4/m.1/cv1/conv/Conv_output_0 /model.4/m.1/cv1/act/Relu_output_0
Convolution /model.4/m.1/cv2/conv/Conv 1 1 /model.4/m.1/cv1/act/Relu_output_0 /model.4/m.1/cv2/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=9216
ReLU /model.4/m.1/cv2/act/Relu 1 1 /model.4/m.1/cv2/conv/Conv_output_0 /model.4/m.1/cv2/act/Relu_output_0
BinaryOp /model.4/m.1/Add 2 1 /model.4/m.0/Add_output_0_splitncnn_1 /model.4/m.1/cv2/act/Relu_output_0 /model.4/m.1/Add_output_0 0=0
Concat /model.4/Concat 4 1 /model.4/Split_output_0 /model.4/Split_output_1_splitncnn_0 /model.4/m.0/Add_output_0_splitncnn_0 /model.4/m.1/Add_output_0 /model.4/Concat_output_0 0=0
Convolution /model.4/cv2/conv/Conv 1 1 /model.4/Concat_output_0 /model.4/cv2/conv/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=8192
ReLU /model.4/cv2/act/Relu 1 1 /model.4/cv2/conv/Conv_output_0 /model.4/cv2/act/Relu_output_0
Split splitncnn_6 1 2 /model.4/cv2/act/Relu_output_0 /model.4/cv2/act/Relu_output_0_splitncnn_0 /model.4/cv2/act/Relu_output_0_splitncnn_1
Convolution /model.5/conv/Conv 1 1 /model.4/cv2/act/Relu_output_0_splitncnn_1 /model.5/conv/Conv_output_0 0=128 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=73728
ReLU /model.5/act/Relu 1 1 /model.5/conv/Conv_output_0 /model.5/act/Relu_output_0
Convolution /model.6/cv1/conv/Conv 1 1 /model.5/act/Relu_output_0 /model.6/cv1/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=16384
ReLU /model.6/cv1/act/Relu 1 1 /model.6/cv1/conv/Conv_output_0 /model.6/cv1/act/Relu_output_0
Slice /model.6/Split 2 2 /model.6/cv1/act/Relu_output_0 onnx::Split_187_splitncnn_2 /model.6/Split_output_0 /model.6/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_7 1 3 /model.6/Split_output_1 /model.6/Split_output_1_splitncnn_0 /model.6/Split_output_1_splitncnn_1 /model.6/Split_output_1_splitncnn_2
Convolution /model.6/m.0/cv1/conv/Conv 1 1 /model.6/Split_output_1_splitncnn_2 /model.6/m.0/cv1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.6/m.0/cv1/act/Relu 1 1 /model.6/m.0/cv1/conv/Conv_output_0 /model.6/m.0/cv1/act/Relu_output_0
Convolution /model.6/m.0/cv2/conv/Conv 1 1 /model.6/m.0/cv1/act/Relu_output_0 /model.6/m.0/cv2/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.6/m.0/cv2/act/Relu 1 1 /model.6/m.0/cv2/conv/Conv_output_0 /model.6/m.0/cv2/act/Relu_output_0
BinaryOp /model.6/m.0/Add 2 1 /model.6/Split_output_1_splitncnn_1 /model.6/m.0/cv2/act/Relu_output_0 /model.6/m.0/Add_output_0 0=0
Split splitncnn_8 1 3 /model.6/m.0/Add_output_0 /model.6/m.0/Add_output_0_splitncnn_0 /model.6/m.0/Add_output_0_splitncnn_1 /model.6/m.0/Add_output_0_splitncnn_2
Convolution /model.6/m.1/cv1/conv/Conv 1 1 /model.6/m.0/Add_output_0_splitncnn_2 /model.6/m.1/cv1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.6/m.1/cv1/act/Relu 1 1 /model.6/m.1/cv1/conv/Conv_output_0 /model.6/m.1/cv1/act/Relu_output_0
Convolution /model.6/m.1/cv2/conv/Conv 1 1 /model.6/m.1/cv1/act/Relu_output_0 /model.6/m.1/cv2/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.6/m.1/cv2/act/Relu 1 1 /model.6/m.1/cv2/conv/Conv_output_0 /model.6/m.1/cv2/act/Relu_output_0
BinaryOp /model.6/m.1/Add 2 1 /model.6/m.0/Add_output_0_splitncnn_1 /model.6/m.1/cv2/act/Relu_output_0 /model.6/m.1/Add_output_0 0=0
Concat /model.6/Concat 4 1 /model.6/Split_output_0 /model.6/Split_output_1_splitncnn_0 /model.6/m.0/Add_output_0_splitncnn_0 /model.6/m.1/Add_output_0 /model.6/Concat_output_0 0=0
Convolution /model.6/cv2/conv/Conv 1 1 /model.6/Concat_output_0 /model.6/cv2/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=32768
ReLU /model.6/cv2/act/Relu 1 1 /model.6/cv2/conv/Conv_output_0 /model.6/cv2/act/Relu_output_0
Split splitncnn_9 1 2 /model.6/cv2/act/Relu_output_0 /model.6/cv2/act/Relu_output_0_splitncnn_0 /model.6/cv2/act/Relu_output_0_splitncnn_1
Convolution /model.7/conv/Conv 1 1 /model.6/cv2/act/Relu_output_0_splitncnn_1 /model.7/conv/Conv_output_0 0=256 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=294912
ReLU /model.7/act/Relu 1 1 /model.7/conv/Conv_output_0 /model.7/act/Relu_output_0
Convolution /model.8/cv1/conv/Conv 1 1 /model.7/act/Relu_output_0 /model.8/cv1/conv/Conv_output_0 0=256 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=65536
ReLU /model.8/cv1/act/Relu 1 1 /model.8/cv1/conv/Conv_output_0 /model.8/cv1/act/Relu_output_0
Slice /model.8/Split 2 2 /model.8/cv1/act/Relu_output_0 onnx::Split_207_splitncnn_1 /model.8/Split_output_0 /model.8/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_10 1 3 /model.8/Split_output_1 /model.8/Split_output_1_splitncnn_0 /model.8/Split_output_1_splitncnn_1 /model.8/Split_output_1_splitncnn_2
Convolution /model.8/m.0/cv1/conv/Conv 1 1 /model.8/Split_output_1_splitncnn_2 /model.8/m.0/cv1/conv/Conv_output_0 0=128 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.8/m.0/cv1/act/Relu 1 1 /model.8/m.0/cv1/conv/Conv_output_0 /model.8/m.0/cv1/act/Relu_output_0
Convolution /model.8/m.0/cv2/conv/Conv 1 1 /model.8/m.0/cv1/act/Relu_output_0 /model.8/m.0/cv2/conv/Conv_output_0 0=128 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.8/m.0/cv2/act/Relu 1 1 /model.8/m.0/cv2/conv/Conv_output_0 /model.8/m.0/cv2/act/Relu_output_0
BinaryOp /model.8/m.0/Add 2 1 /model.8/Split_output_1_splitncnn_1 /model.8/m.0/cv2/act/Relu_output_0 /model.8/m.0/Add_output_0 0=0
Concat /model.8/Concat 3 1 /model.8/Split_output_0 /model.8/Split_output_1_splitncnn_0 /model.8/m.0/Add_output_0 /model.8/Concat_output_0 0=0
Convolution /model.8/cv2/conv/Conv 1 1 /model.8/Concat_output_0 /model.8/cv2/conv/Conv_output_0 0=256 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=98304
ReLU /model.8/cv2/act/Relu 1 1 /model.8/cv2/conv/Conv_output_0 /model.8/cv2/act/Relu_output_0
Convolution /model.9/cv1/conv/Conv 1 1 /model.8/cv2/act/Relu_output_0 /model.9/cv1/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=32768
ReLU /model.9/cv1/act/Relu 1 1 /model.9/cv1/conv/Conv_output_0 /model.9/cv1/act/Relu_output_0
Split splitncnn_11 1 2 /model.9/cv1/act/Relu_output_0 /model.9/cv1/act/Relu_output_0_splitncnn_0 /model.9/cv1/act/Relu_output_0_splitncnn_1
Pooling /model.9/m/MaxPool 1 1 /model.9/cv1/act/Relu_output_0_splitncnn_1 /model.9/m/MaxPool_output_0 0=0 1=5 11=5 2=1 12=1 3=2 13=2 14=2 15=2 5=1
Split splitncnn_12 1 2 /model.9/m/MaxPool_output_0 /model.9/m/MaxPool_output_0_splitncnn_0 /model.9/m/MaxPool_output_0_splitncnn_1
Pooling /model.9/m_1/MaxPool 1 1 /model.9/m/MaxPool_output_0_splitncnn_1 /model.9/m_1/MaxPool_output_0 0=0 1=5 11=5 2=1 12=1 3=2 13=2 14=2 15=2 5=1
Split splitncnn_13 1 2 /model.9/m_1/MaxPool_output_0 /model.9/m_1/MaxPool_output_0_splitncnn_0 /model.9/m_1/MaxPool_output_0_splitncnn_1
Pooling /model.9/m_2/MaxPool 1 1 /model.9/m_1/MaxPool_output_0_splitncnn_1 /model.9/m_2/MaxPool_output_0 0=0 1=5 11=5 2=1 12=1 3=2 13=2 14=2 15=2 5=1
Concat /model.9/Concat 4 1 /model.9/cv1/act/Relu_output_0_splitncnn_0 /model.9/m/MaxPool_output_0_splitncnn_0 /model.9/m_1/MaxPool_output_0_splitncnn_0 /model.9/m_2/MaxPool_output_0 /model.9/Concat_output_0 0=0
Convolution /model.9/cv2/conv/Conv 1 1 /model.9/Concat_output_0 /model.9/cv2/conv/Conv_output_0 0=256 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=131072
ReLU /model.9/cv2/act/Relu 1 1 /model.9/cv2/conv/Conv_output_0 /model.9/cv2/act/Relu_output_0
Split splitncnn_14 1 2 /model.9/cv2/act/Relu_output_0 /model.9/cv2/act/Relu_output_0_splitncnn_0 /model.9/cv2/act/Relu_output_0_splitncnn_1
Interp /model.10/Resize 1 1 /model.9/cv2/act/Relu_output_0_splitncnn_1 /model.10/Resize_output_0 0=1 1=2.000000e+00 2=2.000000e+00 3=0 4=0 6=0
Concat /model.11/Concat 2 1 /model.10/Resize_output_0 /model.6/cv2/act/Relu_output_0_splitncnn_0 /model.11/Concat_output_0 0=0
Convolution /model.12/cv1/conv/Conv 1 1 /model.11/Concat_output_0 /model.12/cv1/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=49152
ReLU /model.12/cv1/act/Relu 1 1 /model.12/cv1/conv/Conv_output_0 /model.12/cv1/act/Relu_output_0
Slice /model.12/Split 2 2 /model.12/cv1/act/Relu_output_0 onnx::Split_187_splitncnn_1 /model.12/Split_output_0 /model.12/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_15 1 2 /model.12/Split_output_1 /model.12/Split_output_1_splitncnn_0 /model.12/Split_output_1_splitncnn_1
Convolution /model.12/m.0/cv1/conv/Conv 1 1 /model.12/Split_output_1_splitncnn_1 /model.12/m.0/cv1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.12/m.0/cv1/act/Relu 1 1 /model.12/m.0/cv1/conv/Conv_output_0 /model.12/m.0/cv1/act/Relu_output_0
Convolution /model.12/m.0/cv2/conv/Conv 1 1 /model.12/m.0/cv1/act/Relu_output_0 /model.12/m.0/cv2/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.12/m.0/cv2/act/Relu 1 1 /model.12/m.0/cv2/conv/Conv_output_0 /model.12/m.0/cv2/act/Relu_output_0
Concat /model.12/Concat 3 1 /model.12/Split_output_0 /model.12/Split_output_1_splitncnn_0 /model.12/m.0/cv2/act/Relu_output_0 /model.12/Concat_output_0 0=0
Convolution /model.12/cv2/conv/Conv 1 1 /model.12/Concat_output_0 /model.12/cv2/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=24576
ReLU /model.12/cv2/act/Relu 1 1 /model.12/cv2/conv/Conv_output_0 /model.12/cv2/act/Relu_output_0
Split splitncnn_16 1 2 /model.12/cv2/act/Relu_output_0 /model.12/cv2/act/Relu_output_0_splitncnn_0 /model.12/cv2/act/Relu_output_0_splitncnn_1
Interp /model.13/Resize 1 1 /model.12/cv2/act/Relu_output_0_splitncnn_1 /model.13/Resize_output_0 0=1 1=2.000000e+00 2=2.000000e+00 3=0 4=0 6=0
Concat /model.14/Concat 2 1 /model.13/Resize_output_0 /model.4/cv2/act/Relu_output_0_splitncnn_0 /model.14/Concat_output_0 0=0
Convolution /model.15/cv1/conv/Conv 1 1 /model.14/Concat_output_0 /model.15/cv1/conv/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=12288
ReLU /model.15/cv1/act/Relu 1 1 /model.15/cv1/conv/Conv_output_0 /model.15/cv1/act/Relu_output_0
Slice /model.15/Split 2 2 /model.15/cv1/act/Relu_output_0 onnx::Split_167_splitncnn_0 /model.15/Split_output_0 /model.15/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_17 1 2 /model.15/Split_output_1 /model.15/Split_output_1_splitncnn_0 /model.15/Split_output_1_splitncnn_1
Convolution /model.15/m.0/cv1/conv/Conv 1 1 /model.15/Split_output_1_splitncnn_1 /model.15/m.0/cv1/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=9216
ReLU /model.15/m.0/cv1/act/Relu 1 1 /model.15/m.0/cv1/conv/Conv_output_0 /model.15/m.0/cv1/act/Relu_output_0
Convolution /model.15/m.0/cv2/conv/Conv 1 1 /model.15/m.0/cv1/act/Relu_output_0 /model.15/m.0/cv2/conv/Conv_output_0 0=32 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=9216
ReLU /model.15/m.0/cv2/act/Relu 1 1 /model.15/m.0/cv2/conv/Conv_output_0 /model.15/m.0/cv2/act/Relu_output_0
Concat /model.15/Concat 3 1 /model.15/Split_output_0 /model.15/Split_output_1_splitncnn_0 /model.15/m.0/cv2/act/Relu_output_0 /model.15/Concat_output_0 0=0
Convolution /model.15/cv2/conv/Conv 1 1 /model.15/Concat_output_0 /model.15/cv2/conv/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=6144
ReLU /model.15/cv2/act/Relu 1 1 /model.15/cv2/conv/Conv_output_0 /model.15/cv2/act/Relu_output_0
Split splitncnn_18 1 4 /model.15/cv2/act/Relu_output_0 /model.15/cv2/act/Relu_output_0_splitncnn_0 /model.15/cv2/act/Relu_output_0_splitncnn_1 /model.15/cv2/act/Relu_output_0_splitncnn_2 /model.15/cv2/act/Relu_output_0_splitncnn_3
Convolution /model.16/conv/Conv 1 1 /model.15/cv2/act/Relu_output_0_splitncnn_3 /model.16/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.16/act/Relu 1 1 /model.16/conv/Conv_output_0 /model.16/act/Relu_output_0
Concat /model.17/Concat 2 1 /model.16/act/Relu_output_0 /model.12/cv2/act/Relu_output_0_splitncnn_0 /model.17/Concat_output_0 0=0
Convolution /model.18/cv1/conv/Conv 1 1 /model.17/Concat_output_0 /model.18/cv1/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=24576
ReLU /model.18/cv1/act/Relu 1 1 /model.18/cv1/conv/Conv_output_0 /model.18/cv1/act/Relu_output_0
Slice /model.18/Split 2 2 /model.18/cv1/act/Relu_output_0 onnx::Split_187_splitncnn_0 /model.18/Split_output_0 /model.18/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_19 1 2 /model.18/Split_output_1 /model.18/Split_output_1_splitncnn_0 /model.18/Split_output_1_splitncnn_1
Convolution /model.18/m.0/cv1/conv/Conv 1 1 /model.18/Split_output_1_splitncnn_1 /model.18/m.0/cv1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.18/m.0/cv1/act/Relu 1 1 /model.18/m.0/cv1/conv/Conv_output_0 /model.18/m.0/cv1/act/Relu_output_0
Convolution /model.18/m.0/cv2/conv/Conv 1 1 /model.18/m.0/cv1/act/Relu_output_0 /model.18/m.0/cv2/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.18/m.0/cv2/act/Relu 1 1 /model.18/m.0/cv2/conv/Conv_output_0 /model.18/m.0/cv2/act/Relu_output_0
Concat /model.18/Concat 3 1 /model.18/Split_output_0 /model.18/Split_output_1_splitncnn_0 /model.18/m.0/cv2/act/Relu_output_0 /model.18/Concat_output_0 0=0
Convolution /model.18/cv2/conv/Conv 1 1 /model.18/Concat_output_0 /model.18/cv2/conv/Conv_output_0 0=128 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=24576
ReLU /model.18/cv2/act/Relu 1 1 /model.18/cv2/conv/Conv_output_0 /model.18/cv2/act/Relu_output_0
Split splitncnn_20 1 4 /model.18/cv2/act/Relu_output_0 /model.18/cv2/act/Relu_output_0_splitncnn_0 /model.18/cv2/act/Relu_output_0_splitncnn_1 /model.18/cv2/act/Relu_output_0_splitncnn_2 /model.18/cv2/act/Relu_output_0_splitncnn_3
Convolution /model.19/conv/Conv 1 1 /model.18/cv2/act/Relu_output_0_splitncnn_3 /model.19/conv/Conv_output_0 0=128 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.19/act/Relu 1 1 /model.19/conv/Conv_output_0 /model.19/act/Relu_output_0
Concat /model.20/Concat 2 1 /model.19/act/Relu_output_0 /model.9/cv2/act/Relu_output_0_splitncnn_0 /model.20/Concat_output_0 0=0
Convolution /model.21/cv1/conv/Conv 1 1 /model.20/Concat_output_0 /model.21/cv1/conv/Conv_output_0 0=256 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=98304
ReLU /model.21/cv1/act/Relu 1 1 /model.21/cv1/conv/Conv_output_0 /model.21/cv1/act/Relu_output_0
Slice /model.21/Split 2 2 /model.21/cv1/act/Relu_output_0 onnx::Split_207_splitncnn_0 /model.21/Split_output_0 /model.21/Split_output_1 -23300=2,-233,-233 1=0
Split splitncnn_21 1 2 /model.21/Split_output_1 /model.21/Split_output_1_splitncnn_0 /model.21/Split_output_1_splitncnn_1
Convolution /model.21/m.0/cv1/conv/Conv 1 1 /model.21/Split_output_1_splitncnn_1 /model.21/m.0/cv1/conv/Conv_output_0 0=128 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.21/m.0/cv1/act/Relu 1 1 /model.21/m.0/cv1/conv/Conv_output_0 /model.21/m.0/cv1/act/Relu_output_0
Convolution /model.21/m.0/cv2/conv/Conv 1 1 /model.21/m.0/cv1/act/Relu_output_0 /model.21/m.0/cv2/conv/Conv_output_0 0=128 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.21/m.0/cv2/act/Relu 1 1 /model.21/m.0/cv2/conv/Conv_output_0 /model.21/m.0/cv2/act/Relu_output_0
Concat /model.21/Concat 3 1 /model.21/Split_output_0 /model.21/Split_output_1_splitncnn_0 /model.21/m.0/cv2/act/Relu_output_0 /model.21/Concat_output_0 0=0
Convolution /model.21/cv2/conv/Conv 1 1 /model.21/Concat_output_0 /model.21/cv2/conv/Conv_output_0 0=256 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=98304
ReLU /model.21/cv2/act/Relu 1 1 /model.21/cv2/conv/Conv_output_0 /model.21/cv2/act/Relu_output_0
Split splitncnn_22 1 3 /model.21/cv2/act/Relu_output_0 /model.21/cv2/act/Relu_output_0_splitncnn_0 /model.21/cv2/act/Relu_output_0_splitncnn_1 /model.21/cv2/act/Relu_output_0_splitncnn_2
Convolution /model.22/cv2.0/cv2.0.0/conv/Conv 1 1 /model.15/cv2/act/Relu_output_0_splitncnn_2 /model.22/cv2.0/cv2.0.0/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv2.0/cv2.0.0/act/Relu 1 1 /model.22/cv2.0/cv2.0.0/conv/Conv_output_0 /model.22/cv2.0/cv2.0.0/act/Relu_output_0
Convolution /model.22/cv2.0/cv2.0.1/conv/Conv 1 1 /model.22/cv2.0/cv2.0.0/act/Relu_output_0 /model.22/cv2.0/cv2.0.1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv2.0/cv2.0.1/act/Relu 1 1 /model.22/cv2.0/cv2.0.1/conv/Conv_output_0 /model.22/cv2.0/cv2.0.1/act/Relu_output_0
Convolution /model.22/cv2.0/cv2.0.2/Conv 1 1 /model.22/cv2.0/cv2.0.1/act/Relu_output_0 /model.22/cv2.0/cv2.0.2/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=4096
Permute /model.22/Transpose 1 1 /model.22/cv2.0/cv2.0.2/Conv_output_0 /model.22/Transpose_output_0 0=3
Convolution /model.22/cv3.0/cv3.0.0/conv/Conv 1 1 /model.15/cv2/act/Relu_output_0_splitncnn_1 /model.22/cv3.0/cv3.0.0/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv3.0/cv3.0.0/act/Relu 1 1 /model.22/cv3.0/cv3.0.0/conv/Conv_output_0 /model.22/cv3.0/cv3.0.0/act/Relu_output_0
Convolution /model.22/cv3.0/cv3.0.1/conv/Conv 1 1 /model.22/cv3.0/cv3.0.0/act/Relu_output_0 /model.22/cv3.0/cv3.0.1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv3.0/cv3.0.1/act/Relu 1 1 /model.22/cv3.0/cv3.0.1/conv/Conv_output_0 /model.22/cv3.0/cv3.0.1/act/Relu_output_0
Convolution /model.22/cv3.0/cv3.0.2/Conv 1 1 /model.22/cv3.0/cv3.0.1/act/Relu_output_0 /model.22/cv3.0/cv3.0.2/Conv_output_0 0=8 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=512
Permute /model.22/Transpose_1 1 1 /model.22/cv3.0/cv3.0.2/Conv_output_0 /model.22/Transpose_1_output_0 0=3
Convolution /model.22/cv4.0/cv4.0.0/conv/Conv 1 1 /model.15/cv2/act/Relu_output_0_splitncnn_0 /model.22/cv4.0/cv4.0.0/conv/Conv_output_0 0=48 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=27648
ReLU /model.22/cv4.0/cv4.0.0/act/Relu 1 1 /model.22/cv4.0/cv4.0.0/conv/Conv_output_0 /model.22/cv4.0/cv4.0.0/act/Relu_output_0
Convolution /model.22/cv4.0/cv4.0.1/conv/Conv 1 1 /model.22/cv4.0/cv4.0.0/act/Relu_output_0 /model.22/cv4.0/cv4.0.1/conv/Conv_output_0 0=48 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=20736
ReLU /model.22/cv4.0/cv4.0.1/act/Relu 1 1 /model.22/cv4.0/cv4.0.1/conv/Conv_output_0 /model.22/cv4.0/cv4.0.1/act/Relu_output_0
Convolution /model.22/cv4.0/cv4.0.2/Conv 1 1 /model.22/cv4.0/cv4.0.1/act/Relu_output_0 /model.22/cv4.0/cv4.0.2/Conv_output_0 0=48 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=2304
Permute /model.22/Transpose_2 1 1 /model.22/cv4.0/cv4.0.2/Conv_output_0 /model.22/Transpose_2_output_0 0=3
Concat /model.22/Concat 3 1 /model.22/Transpose_1_output_0 /model.22/Transpose_output_0 /model.22/Transpose_2_output_0 output0 0=-1
Convolution /model.22/cv2.1/cv2.1.0/conv/Conv 1 1 /model.18/cv2/act/Relu_output_0_splitncnn_2 /model.22/cv2.1/cv2.1.0/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=73728
ReLU /model.22/cv2.1/cv2.1.0/act/Relu 1 1 /model.22/cv2.1/cv2.1.0/conv/Conv_output_0 /model.22/cv2.1/cv2.1.0/act/Relu_output_0
Convolution /model.22/cv2.1/cv2.1.1/conv/Conv 1 1 /model.22/cv2.1/cv2.1.0/act/Relu_output_0 /model.22/cv2.1/cv2.1.1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv2.1/cv2.1.1/act/Relu 1 1 /model.22/cv2.1/cv2.1.1/conv/Conv_output_0 /model.22/cv2.1/cv2.1.1/act/Relu_output_0
Convolution /model.22/cv2.1/cv2.1.2/Conv 1 1 /model.22/cv2.1/cv2.1.1/act/Relu_output_0 /model.22/cv2.1/cv2.1.2/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=4096
Permute /model.22/Transpose_3 1 1 /model.22/cv2.1/cv2.1.2/Conv_output_0 /model.22/Transpose_3_output_0 0=3
Convolution /model.22/cv3.1/cv3.1.0/conv/Conv 1 1 /model.18/cv2/act/Relu_output_0_splitncnn_1 /model.22/cv3.1/cv3.1.0/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=73728
ReLU /model.22/cv3.1/cv3.1.0/act/Relu 1 1 /model.22/cv3.1/cv3.1.0/conv/Conv_output_0 /model.22/cv3.1/cv3.1.0/act/Relu_output_0
Convolution /model.22/cv3.1/cv3.1.1/conv/Conv 1 1 /model.22/cv3.1/cv3.1.0/act/Relu_output_0 /model.22/cv3.1/cv3.1.1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv3.1/cv3.1.1/act/Relu 1 1 /model.22/cv3.1/cv3.1.1/conv/Conv_output_0 /model.22/cv3.1/cv3.1.1/act/Relu_output_0
Convolution /model.22/cv3.1/cv3.1.2/Conv 1 1 /model.22/cv3.1/cv3.1.1/act/Relu_output_0 /model.22/cv3.1/cv3.1.2/Conv_output_0 0=8 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=512
Permute /model.22/Transpose_4 1 1 /model.22/cv3.1/cv3.1.2/Conv_output_0 /model.22/Transpose_4_output_0 0=3
Convolution /model.22/cv4.1/cv4.1.0/conv/Conv 1 1 /model.18/cv2/act/Relu_output_0_splitncnn_0 /model.22/cv4.1/cv4.1.0/conv/Conv_output_0 0=48 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=55296
ReLU /model.22/cv4.1/cv4.1.0/act/Relu 1 1 /model.22/cv4.1/cv4.1.0/conv/Conv_output_0 /model.22/cv4.1/cv4.1.0/act/Relu_output_0
Convolution /model.22/cv4.1/cv4.1.1/conv/Conv 1 1 /model.22/cv4.1/cv4.1.0/act/Relu_output_0 /model.22/cv4.1/cv4.1.1/conv/Conv_output_0 0=48 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=20736
ReLU /model.22/cv4.1/cv4.1.1/act/Relu 1 1 /model.22/cv4.1/cv4.1.1/conv/Conv_output_0 /model.22/cv4.1/cv4.1.1/act/Relu_output_0
Convolution /model.22/cv4.1/cv4.1.2/Conv 1 1 /model.22/cv4.1/cv4.1.1/act/Relu_output_0 /model.22/cv4.1/cv4.1.2/Conv_output_0 0=48 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=2304
Permute /model.22/Transpose_5 1 1 /model.22/cv4.1/cv4.1.2/Conv_output_0 /model.22/Transpose_5_output_0 0=3
Concat /model.22/Concat_1 3 1 /model.22/Transpose_4_output_0 /model.22/Transpose_3_output_0 /model.22/Transpose_5_output_0 output1 0=-1
Convolution /model.22/cv2.2/cv2.2.0/conv/Conv 1 1 /model.21/cv2/act/Relu_output_0_splitncnn_2 /model.22/cv2.2/cv2.2.0/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.22/cv2.2/cv2.2.0/act/Relu 1 1 /model.22/cv2.2/cv2.2.0/conv/Conv_output_0 /model.22/cv2.2/cv2.2.0/act/Relu_output_0
Convolution /model.22/cv2.2/cv2.2.1/conv/Conv 1 1 /model.22/cv2.2/cv2.2.0/act/Relu_output_0 /model.22/cv2.2/cv2.2.1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv2.2/cv2.2.1/act/Relu 1 1 /model.22/cv2.2/cv2.2.1/conv/Conv_output_0 /model.22/cv2.2/cv2.2.1/act/Relu_output_0
Convolution /model.22/cv2.2/cv2.2.2/Conv 1 1 /model.22/cv2.2/cv2.2.1/act/Relu_output_0 /model.22/cv2.2/cv2.2.2/Conv_output_0 0=64 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=4096
Permute /model.22/Transpose_6 1 1 /model.22/cv2.2/cv2.2.2/Conv_output_0 /model.22/Transpose_6_output_0 0=3
Convolution /model.22/cv3.2/cv3.2.0/conv/Conv 1 1 /model.21/cv2/act/Relu_output_0_splitncnn_1 /model.22/cv3.2/cv3.2.0/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=147456
ReLU /model.22/cv3.2/cv3.2.0/act/Relu 1 1 /model.22/cv3.2/cv3.2.0/conv/Conv_output_0 /model.22/cv3.2/cv3.2.0/act/Relu_output_0
Convolution /model.22/cv3.2/cv3.2.1/conv/Conv 1 1 /model.22/cv3.2/cv3.2.0/act/Relu_output_0 /model.22/cv3.2/cv3.2.1/conv/Conv_output_0 0=64 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=36864
ReLU /model.22/cv3.2/cv3.2.1/act/Relu 1 1 /model.22/cv3.2/cv3.2.1/conv/Conv_output_0 /model.22/cv3.2/cv3.2.1/act/Relu_output_0
Convolution /model.22/cv3.2/cv3.2.2/Conv 1 1 /model.22/cv3.2/cv3.2.1/act/Relu_output_0 /model.22/cv3.2/cv3.2.2/Conv_output_0 0=8 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=512
Permute /model.22/Transpose_7 1 1 /model.22/cv3.2/cv3.2.2/Conv_output_0 /model.22/Transpose_7_output_0 0=3
Convolution /model.22/cv4.2/cv4.2.0/conv/Conv 1 1 /model.21/cv2/act/Relu_output_0_splitncnn_0 /model.22/cv4.2/cv4.2.0/conv/Conv_output_0 0=48 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=110592
ReLU /model.22/cv4.2/cv4.2.0/act/Relu 1 1 /model.22/cv4.2/cv4.2.0/conv/Conv_output_0 /model.22/cv4.2/cv4.2.0/act/Relu_output_0
Convolution /model.22/cv4.2/cv4.2.1/conv/Conv 1 1 /model.22/cv4.2/cv4.2.0/act/Relu_output_0 /model.22/cv4.2/cv4.2.1/conv/Conv_output_0 0=48 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=20736
ReLU /model.22/cv4.2/cv4.2.1/act/Relu 1 1 /model.22/cv4.2/cv4.2.1/conv/Conv_output_0 /model.22/cv4.2/cv4.2.1/act/Relu_output_0
Convolution /model.22/cv4.2/cv4.2.2/Conv 1 1 /model.22/cv4.2/cv4.2.1/act/Relu_output_0 /model.22/cv4.2/cv4.2.2/Conv_output_0 0=48 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=2304
Permute /model.22/Transpose_8 1 1 /model.22/cv4.2/cv4.2.2/Conv_output_0 /model.22/Transpose_8_output_0 0=3
Concat /model.22/Concat_2 3 1 /model.22/Transpose_7_output_0 /model.22/Transpose_6_output_0 /model.22/Transpose_8_output_0 output2 0=-1
2、获取特征对应如下:

3.输出结果如下:

The content you are editing has changed. Please copy your edits and refresh the page.

Tasks

Beta Give feedback
No tasks being tracked yet.

  • Options* Convert to issue
  • Toggle completion
  • Rename
  • Remove
envsm3lx

envsm3lx1#

针对onnx模型转换的各种问题,推荐使用最新的pnnx工具转换到ncnn
In view of various problems in onnx model conversion, it is recommended to use the latest pnnx tool to convert your model to ncnn

pip install pnnx
pnnx model.onnx inputshape=[1,3,224,224]

详细参考文档
Detailed reference documentation
https://github.com/pnnx/pnnx
https://github.com/Tencent/ncnn/wiki/use-ncnn-with-pytorch-or-onnx#how-to-use-pnnx

相关问题