Git Product home page Git Product logo

Comments (8)

texasmichelle avatar texasmichelle commented on July 21, 2024 1

I don't think we ever solved this, did we? Have there been any updates that would make this straightforward?

from examples.

jlewi avatar jlewi commented on July 21, 2024

/cc @lakshmanok @nfiedel @rhaertel80

from examples.

jlewi avatar jlewi commented on July 21, 2024

Could this be an issue with different versions of TF used for training and serving?

from examples.

ankushagarwal avatar ankushagarwal commented on July 21, 2024

It's unlikely. I ensured that both training and serving were done using tensorflow version 1.5.x

I did have a different error when I trained using TF 1.4 and served using TF 1.5.

from examples.

bkungfoo avatar bkungfoo commented on July 21, 2024

The TF serving images in Kubeflow are all 1.4 currently. I haven't tried creating a saved model with Keras in TF 1.5, but from my experience, creating an Estimator with TF 1.5 caused failures in TF serving 1.4. Not sure if Keras suffers from a similar issue with compatibility, although your case is the reverse. Did you try 1.4 for both training and serving?

I was able to run this one successfully with TF 1.4 training and serving.
https://github.com/google-aai/tf-serving-k8s-tutorial/blob/master/keras_resnet_serving_solution.ipynb

Here's the client to call the server:
https://github.com/google-aai/tf-serving-k8s-tutorial/blob/master/client/resnet_client.py

from examples.

bkungfoo avatar bkungfoo commented on July 21, 2024

The notebook link above is broken after a github update. I have an updated notebook here which includes not only creating servable models, but also some guidance on unit testing the input-output API: https://github.com/google-aai/tf-serving-k8s-tutorial/blob/master/keras_training_to_serving_solution.ipynb

from examples.

bkungfoo avatar bkungfoo commented on July 21, 2024

Created an issue: #48

from examples.

stale avatar stale commented on July 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from examples.

Related Issues (20)

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.