Giter Club home page Giter Club logo

Comments (8)

msalvaris avatar msalvaris commented on May 19, 2024 1

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.

msalvaris avatar msalvaris commented on May 19, 2024 1

Funny Google advocates base64 encoding for their service https://cloud.google.com/vision/automl/docs/base64 :D

from az-deep-realtime-score.

fboylu avatar fboylu commented on May 19, 2024

I have seen this as well in a tutorial, definitely needs to be fixed.

from az-deep-realtime-score.

msalvaris avatar msalvaris commented on May 19, 2024

@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.

fboylu avatar fboylu commented on May 19, 2024

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.

msalvaris avatar msalvaris commented on May 19, 2024

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.

fboylu avatar fboylu commented on May 19, 2024

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.

msalvaris avatar msalvaris commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.