Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how we get own model inference? not pretrained model.? #1

Open
MuruganR96 opened this issue Jun 24, 2019 · 0 comments
Open

how we get own model inference? not pretrained model.? #1

MuruganR96 opened this issue Jun 24, 2019 · 0 comments

Comments

@MuruganR96
Copy link

MuruganR96 commented Jun 24, 2019

i was read article. very useful for me. thank you so much. i was struggle
one place.

in scripts/serving_sample_request.py

sir. how we get own model inference? not pretrained model.

from keras.applications import inception_v3

r = requests.post('http://localhost:9000/v1/models/ImageClassifier:predict', json=payload)
pred = json.loads(r.content.decode('utf-8'))
print(json.dumps(inception_v3.decode_predictions(np.array(pred['predictions']))[0]))

in pretrained model they given keras inception_v3 function to do prediction.

but own model how to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant