ncnn-metadata.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. [
  2. {
  3. "name": "AbsVal",
  4. "schema": {
  5. "operator": 0
  6. }
  7. },
  8. {
  9. "name": "ArgMax",
  10. "schema": {
  11. "operator": 1
  12. }
  13. },
  14. {
  15. "name": "BatchNorm",
  16. "schema": {
  17. "operator": 2,
  18. "category": "Normalization",
  19. "attributes": [
  20. { "name": "channels", "type": "int32", "default": 0 },
  21. { "name": "eps", "type": "float32", "default": 0 }
  22. ]
  23. }
  24. },
  25. {
  26. "name": "Bias",
  27. "schema": {
  28. "operator": 3,
  29. "category": "Layer",
  30. "attributes": [
  31. { "name": "bias_data_size", "default": 0, "visible": false }
  32. ]
  33. }
  34. },
  35. {
  36. "name": "BNLL",
  37. "schema": {
  38. "operator": 4
  39. }
  40. },
  41. {
  42. "name": "Concat",
  43. "schema": {
  44. "operator": 5,
  45. "category": "Tensor",
  46. "attributes": [
  47. { "name": "axis", "type": "int32", "default": 0 }
  48. ],
  49. "inputs": [
  50. { "name": "input", "option": "variadic" }
  51. ],
  52. "outputs": [
  53. { "name": "output" }
  54. ]
  55. }
  56. },
  57. {
  58. "name": "Convolution",
  59. "schema": {
  60. "operator": 6,
  61. "category": "Layer",
  62. "attributes": [
  63. { "name": "num_output", "type": "int32", "default": 0 },
  64. { "name": "kernel_w", "type": "int32", "default": 0 },
  65. { "name": "dilation_w", "type": "int32", "default": 1 },
  66. { "name": "stride_w", "type": "int32", "default": 1 },
  67. { "name": "pad_w", "type": "int32", "default": 0 },
  68. { "name": "bias_term", "default": 0, "visible": false },
  69. { "name": "weight_data_size", "type": "int32", "default": 0, "visible": false },
  70. { "name": "group", "type": "int32", "default": 0 },
  71. { "name": "int8_scale_term", "default": 0 },
  72. { "name": "activation_type", "default": 0 },
  73. { "name": "activation_params", "default": [] },
  74. { "name": "kernel_h", "type": "int32", "default": 0 },
  75. { "name": "dilation_h", "type": "int32", "default": 1 },
  76. { "name": "stride_h", "type": "int32", "default": 1 },
  77. { "name": "pad_h", "type": "int32", "default": 0 }
  78. ]
  79. }
  80. },
  81. {
  82. "name": "Crop",
  83. "schema": {
  84. "operator": 7,
  85. "category": "Data",
  86. "attributes": [
  87. { "name": "woffset", "default": 0 },
  88. { "name": "hoffset", "default": 0 },
  89. { "name": "coffset", "default": 0 },
  90. { "name": "outw", "default": 0 },
  91. { "name": "outh", "default": 0 },
  92. { "name": "outc", "default": 0 }
  93. ]
  94. }
  95. },
  96. {
  97. "name": "Deconvolution",
  98. "schema": {
  99. "operator": 8,
  100. "category": "Layer",
  101. "attributes": [
  102. { "name": "num_output", "default": 0 },
  103. { "name": "kernel_w", "default": 0 },
  104. { "name": "dilation_w", "default": 1 },
  105. { "name": "stride_w", "default": 1 },
  106. { "name": "pad_w", "default": 0 },
  107. { "name": "bias_term", "default": 0, "visible": false },
  108. { "name": "weight_data_size", "default": 0, "visible": false },
  109. { "name": "group", "default": 0 },
  110. { "name": "int8_scale_term", "default": 0 },
  111. { "name": "activation_type", "default": 0 },
  112. { "name": "activation_params", "default": [] },
  113. { "name": "kernel_h", "default": 0 },
  114. { "name": "dilation_h", "default": 1 },
  115. { "name": "stride_h", "default": 1 },
  116. { "name": "pad_h", "default": 0 }
  117. ]
  118. }
  119. },
  120. {
  121. "name": "Dropout",
  122. "schema": {
  123. "operator": 9,
  124. "category": "Dropout",
  125. "attributes": [
  126. { "name": "scale", "type": "float32", "default": 1 }
  127. ]
  128. }
  129. },
  130. {
  131. "name": "Eltwise",
  132. "schema": {
  133. "operator": 10,
  134. "attributes": [
  135. { "name": "op_type", "default": 0 },
  136. { "name": "coeffs", "default": [] }
  137. ],
  138. "inputs": [
  139. { "name": "inputs", "option": "variadic" }
  140. ]
  141. }
  142. },
  143. {
  144. "name": "ELU",
  145. "schema": {
  146. "operator": 11
  147. }
  148. },
  149. {
  150. "name": "Embed",
  151. "schema": {
  152. "operator": 12,
  153. "category": "Transform",
  154. "attributes": [
  155. { "name": "num_output", "default": 0 },
  156. { "name": "input_dim", "default": 0 },
  157. { "name": "bias_term", "default": 0 },
  158. { "name": "weight_data_size", "default": 0 }
  159. ]
  160. }
  161. },
  162. {
  163. "name": "Exp",
  164. "schema": {
  165. "operator": 13
  166. }
  167. },
  168. {
  169. "name": "Flatten",
  170. "schema": {
  171. "operator": 14,
  172. "category": "Shape"
  173. }
  174. },
  175. {
  176. "name": "InnerProduct",
  177. "schema": {
  178. "operator": 15,
  179. "category": "Layer",
  180. "attributes": [
  181. { "name": "num_output", "type": "int32", "default": 0 },
  182. { "name": "bias_term", "default": 0, "visible": false },
  183. { "name": "weight_data_size", "default": 0, "visible": false },
  184. { "name": "int8_scale_term", "default": 0, "id": "8" },
  185. { "name": "activation_type", "default": 0, "id": "9" },
  186. { "name": "activation_params", "default": 0, "id": "10" }
  187. ]
  188. }
  189. },
  190. {
  191. "name": "Input",
  192. "schema": {
  193. "operator": 16
  194. }
  195. },
  196. {
  197. "name": "Exp",
  198. "schema": {
  199. "operator": 17
  200. }
  201. },
  202. {
  203. "name": "LRN",
  204. "schema": {
  205. "operator": 18,
  206. "category": "Normalization",
  207. "attributes": [
  208. { "name": "region_type", "default": 0 },
  209. { "name": "local_size", "default": 5 },
  210. { "name": "alpha", "default": 1 },
  211. { "name": "beta", "default": 0.75 },
  212. { "name": "bias", "default": 1 }
  213. ]
  214. }
  215. },
  216. {
  217. "name": "Exp",
  218. "schema": {
  219. "operator": 19
  220. }
  221. },
  222. {
  223. "name": "MVN",
  224. "schema": {
  225. "operator": 20
  226. }
  227. },
  228. {
  229. "name": "Pooling",
  230. "schema": {
  231. "operator": 21,
  232. "category": "Pool",
  233. "attributes": [
  234. { "name": "pooling_type", "default": 0 },
  235. { "name": "kernel_w", "default": 0 },
  236. { "name": "stride_w", "default": 1 },
  237. { "name": "pad_left", "default": 0 },
  238. { "name": "global_pooling", "default": 0 },
  239. { "name": "pad_mode", "default": 0 },
  240. { "name": "kernel_h", "default": 0, "id": 11 },
  241. { "name": "stride_h", "default": 1, "id": 12 },
  242. { "name": "pad_top", "default": 0 , "id": 13 },
  243. { "name": "pad_right", "default": 0, "id": 14 },
  244. { "name": "pad_bottom", "default": 0, "id": 15 }
  245. ]
  246. }
  247. },
  248. {
  249. "name": "Power",
  250. "schema": {
  251. "operator": 22
  252. }
  253. },
  254. {
  255. "name": "PReLU",
  256. "schema": {
  257. "operator": 23,
  258. "category": "Activation",
  259. "attributes": [
  260. { "name": "num_slope", "type": "int32", "default": 0, "visible": false }
  261. ]
  262. }
  263. },
  264. {
  265. "name": "Proposal",
  266. "schema": {
  267. "operator": 24
  268. }
  269. },
  270. {
  271. "name": "Reducation",
  272. "schema": {
  273. "operator": 25
  274. }
  275. },
  276. {
  277. "name": "ReLU",
  278. "schema": {
  279. "operator": 26,
  280. "category": "Activation",
  281. "attributes": [
  282. { "name": "slope", "type": "float32", "default": 0 }
  283. ]
  284. }
  285. },
  286. {
  287. "name": "Reshape",
  288. "schema": {
  289. "operator": 27,
  290. "category": "Shape",
  291. "attributes": [
  292. { "name": "w", "default": -233 },
  293. { "name": "h", "default": -233 },
  294. { "name": "c", "default": -233 },
  295. { "name": "permute", "default": 0 }
  296. ]
  297. }
  298. },
  299. {
  300. "name": "ROIPooling",
  301. "schema": {
  302. "operator": 28
  303. }
  304. },
  305. {
  306. "name": "Scale",
  307. "schema": {
  308. "operator": 29,
  309. "category": "Data",
  310. "attributes": [
  311. { "name": "scale_data_size", "default": 0, "visible": false },
  312. { "name": "bias_term", "default": 0, "visible": false }
  313. ]
  314. }
  315. },
  316. {
  317. "name": "Sigmoid",
  318. "schema": {
  319. "operator": 30,
  320. "category": "Activation"
  321. }
  322. },
  323. {
  324. "name": "Slice",
  325. "schema": {
  326. "operator": 31,
  327. "category": "Tensor",
  328. "attributes": [
  329. { "name": "slices", "default": [] },
  330. { "name": "axis", "default": 0 }
  331. ]
  332. }
  333. },
  334. {
  335. "name": "Softmax",
  336. "schema": {
  337. "operator": 32,
  338. "category": "Activation",
  339. "attributes": [
  340. { "name": "axis", "type": "int32", "default": 0 },
  341. { "name": "fixbug0", "type": "int32", "default": 0 }
  342. ]
  343. }
  344. },
  345. {
  346. "name": "Split",
  347. "schema": {
  348. "operator": 33,
  349. "category": "Tensor",
  350. "inputs": [
  351. { "name": "input" }
  352. ],
  353. "outputs": [
  354. { "name": "output", "option": "variadic" }
  355. ]
  356. }
  357. },
  358. {
  359. "name": "SPP",
  360. "schema": {
  361. "operator": 34,
  362. "category": "Activation"
  363. }
  364. },
  365. {
  366. "name": "TanH",
  367. "schema": {
  368. "operator": 35,
  369. "category": "Activation"
  370. }
  371. },
  372. {
  373. "name": "Threshold",
  374. "schema": {
  375. "operator": 36
  376. }
  377. },
  378. {
  379. "name": "Tile",
  380. "schema": {
  381. "operator": 37
  382. }
  383. },
  384. {
  385. "name": "RNN",
  386. "schema": {
  387. "operator": 38,
  388. "category": "Layer"
  389. }
  390. },
  391. {
  392. "name": "LSTM",
  393. "schema": {
  394. "operator": 39,
  395. "category": "Layer"
  396. }
  397. },
  398. {
  399. "name": "BinaryOp",
  400. "schema": {
  401. "operator": 40,
  402. "attributes": [
  403. { "name": "op_type", "type": "int32", "default": 0 },
  404. { "name": "with_scalar", "type": "int32", "default": 0 },
  405. { "name": "b", "type": "float32", "default": 0 }
  406. ]
  407. }
  408. },
  409. {
  410. "name": "UnaryOp",
  411. "schema": {
  412. "operator": 41
  413. }
  414. },
  415. {
  416. "name": "ConvolutionDepthWise",
  417. "schema": {
  418. "operator": 42,
  419. "category": "Layer",
  420. "attributes": [
  421. { "name": "num_output", "default": 0 },
  422. { "name": "kernel_w", "default": 0 },
  423. { "name": "dilation_w", "default": 1 },
  424. { "name": "stride_w", "default": 1 },
  425. { "name": "pad_w", "default": 0 },
  426. { "name": "bias_term", "default": 0, "visible": false },
  427. { "name": "weight_data_size", "default": 0, "visible": false },
  428. { "name": "group", "default": 0 },
  429. { "name": "int8_scale_term", "default": 0 },
  430. { "name": "activation_type", "default": 0 },
  431. { "name": "activation_params", "default": [] },
  432. { "name": "kernel_h", "default": 0 },
  433. { "name": "dilation_h", "default": 1 },
  434. { "name": "stride_h", "default": 1 },
  435. { "name": "pad_h", "default": 0 }
  436. ]
  437. }
  438. },
  439. {
  440. "name": "Padding",
  441. "schema": {
  442. "operator": 43
  443. }
  444. },
  445. {
  446. "name": "Squeeze",
  447. "schema": {
  448. "operator": 44
  449. }
  450. },
  451. {
  452. "name": "ExpandDims",
  453. "schema": {
  454. "operator": 45
  455. }
  456. },
  457. {
  458. "name": "Normalize",
  459. "schema": {
  460. "operator": 46
  461. }
  462. },
  463. {
  464. "name": "Permute",
  465. "schema": {
  466. "operator": 47,
  467. "category": "Shape",
  468. "attributes": [
  469. { "name": "order_type", "default": 0 }
  470. ]
  471. }
  472. },
  473. {
  474. "name": "PriorBox",
  475. "schema": {
  476. "operator": 48,
  477. "attributes": [
  478. { "name": "min_sizes", "default": [] },
  479. { "name": "max_sizes", "default": [] },
  480. { "name": "aspect_ratios", "default": [] },
  481. { "name": "varainces0", "type": "float32", "default": 0 },
  482. { "name": "varainces1", "type": "float32", "default": 0 },
  483. { "name": "varainces2", "type": "float32", "default": 0 },
  484. { "name": "varainces3", "type": "float32", "default": 0 },
  485. { "name": "flip", "default": 1 },
  486. { "name": "clip", "default": 0 },
  487. { "name": "image_width", "default": 0 },
  488. { "name": "image_height", "default": 0 },
  489. { "name": "step_width", "default": -233 },
  490. { "name": "step_height", "default": -233 },
  491. { "name": "offset", "default": 0 }
  492. ]
  493. }
  494. },
  495. {
  496. "name": "DetectionOutput",
  497. "schema": {
  498. "operator": 49,
  499. "attributes": [
  500. { "name": "num_class", "default": 0 },
  501. { "name": "nms_threshold", "default": 0.05 },
  502. { "name": "nms_top_k", "default": 300 },
  503. { "name": "keep_top_k", "default": 100 },
  504. { "name": "confidence_threshold", "default": 0.5 },
  505. { "name": "varainces0", "default": 0.1 },
  506. { "name": "varainces1", "default": 0.1 },
  507. { "name": "varainces2", "default": 0.2 },
  508. { "name": "varainces3", "default": 0.2 }
  509. ]
  510. }
  511. },
  512. {
  513. "name": "Interp",
  514. "schema": {
  515. "operator": 50
  516. }
  517. },
  518. {
  519. "name": "DeconvolutionDepthWise",
  520. "schema": {
  521. "operator": 51,
  522. "category": "Layer",
  523. "attributes": [
  524. { "name": "num_output", "default": 0 },
  525. { "name": "kernel_w", "default": 0 },
  526. { "name": "dilation_w", "default": 1 },
  527. { "name": "stride_w", "default": 1 },
  528. { "name": "pad_w", "default": 0 },
  529. { "name": "bias_term", "default": 0, "visible": false },
  530. { "name": "weight_data_size", "default": 0, "visible": false },
  531. { "name": "group", "default": 0 },
  532. { "name": "int8_scale_term", "default": 0 },
  533. { "name": "activation_type", "default": 0 },
  534. { "name": "activation_params", "default": [] },
  535. { "name": "kernel_h", "default": 0 },
  536. { "name": "dilation_h", "default": 1 },
  537. { "name": "stride_h", "default": 1 },
  538. { "name": "pad_h", "default": 0 }
  539. ]
  540. }
  541. },
  542. {
  543. "name": "ShuffleChannel",
  544. "schema": {
  545. "operator": 52,
  546. "attributes": [
  547. { "name": "group", "default": 1 }
  548. ]
  549. }
  550. },
  551. {
  552. "name": "InstanceNorm",
  553. "schema": {
  554. "operator": 53
  555. }
  556. },
  557. {
  558. "name": "Clip",
  559. "schema": {
  560. "operator": 54
  561. }
  562. },
  563. {
  564. "name": "Reorg",
  565. "schema": {
  566. "operator": 55
  567. }
  568. },
  569. {
  570. "name": "YoloDetectionOutput",
  571. "schema": {
  572. "operator": 56,
  573. "attributes": [
  574. { "name": "num_class", "type": "int32", "default": 20 },
  575. { "name": "num_box", "type": "int32", "default": 5 },
  576. { "name": "confidence_threshold", "type": "float32", "default": 0.01 },
  577. { "name": "nms_threshold", "type": "float32", "default": 0.45 },
  578. { "name": "biases" }
  579. ],
  580. "inputs": [
  581. { "name": "rects" },
  582. { "name": "scores" }
  583. ]
  584. }
  585. },
  586. {
  587. "name": "Quantize",
  588. "schema": {
  589. "operator": 57
  590. }
  591. },
  592. {
  593. "name": "Dequantize",
  594. "schema": {
  595. "operator": 58
  596. }
  597. },
  598. {
  599. "name": "Yolov3DetectionOutput",
  600. "schema": {
  601. "operator": 59,
  602. "attributes": [
  603. { "name": "num_class", "type": "int32", "default": 20 },
  604. { "name": "num_box", "type": "int32", "default": 5 },
  605. { "name": "confidence_threshold", "type": "float32", "default": 0.01 },
  606. { "name": "nms_threshold", "type": "float32", "default": 0.45 },
  607. { "name": "biases", "type": "float32[]" },
  608. { "name": "mask", "type": "float32[]" },
  609. { "name": "anchors_scale", "type": "float32[]" }
  610. ],
  611. "inputs": [
  612. { "name": "rects" },
  613. { "name": "scores" }
  614. ]
  615. }
  616. },
  617. {
  618. "name": "PSROIPooling",
  619. "schema": {
  620. "operator": 60
  621. }
  622. },
  623. {
  624. "name": "ROIAlign",
  625. "schema": {
  626. "operator": 61
  627. }
  628. },
  629. {
  630. "name": "Packing",
  631. "schema": {
  632. "operator": 62
  633. }
  634. },
  635. {
  636. "name": "Requantize",
  637. "schema": {
  638. "operator": 63
  639. }
  640. },
  641. {
  642. "name": "Cast",
  643. "schema": {
  644. "operator": 64
  645. }
  646. },
  647. {
  648. "name": "HardSigmoid",
  649. "schema": {
  650. "operator": 65,
  651. "category": "Activation"
  652. }
  653. },
  654. {
  655. "name": "SELU",
  656. "schema": {
  657. "operator": 66,
  658. "category": "Activation"
  659. }
  660. },
  661. {
  662. "name": "ReLU6",
  663. "schema": {
  664. "category": "Activation"
  665. }
  666. }
  667. ]