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

[Demo] HTML-based Image classification using TensorFlow using image_url query param #68

Closed
cfregly opened this issue Jul 22, 2016 · 5 comments

Comments

@cfregly
Copy link
Contributor

cfregly commented Jul 22, 2016

No description provided.

@cfregly cfregly changed the title Create html-based demo for finding similar images to an uploaded image or image url Create html-based demo for image classification - and similar images - for an uploaded image or image url Jul 22, 2016
@cfregly cfregly assigned cfregly and unassigned cfregly Jul 25, 2016
@cfregly
Copy link
Contributor Author

cfregly commented Jul 25, 2016

@andyzeli can you take a look at this? i can provide more info when we speak next. we can summarize everything here after our talk.

@cfregly cfregly changed the title Create html-based demo for image classification - and similar images - for an uploaded image or image url [Demo] Image classification - using TensorFlow Serving - on an uploaded image or image url Jul 25, 2016
@cfregly
Copy link
Contributor Author

cfregly commented Jul 25, 2016

@andyzeli: let's discuss this and take notes together. i've already started this - i just need you to add the final touches including production-hardening and metrics around this feature.

@andyzeli
Copy link
Contributor

https://github.com/fluxcapacitor/pipeline/tree/master/myapps/serving/tensorflow

^^^ this is what you go started, correct?

On Mon, Jul 25, 2016 at 1:26 AM, Chris Fregly notifications@github.com
wrote:

@andyzeli https://github.com/andyzeli: let's discuss this and take
notes together. i've already started this - i just need you to add the
final touches including production-hardening and metrics around this
feature.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#68 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEklBUYKCwdJlX_nuz8kiwov2JxJN3IPks5qZHNSgaJpZM4JTH6N
.

@cfregly
Copy link
Contributor Author

cfregly commented Jul 25, 2016

yup, here's the exact flask-based python app:

https://github.com/fluxcapacitor/pipeline/blob/master/myapps/serving/tensorflow/tensorflow-inception-serving-service-proxy.py#L11

You'll see a TODO in there to retrieve the

The goal is to be able to make a REST call as follows:

http://<ip>:5070/classify?url=https://static01.nyt.com/images/2007/04/02/us/02mormon.600.jpg

where the service downloads the image locally, puts it in a /tmp path on the server, calls tensorflow to classify the image, then returns the classes with their probabilities as follows:

{
    "results": ["9.624312 : giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca\n", "6.466392 : indri, indris, Indri indri, Indri brevicaudatus\n", "4.079736 : lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens\n", "3.872451 : gibbon, Hylobates lar\n", "2.635539 : titi, titi monkey\n"],
    "retval": 0
}

@cfregly cfregly changed the title [Demo] Image classification - using TensorFlow Serving - on an uploaded image or image url [Demo] Image classification using TensorFlow Serving: Support both an uploaded image and an image url param Jul 25, 2016
@cfregly
Copy link
Contributor Author

cfregly commented Jul 25, 2016

long-term, we're replacing this python service with a JVM-based NetflixOSS connector to allow TensorFlow to participate in the NetflixOSS infrastructure (service discovery, load balancing, etc).

here's the issue tracking this effort: #66

here's the start of this "sidecar" integration of NetflixOSS (JVM-based) + TensorFlow (C-based): https://github.com/fluxcapacitor/pipeline/tree/master/myapps/serving/tensorflow/src/main

ideally, we'll call into TensorFlow directly using JavaCPP or equivalent.

@cfregly cfregly changed the title [Demo] Image classification using TensorFlow Serving: Support both an uploaded image and an image url param [Demo] HTML-based Image classification using TensorFlow using image_url query param Jul 26, 2016
@cfregly cfregly closed this as completed Aug 2, 2016
goswamig pushed a commit to goswamig/pipeline that referenced this issue Apr 9, 2020
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

2 participants