exporter
最后更新
modelconverter.platforms.rvc3.exporter将模型导出到 RVC3 平台。该流水线是 RVC2 流水线——mo 生成 OpenVINO IR,compile_tool 将其编译成 blob——在编译之前插入 OpenVINO POT 进行 INT8 训练后量化。它在 RVC3 Docker 镜像中运行。类
RVC3Exporter
VPUX.3400 设备,并且除非禁用校准,否则在编译之前使用 POT 对 IR 进行量化。方法
init
Python
1def __init__(config: SingleStageConfig, output_dir: Path):config(SingleStageConfig): 要导出的阶段的配置。其rvc3部分提供 RVC3 特定的选项。output_dir(Path): 编译模型和构建信息写入的目录。
export
Python
1def export(self) -> Path:Path: 编译后的.blob的路径。
NotImplementedError: 如果输入文件类型既不是 TFLite、ONNX 也不是 OpenVINO IR。