config_efficientnetb0.prototxt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # 基本配置参数:输入输出
  2. input_type: INPUT_TYPE_ONNX
  3. output_type: OUTPUT_TYPE_JOINT
  4. # 硬件平台选择
  5. target_hardware: TARGET_HARDWARE_AX620
  6. # CPU 后端选择,默认采用 AXE
  7. cpu_backend_settings {
  8. onnx_setting {
  9. mode: DISABLED
  10. }
  11. axe_setting {
  12. mode: ENABLED
  13. axe_param {
  14. optimize_slim_model: true
  15. }
  16. }
  17. }
  18. # 模型输入数据类型设置
  19. src_input_tensors {
  20. color_space: TENSOR_COLOR_SPACE_RGB
  21. }
  22. dst_input_tensors {
  23. color_space: TENSOR_COLOR_SPACE_RGB
  24. }
  25. # neuwizard 工具的配置参数
  26. neuwizard_conf {
  27. operator_conf {
  28. input_conf_items {
  29. attributes {
  30. input_modifications {
  31. affine_preprocess {
  32. slope: 1
  33. slope_divisor: 256
  34. bias: -0.5
  35. }
  36. }
  37. # input_modifications {
  38. # input_normalization {
  39. # mean: [0.485,0.456,0.406] ## 均值
  40. # std: [0.229,0.224,0.255] ## 方差
  41. # }
  42. # }
  43. }
  44. }
  45. }
  46. dataset_conf_calibration {
  47. path: "/root/axera/axera-quan-hjj/dataset/handpose.tar" # 设置 PTQ 校准数据集路径
  48. type: DATASET_TYPE_TAR # 数据集类型:tar 包
  49. size: 100 # 量化校准过程中实际使用的图片张数
  50. batch_size: 16
  51. # calibration_strategy:CALIB_STRATEGY_PER_TENSOR
  52. # observer_method: OBSVR_METHOD_MSE_CLIPPING
  53. }
  54. }
  55. # 输出 layout 设置, 建议使用 NHWC, 速度更快
  56. dst_output_tensors {
  57. tensor_layout:NHWC
  58. }
  59. # pulsar compiler 的配置参数
  60. pulsar_conf {
  61. ax620_virtual_npu: AX620_VIRTUAL_NPU_MODE_111 # 业务场景需要使用 ISP, 则必须使用 vNPU 111 配置, 1.8Tops 算力给用户的算法模型
  62. batch_size: 1
  63. debug : false
  64. }