使用 SNPE (RVC4) 进行手动转换
Command Line
1modelconverter shell rvc4概述
luxonis/modelconverter-rvc4:latest 镜像启动一个新的 Docker 容器,并将其作为交互式终端会话 (-it) 运行,同时使用 --rm 标志确保在退出会话后自动删除容器:Command Line
1docker run --rm -it \
2 -v $(pwd)/shared_with_container:/app/shared_with_container/ \
3 luxonis/modelconverter-rvc4:latest在为 RVC4 选择特定的 SNPE 构建之前,请检查“转换故障排除”中的 SNPE 兼容性表,以确保它与您计划部署的 DepthAI 和 Luxonis OS 版本匹配。
转换为 DLC
- ONNX
- TensorFlow Lite
Command Line
1snpe-onnx-to-dlc --input_network <.onnx 模型路径>Command Line
1snpe-tflite-to-dlc --input_network <.tflite 模型路径>有关完整的转换选项列表,请参阅
snpe-onnx-to-dlc --help 或 snpe-tflite-to-dlc --help,或访问官方 文档。量化(可选)
Command Line
1snpe-dlc-quant --input_dlc <.dlc 模型路径>有关完整的量化选项列表,请参阅
snpe-dlc-quant --help,或访问官方 文档。图准备
Command Line
1snpe-dlc-graph-prepare --input_dlc <(未)量化的 .dlc 模型路径> --htp_socs sm8550有关完整的图准备选项列表,请参阅
snpe-dlc-graph-prepare --help,或访问官方 文档。