Replies: 1 comment
-
我也遇到过这个问题。我的做法是用torch从新搭建一个模型,把后面的层删除,并将对应层的权重导入。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When exporting the model to ONNX, how can I obtain an output model with some final layers removed? To be more specific, I want to get an ONNX model (export from yolov5) with three output nodes, as marked in the image, and remove all layers afterward.
(請問在轉換訓練好的模型時至onnx時,是否能指定輸出的節點,並將其後的結點刪除呢?我發現最後幾層的reshape 等運算會拖慢某些AI accelerator,我都習慣另外自行處理其後的運算)
Beta Was this translation helpful? Give feedback.
All reactions