GitXplorerGitXplorer
b

mobilenet-tfjs

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
c053171b65c138ad8e82a3628c4681cf22bd0a40

update readme for demo

bbrettkoonce committed 6 years ago
Unverified
a8f70d00a6cdfef1a65a20e3b142a0286d62d795

updated readme

ssgraham785 committed 6 years ago
Unverified
943d4d6c4eb219282bbde29de031e9c2a3b54294

working demo on ibmcloud

ssgraham785 committed 6 years ago
Unverified
904178e3dd77c2032953101f8ef04f767b509e37

checkin semi-working demo

bbrettkoonce committed 6 years ago

README

The README file for this repository.

Links

Heavily based off of a blog post by James Thomas.

Test commands

(echo -n '{"image": "'; base64 ./panda.jpg; echo '"}') | curl -u 268a0fa1-6af8-4a6e-bb58-1e3ef8113ad7:pGOaYxUb1wLhzDa47Mk9dmLpsLxjIIHPZcvt9fDDk3bu0YTBTfyDvSQ2R5MhA3ob -d @- -H "Content-Type: application/json" -X POST https://openwhisk.ng.bluemix.net/api/v1/namespaces/brett%40quarkworks.co_dev/actions/classify?blocking=true
(echo -n '{"image": "'; base64 ./bird.jpg; echo '"}') | curl -u 268a0fa1-6af8-4a6e-bb58-1e3ef8113ad7:pGOaYxUb1wLhzDa47Mk9dmLpsLxjIIHPZcvt9fDDk3bu0YTBTfyDvSQ2R5MhA3ob -d @- -H "Content-Type: application/json" -X POST https://openwhisk.ng.bluemix.net/api/v1/namespaces/brett%40quarkworks.co_dev/actions/classify?blocking=true

Notes

if you deploy your own ibmcloud instance, you can create your own:

ibmcloud fn action update classify --docker jamesthomas/action-nodejs-v8:tfjs index.js

then invoke:

ibmcloud fn action invoke classify -r -p image $(base64 panda.jpg)