not be validated"
使用
给出些 ONNX 模型使用的示例方法。...提取子模型
import onnx
input_path = "path/to/the/original/model.onnx"
output_path = "path/to/save/the/extracted...(model, ["input", "output"], ["input_new", "output_new"])
修改输入输出维度
此为修改模型的。...": [1, 3, 512, 512]},
{"scores": [100, 1], "boxes": [100, 4]}
)
推理模型节点维度
指明模型输入维度后,可自动推理后续节点的维度。...模型运行推理,得到输出的过程。