Comments (8)
This looks more like the official way to do it https://towardsdatascience.com/how-to-deploy-machine-learning-models-with-tensorflow-part-1-make-your-model-ready-for-serving-776a14ec3198
from az-deep-realtime-score.
Funny Google advocates base64 encoding for their service https://cloud.google.com/vision/automl/docs/base64 :D
from az-deep-realtime-score.
I have seen this as well in a tutorial, definitely needs to be fixed.
from az-deep-realtime-score.
@fboylu Do you have a link? The tutorials in AML repo still use the old way https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-pytorch/pytorch_score.py
from az-deep-realtime-score.
Look here at the bottom where they test, there is no base64, did you not mean that?
https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-pytorch/train-hyperparameter-tune-deploy-with-pytorch.ipynb
from az-deep-realtime-score.
Thanks @fboylu. Looking at it it does this {'data': input_data.tolist()} which is worse than base64. It is the numpy array values like so [54, 14, 45 ....] which will be huge. The method we are talking about will preserve compression.
from az-deep-realtime-score.
I agree, I didn't like .tolist() either but interestingly tensorflow serving does the same... Look here https://www.tensorflow.org/serving/tutorials/Serving_REST_simple, the request part.
from az-deep-realtime-score.
Ha ok, with fashion mnist the overhead is negligable. I wonder what they do for object detection?
from az-deep-realtime-score.
Related Issues (14)
- Replace throughput test with locust HOT 1
- Creating own utility functions for pulling image
- Print out connection string in setup to help instrumentation debugging
- Link needs to be fixed HOT 1
- Replace log in with updated log in method
- Harden core validation
- Replace image URLs with blob URLs
- AKS Cluster Not Deployed At Advertised Location
- Testing of Cores Available In Location for AKS Cluster Is Wrong
- Add script to run notebooks using papermill HOT 2
- Notebook Keras_Tensorflow/aks/06_SpeedTestWebApp Fails on Pandas Import HOT 1
- Pin AML SDK version HOT 3
- Notebook 02 breaks when model_name other than 'resnet_model" provided HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from az-deep-realtime-score.