Skip to content

Commit aa8efce

Browse files
vdantualexwong
authored andcommitted
Update the document on to convert ONNX to MXNet model
1 parent d746606 commit aa8efce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

model-archiver/docs/convert_from_onnx.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ curl -o signature.json https://s3.amazonaws.com/model-server/model_archive_1.0/e
8080

8181
### Create a `.mar` file from onnx model
8282

83-
Since the model has the `.onnx` extension, it will be detected and the converted to mxnet models accordingly.
83+
The model file in this example contains`.onnx` extension.
84+
85+
In order to convert the model with `.onnx` extension to an MXNet model, we would need to use the `-c` option of the model-archiver tool.
8486

8587
Now you can use the `model-archiver` command to output `onnx-squeezenet.mar` file.
8688

8789
```bash
8890
cd multi-model-server/examples
8991

90-
model-archiver --model-name onnx-squeezenet --model-path onnx-squeezenet --handler mxnet_vision_service:handle
92+
model-archiver --model-name onnx-squeezenet --model-path onnx-squeezenet --handler mxnet_vision_service:handle -c -f
9193
```
9294

9395
Now start the server:

0 commit comments

Comments
 (0)