ONNX with Severless is so sool 😎
See also my article[Japanese]
- Python 3.6
- pipenv
- Azure Blob Storage (for ONNX Model, Labels dictonary JSON)
$ cp local.setting.example.json local.setting.json
And, set a connect string for your Blob Storage account.
"Values": {
"BLOB_CONNECTION_STRING": "<your_connect_string>"
}
Edit settings on Azure.
container_client = blob_service_client.get_container_client('<your_container>')
deploy = "func azure functionapp publish <your_project> --python"
$ pipenv install # if you hav trouble, just do it. $ pipenv --three --python=`which python3`
$ pipenv run start
POST a image to endpoint 👍
$ pipenv run deploy