config_yolov8nseg.prototxt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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_NV12
  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: 255
  34. bias: 0
  35. }
  36. }
  37. }
  38. }
  39. }
  40. dataset_conf_calibration {
  41. path: "/root/axera/axera-quan-hjj/dataset/coco17pose.tar" # 设置 PTQ 校准数据集路径
  42. type: DATASET_TYPE_TAR # 数据集类型:tar 包
  43. size: 100 # 量化校准过程中实际使用的图片张数
  44. batch_size: 16
  45. calibration_strategy:CALIB_STRATEGY_PER_TENSOR
  46. observer_method: OBSVR_METHOD_MSE_CLIPPING
  47. }
  48. }
  49. # 输出 layout 设置, 建议使用 NHWC, 速度更快
  50. dst_output_tensors {
  51. tensor_layout:NHWC
  52. }
  53. # pulsar compiler 的配置参数
  54. pulsar_conf {
  55. ax620_virtual_npu: AX620_VIRTUAL_NPU_MODE_111 # 业务场景需要使用 ISP, 则必须使用 vNPU 111 配置, 1.8Tops 算力给用户的算法模型
  56. batch_size: 1
  57. debug : false
  58. }