config_efficientnetb0_output.prototxt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. cpu_backend_settings {
  2. onnx_setting {
  3. mode: DISABLED
  4. }
  5. axe_setting {
  6. mode: ENABLED
  7. axe_param {
  8. optimize_slim_model: true
  9. }
  10. }
  11. }
  12. tasks {
  13. name: "task_0"
  14. neuwizard_conf {
  15. global_conf {
  16. target_hardware: TARGET_HARDWARE_AX620
  17. }
  18. task_conf {
  19. input_path: "/root/axera/axera-quan-hjj/model/efficientnet_size-160.onnx"
  20. output_path: "/root/axera/axera-quan-hjj/joint/model.lava_joint"
  21. output_type: OUTPUT_TYPE_JOINT_LAVA_AXE
  22. }
  23. operator_conf {
  24. input_conf_items {
  25. selector {
  26. op_name: "input"
  27. }
  28. attributes {
  29. input_modifications {
  30. dimension_permutation_preprocess {
  31. dimensions: 0
  32. dimensions: 3
  33. dimensions: 1
  34. dimensions: 2
  35. }
  36. }
  37. }
  38. }
  39. input_conf_items {
  40. selector {
  41. }
  42. attributes {
  43. color_space {
  44. type: CST_RGB
  45. }
  46. }
  47. }
  48. input_conf_items {
  49. attributes {
  50. input_modifications {
  51. enforce_integers {
  52. }
  53. }
  54. input_modifications {
  55. affine_preprocess {
  56. slope: 1.0
  57. bias: -0.5
  58. slope_divisor: 256.0
  59. }
  60. }
  61. }
  62. }
  63. output_conf_items {
  64. selector {
  65. op_name: "output"
  66. }
  67. attributes {
  68. output_modifications {
  69. dimension_permutation_postprocess {
  70. dimensions: 0
  71. dimensions: 2
  72. dimensions: 3
  73. dimensions: 1
  74. }
  75. }
  76. }
  77. }
  78. }
  79. dataset_conf_train {
  80. dataset_conf_items {
  81. resize_conf {
  82. }
  83. }
  84. }
  85. dataset_conf_calibration {
  86. type: DATASET_TYPE_TAR
  87. size: 100
  88. batch_size: 16
  89. dataset_conf_items {
  90. path: "/root/axera/axera-quan-hjj/dataset/handpose.tar"
  91. resize_conf {
  92. }
  93. }
  94. }
  95. dataset_conf_error_measurement {
  96. dataset_conf_items {
  97. resize_conf {
  98. }
  99. }
  100. }
  101. }
  102. pulsar_conf {
  103. batch_size: 1
  104. ax620_virtual_npu: AX620_VIRTUAL_NPU_MODE_111
  105. output_dir: "/root/axera/axera-quan-hjj"
  106. }
  107. input_model_items {
  108. model {
  109. path: "/root/axera/axera-quan-hjj/model/efficientnet_size-160.onnx"
  110. type: MODEL_TYPE_ONNX
  111. input_tensors {
  112. color_space: TENSOR_COLOR_SPACE_RGB
  113. }
  114. }
  115. }
  116. output_model_items {
  117. model {
  118. path: "/root/axera/axera-quan-hjj/joint/efficientnetb0-handpose.joint"
  119. type: MODEL_TYPE_JOINT
  120. input_tensors {
  121. color_space: TENSOR_COLOR_SPACE_RGB
  122. }
  123. output_tensors {
  124. tensor_layout: NHWC
  125. }
  126. }
  127. }
  128. target_hardware: TARGET_HARDWARE_AX620
  129. cpu_backend_settings {
  130. onnx_setting {
  131. mode: DISABLED
  132. }
  133. axe_setting {
  134. mode: ENABLED
  135. axe_param {
  136. optimize_slim_model: true
  137. }
  138. }
  139. }
  140. cpu_affine_json {
  141. mode: PATH_MODE_ABS
  142. }
  143. }
  144. input_task_names: "task_0"
  145. output_task_names: "task_0"