I followed each and every step for the custom model and generated custom model.param (looks like below) but I do not understand that why it's little different than normal. for example, it shows Memorydata in the beginning so I got confused. If possible then please into it and help me out to run/solve this for my custom model. Thank you in advance.
Hello, I have followed this article (mentioned below) to prepare model.param and model.bin. https://cdmana.com/2021/07/20210721095026166r.html
I followed each and every step for the custom model and generated custom model.param (looks like below) but I do not understand that why it's little different than normal. for example, it shows Memorydata in the beginning so I got confused. If possible then please into it and help me out to run/solve this for my custom model. Thank you in advance.
Custom mode.param (generated after onnx2ncnn): 7767517 222 252 Input images 0 1 images MemoryData 356 0 1 356 MemoryData 369 0 1 369 MemoryData 414 0 1 414 MemoryData 427 0 1 427 MemoryData 472 0 1 472 MemoryData 485 0 1 485 Convolution Conv_0 1 1 images 122 0=32 1=6 11=6 2=1 12=1 3=2 13=2 4=2 14=2 15=2 16=2 5=1 6=3456 Swish Mul_2 1 1 122 124 Convolution Conv_3 1 1 124 125 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 Swish Mul_5 1 1 125 127 Split splitncnn_0 1 2 127 127_splitncnn_0 127_splitncnn_1 Convolution Conv_6 1 1 127_splitncnn_1 128 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=2048 Swish Mul_8 1 1 128 130 Split splitncnn_1 1 2 130 130_splitncnn_0 130_splitncnn_1 Convolution Conv_9 1 1 130_splitncnn_1 131 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 Swish Mul_11 1 1 131 133 Convolution Conv_12 1 1 133 134 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 Swish Mul_14 1 1 134 136 BinaryOp Add_15 2 1 130_splitncnn_0 136 137 0=0 Convolution Conv_16 1 1 127_splitncnn_0 138 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=2048 Swish Mul_18 1 1 138 140 Concat Concat_19 2 1 137 140 141 0=0 Convolution Conv_20 1 1 141 142 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 Swish Mul_22 1 1 142 144 Convolution Conv_23 1 1 144 145 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 Swish Mul_25 1 1 145 147 Split splitncnn_2 1 2 147 147_splitncnn_0 147_splitncnn_1 Convolution Conv_26 1 1 147_splitncnn_1 148 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 Swish Mul_28 1 1 148 150 Split splitncnn_3 1 2 150 150_splitncnn_0 150_splitncnn_1 Convolution Conv_29 1 1 150_splitncnn_1 151 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 Swish Mul_31 1 1 151 153 Convolution Conv_32 1 1 153 154 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 Swish Mul_34 1 1 154 156 BinaryOp Add_35 2 1 150_splitncnn_0 156 157 0=0 Split splitncnn_4 1 2 157 157_splitncnn_0 157_splitncnn_1 Convolution Conv_36 1 1 157_splitncnn_1 158 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 Swish Mul_38 1 1 158 160 Convolution Conv_39 1 1 160 161 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 Swish Mul_41 1 1 161 163 BinaryOp Add_42 2 1 157_splitncnn_0 163 164 0=0 Convolution Conv_43 1 1 147_splitncnn_0 165 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 Swish Mul_45 1 1 165 167 Concat Concat_46 2 1 164 167 168 0=0 Convolution Conv_47 1 1 168 169 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 Swish Mul_49 1 1 169 171 Split splitncnn_5 1 2 171 171_splitncnn_0 171_splitncnn_1 Convolution Conv_50 1 1 171_splitncnn_1 172 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 Swish Mul_52 1 1 172 174 Split splitncnn_6 1 2 174 174_splitncnn_0 174_splitncnn_1 Convolution Conv_53 1 1 174_splitncnn_1 175 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 Swish Mul_55 1 1 175 177 Split splitncnn_7 1 2 177 177_splitncnn_0 177_splitncnn_1 Convolution Conv_56 1 1 177_splitncnn_1 178 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 Swish Mul_58 1 1 178 180 Convolution Conv_59 1 1 180 181 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 Swish Mul_61 1 1 181 183 BinaryOp Add_62 2 1 177_splitncnn_0 183 184 0=0 Split splitncnn_8 1 2 184 184_splitncnn_0 184_splitncnn_1 Convolution Conv_63 1 1 184_splitncnn_1 185 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 Swish Mul_65 1 1 185 187 Convolution Conv_66 1 1 187 188 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 Swish Mul_68 1 1 188 190 BinaryOp Add_69 2 1 184_splitncnn_0 190 191 0=0 Split splitncnn_9 1 2 191 191_splitncnn_0 191_splitncnn_1 Convolution Conv_70 1 1 191_splitncnn_1 192 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 Swish Mul_72 1 1 192 194 Convolution Conv_73 1 1 194 195 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 Swish Mul_75 1 1 195 197 BinaryOp Add_76 2 1 191_splitncnn_0 197 198 0=0 Convolution Conv_77 1 1 174_splitncnn_0 199 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 Swish Mul_79 1 1 199 201 Concat Concat_80 2 1 198 201 202 0=0 Convolution Conv_81 1 1 202 203 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 Swish Mul_83 1 1 203 205 Split splitncnn_10 1 2 205 205_splitncnn_0 205_splitncnn_1 Convolution Conv_84 1 1 205_splitncnn_1 206 0=512 1=3 11=3 2=1 12=1 3=2 13=2 4=1 14=1 15=1 16=1 5=1 6=1179648 Swish Mul_86 1 1 206 208 Split splitncnn_11 1 2 208 208_splitncnn_0 208_splitncnn_1 Convolution Conv_87 1 1 208_splitncnn_1 209 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 Swish Mul_89 1 1 209 211 Split splitncnn_12 1 2 211 211_splitncnn_0 211_splitncnn_1 Convolution Conv_90 1 1 211_splitncnn_1 212 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 Swish Mul_92 1 1 212 214 Convolution Conv_93 1 1 214 215 0=256 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=589824 Swish Mul_95 1 1 215 217 BinaryOp Add_96 2 1 211_splitncnn_0 217 218 0=0 Convolution Conv_97 1 1 208_splitncnn_0 219 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 Swish Mul_99 1 1 219 221 Concat Concat_100 2 1 218 221 222 0=0 Convolution Conv_101 1 1 222 223 0=512 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=262144 Swish Mul_103 1 1 223 225 Convolution Conv_104 1 1 225 226 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 Swish Mul_106 1 1 226 228 Split splitncnn_13 1 2 228 228_splitncnn_0 228_splitncnn_1 Pooling MaxPool_107 1 1 228_splitncnn_1 229 0=0 1=5 11=5 2=1 12=1 3=2 13=2 14=2 15=2 5=1 Split splitncnn_14 1 2 229 229_splitncnn_0 229_splitncnn_1 Pooling MaxPool_108 1 1 229_splitncnn_1 230 0=0 1=5 11=5 2=1 12=1 3=2 13=2 14=2 15=2 5=1 Split splitncnn_15 1 2 230 230_splitncnn_0 230_splitncnn_1 Pooling MaxPool_109 1 1 230_splitncnn_1 231 0=0 1=5 11=5 2=1 12=1 3=2 13=2 14=2 15=2 5=1 Concat Concat_110 4 1 228_splitncnn_0 229_splitncnn_0 230_splitncnn_0 231 232 0=0 Convolution Conv_111 1 1 232 233 0=512 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=524288 Swish Mul_113 1 1 233 235 Convolution Conv_114 1 1 235 236 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 Swish Mul_116 1 1 236 238 Split splitncnn_16 1 2 238 238_splitncnn_0 238_splitncnn_1 Interp Resize_118 1 1 238_splitncnn_1 243 0=1 1=2.000000e+00 2=2.000000e+00 3=0 4=0 6=0 Concat Concat_119 2 1 243 205_splitncnn_0 244 0=0 Split splitncnn_17 1 2 244 244_splitncnn_0 244_splitncnn_1 Convolution Conv_120 1 1 244_splitncnn_1 245 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=65536 Swish Mul_122 1 1 245 247 Convolution Conv_123 1 1 247 248 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 Swish Mul_125 1 1 248 250 Convolution Conv_126 1 1 250 251 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 Swish Mul_128 1 1 251 253 Convolution Conv_129 1 1 244_splitncnn_0 254 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=65536 Swish Mul_131 1 1 254 256 Concat Concat_132 2 1 253 256 257 0=0 Convolution Conv_133 1 1 257 258 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 Swish Mul_135 1 1 258 260 Convolution Conv_136 1 1 260 261 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 Swish Mul_138 1 1 261 263 Split splitncnn_18 1 2 263 263_splitncnn_0 263_splitncnn_1 Interp Resize_140 1 1 263_splitncnn_1 268 0=1 1=2.000000e+00 2=2.000000e+00 3=0 4=0 6=0 Concat Concat_141 2 1 268 171_splitncnn_0 269 0=0 Split splitncnn_19 1 2 269 269_splitncnn_0 269_splitncnn_1 Convolution Conv_142 1 1 269_splitncnn_1 270 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=16384 Swish Mul_144 1 1 270 272 Convolution Conv_145 1 1 272 273 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 Swish Mul_147 1 1 273 275 Convolution Conv_148 1 1 275 276 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 Swish Mul_150 1 1 276 278 Convolution Conv_151 1 1 269_splitncnn_0 279 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=16384 Swish Mul_153 1 1 279 281 Concat Concat_154 2 1 278 281 282 0=0 Convolution Conv_155 1 1 282 283 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 Swish Mul_157 1 1 283 285 Split splitncnn_20 1 2 285 285_splitncnn_0 285_splitncnn_1 Convolution Conv_158 1 1 285_splitncnn_1 286 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 Swish Mul_160 1 1 286 288 Concat Concat_161 2 1 288 263_splitncnn_0 289 0=0 Split splitncnn_21 1 2 289 289_splitncnn_0 289_splitncnn_1 Convolution Conv_162 1 1 289_splitncnn_1 290 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 Swish Mul_164 1 1 290 292 Convolution Conv_165 1 1 292 293 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 Swish Mul_167 1 1 293 295 Convolution Conv_168 1 1 295 296 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 Swish Mul_170 1 1 296 298 Convolution Conv_171 1 1 289_splitncnn_0 299 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 Swish Mul_173 1 1 299 301 Concat Concat_174 2 1 298 301 302 0=0 Convolution Conv_175 1 1 302 303 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 Swish Mul_177 1 1 303 305 Split splitncnn_22 1 2 305 305_splitncnn_0 305_splitncnn_1 Convolution Conv_178 1 1 305_splitncnn_1 306 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=589824 Swish Mul_180 1 1 306 308 Concat Concat_181 2 1 308 238_splitncnn_0 309 0=0 Split splitncnn_23 1 2 309 309_splitncnn_0 309_splitncnn_1 Convolution Conv_182 1 1 309_splitncnn_1 310 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 Swish Mul_184 1 1 310 312 Convolution Conv_185 1 1 312 313 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 Swish Mul_187 1 1 313 315 Convolution Conv_188 1 1 315 316 0=256 1=3 11=3 2=1 12=1 3=1 13=1 4=1 14=1 15=1 16=1 5=1 6=589824 Swish Mul_190 1 1 316 318 Convolution Conv_191 1 1 309_splitncnn_0 319 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 Swish Mul_193 1 1 319 321 Concat Concat_194 2 1 318 321 322 0=0 Convolution Conv_195 1 1 322 323 0=512 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=262144 Swish Mul_197 1 1 323 325 Convolution Conv_198 1 1 285_splitncnn_0 326 0=21 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=2688 Reshape Reshape_212 1 1 326 344 0=6400 1=7 2=3 Permute Transpose_213 1 1 344 345 0=1 Sigmoid Sigmoid_214 1 1 345 346 Split splitncnn_24 1 3 346 346_splitncnn_0 346_splitncnn_1 346_splitncnn_2 Crop Slice_219 1 1 346_splitncnn_2 351 -23309=1,0 -23310=1,2 -23311=1,3 BinaryOp Mul_221 1 1 351 353 0=2 1=1 2=2.000000e+00 BinaryOp Sub_223 1 1 353 355 0=1 1=1 2=5.000000e-01 BinaryOp Add_225 2 1 355 356 357 0=0 BinaryOp Mul_227 1 1 357 359 0=2 1=1 2=8.000000e+00 Crop Slice_232 1 1 346_splitncnn_1 364 -23309=1,2 -23310=1,4 -23311=1,3 BinaryOp Mul_234 1 1 364 366 0=2 1=1 2=2.000000e+00 BinaryOp Pow_236 1 1 366 368 0=6 1=1 2=2.000000e+00 BinaryOp Mul_238 2 1 368 369 370 0=2 Crop Slice_243 1 1 346_splitncnn_0 375 -23309=1,4 -23310=1,2147483647 -23311=1,3 Concat Concat_244 3 1 359 370 375 376 0=-2 Reshape Reshape_247 1 1 376 383 0=7 1=-1 Convolution Conv_248 1 1 305_splitncnn_0 384 0=21 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=5376 Reshape Reshape_262 1 1 384 402 0=1600 1=7 2=3 Permute Transpose_263 1 1 402 403 0=1 Sigmoid Sigmoid_264 1 1 403 404 Split splitncnn_25 1 3 404 404_splitncnn_0 404_splitncnn_1 404_splitncnn_2 Crop Slice_269 1 1 404_splitncnn_2 409 -23309=1,0 -23310=1,2 -23311=1,3 BinaryOp Mul_271 1 1 409 411 0=2 1=1 2=2.000000e+00 BinaryOp Sub_273 1 1 411 413 0=1 1=1 2=5.000000e-01 BinaryOp Add_275 2 1 413 414 415 0=0 BinaryOp Mul_277 1 1 415 417 0=2 1=1 2=1.600000e+01 Crop Slice_282 1 1 404_splitncnn_1 422 -23309=1,2 -23310=1,4 -23311=1,3 BinaryOp Mul_284 1 1 422 424 0=2 1=1 2=2.000000e+00 BinaryOp Pow_286 1 1 424 426 0=6 1=1 2=2.000000e+00 BinaryOp Mul_288 2 1 426 427 428 0=2 Crop Slice_293 1 1 404_splitncnn_0 433 -23309=1,4 -23310=1,2147483647 -23311=1,3 Concat Concat_294 3 1 417 428 433 434 0=-2 Reshape Reshape_297 1 1 434 441 0=7 1=-1 Convolution Conv_298 1 1 325 442 0=21 1=1 11=1 2=1 12=1 3=1 13=1 4=0 14=0 15=0 16=0 5=1 6=10752 Reshape Reshape_312 1 1 442 460 0=400 1=7 2=3 Permute Transpose_313 1 1 460 461 0=1 Sigmoid Sigmoid_314 1 1 461 462 Split splitncnn_26 1 3 462 462_splitncnn_0 462_splitncnn_1 462_splitncnn_2 Crop Slice_319 1 1 462_splitncnn_2 467 -23309=1,0 -23310=1,2 -23311=1,3 BinaryOp Mul_321 1 1 467 469 0=2 1=1 2=2.000000e+00 BinaryOp Sub_323 1 1 469 471 0=1 1=1 2=5.000000e-01 BinaryOp Add_325 2 1 471 472 473 0=0 BinaryOp Mul_327 1 1 473 475 0=2 1=1 2=3.200000e+01 Crop Slice_332 1 1 462_splitncnn_1 480 -23309=1,2 -23310=1,4 -23311=1,3 BinaryOp Mul_334 1 1 480 482 0=2 1=1 2=2.000000e+00 BinaryOp Pow_336 1 1 482 484 0=6 1=1 2=2.000000e+00 BinaryOp Mul_338 2 1 484 485 486 0=2 Crop Slice_343 1 1 462_splitncnn_0 491 -23309=1,4 -23310=1,2147483647 -23311=1,3 Concat Concat_344 3 1 475 486 491 492 0=-2 Reshape Reshape_347 1 1 492 499 0=7 1=-1 Concat Concat_348 3 1 383 441 499 output 0=0