Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add usage of convert.py #21

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ http://paddlepaddle.org/docs/develop/documentation/en/build_and_install/build_fr

NOTE: Make sure your virtual environment has the new Protobuf used by this project and the `onnx` dependency, as Paddle installation may try to downgrade it.

## Running

In order to convert a simple Paddle model to an onnx model, the repo contains a trained model (`extras/fit_a_line.inference.model`). The `convert.py` script can be used as follows to convert this sample model:

```
python convert.py --fluid_model extras/fit_a_line.inference.model/ --onnx_model sample_onnx
```

## Testing

TBD
Expand Down