Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.
Merged
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
4 changes: 3 additions & 1 deletion v2functions/http-trigger-onnx-model/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ onnxruntime==1.1.0
numpy==1.18.1
```

Make sure you have these in your `requirements.txt` at the root of your function app.

## Configuration
As specified in `functions.json`, this function is triggered by an HTTP request. It expects a POST request with raw image bytes (JPEG/PNG/whatever the Pillow library can open). Output is an HTTP response with the resulting style transferred image (JPEG encoded).

Expand Down Expand Up @@ -90,4 +92,4 @@ az webapp config appsettings set \
[1]: https://httpie.org/
[2]: https://iterm2.com/documentation-images.html
[3]: https://github.com/onnx/models/tree/master/vision/style_transfer/fast_neural_style
[4]: https://github.com/pytorch/examples/tree/master/fast_neural_style#models
[4]: https://github.com/pytorch/examples/tree/master/fast_neural_style#models