{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15855","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15855/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15855/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15855/events","html_url":"https://github.com/tensorflow/tensorflow/pull/15855","id":286070142,"number":15855,"title":"Export inception model after retrain","user":{"login":"ksindi","id":2092714,"avatar_url":"https://avatars3.githubusercontent.com/u/2092714?v=4","gravatar_id":"","url":"https://api.github.com/users/ksindi","html_url":"https://github.com/ksindi","followers_url":"https://api.github.com/users/ksindi/followers","following_url":"https://api.github.com/users/ksindi/following{/other_user}","gists_url":"https://api.github.com/users/ksindi/gists{/gist_id}","starred_url":"https://api.github.com/users/ksindi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksindi/subscriptions","organizations_url":"https://api.github.com/users/ksindi/orgs","repos_url":"https://api.github.com/users/ksindi/repos","events_url":"https://api.github.com/users/ksindi/events{/privacy}","received_events_url":"https://api.github.com/users/ksindi/received_events","type":"User","site_admin":false},"labels":[{"id":390482148,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review","name":"awaiting review","color":"fef2c0","default":false},{"id":300136587,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"caisq","id":16824702,"avatar_url":"https://avatars2.githubusercontent.com/u/16824702?v=4","gravatar_id":"","url":"https://api.github.com/users/caisq","html_url":"https://github.com/caisq","followers_url":"https://api.github.com/users/caisq/followers","following_url":"https://api.github.com/users/caisq/following{/other_user}","gists_url":"https://api.github.com/users/caisq/gists{/gist_id}","starred_url":"https://api.github.com/users/caisq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caisq/subscriptions","organizations_url":"https://api.github.com/users/caisq/orgs","repos_url":"https://api.github.com/users/caisq/repos","events_url":"https://api.github.com/users/caisq/events{/privacy}","received_events_url":"https://api.github.com/users/caisq/received_events","type":"User","site_admin":false},"assignees":[{"login":"caisq","id":16824702,"avatar_url":"https://avatars2.githubusercontent.com/u/16824702?v=4","gravatar_id":"","url":"https://api.github.com/users/caisq","html_url":"https://github.com/caisq","followers_url":"https://api.github.com/users/caisq/followers","following_url":"https://api.github.com/users/caisq/following{/other_user}","gists_url":"https://api.github.com/users/caisq/gists{/gist_id}","starred_url":"https://api.github.com/users/caisq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caisq/subscriptions","organizations_url":"https://api.github.com/users/caisq/orgs","repos_url":"https://api.github.com/users/caisq/repos","events_url":"https://api.github.com/users/caisq/events{/privacy}","received_events_url":"https://api.github.com/users/caisq/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-01-04T18:14:39Z","updated_at":"2018-02-02T11:04:07Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/15855","html_url":"https://github.com/tensorflow/tensorflow/pull/15855","diff_url":"https://github.com/tensorflow/tensorflow/pull/15855.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/15855.patch"},"body":"The are many issues and Stackoverflow posts asking how to export a retrained Inception model: https://github.com/tensorflow/serving/issues/449, https://github.com/tensorflow/serving/issues/33, https://github.com/tensorflow/serving/issues/7. It would be nice if retrain.py did this so that it's easier for newcomers to use Tensorflow Serving.\r\n\r\nThis PR exports the model after retrain is finished. I've also added a comment on how to serve the retrained model.\r\n  \r\n  "},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/362556944","html_url":"https://github.com/tensorflow/tensorflow/pull/15855#issuecomment-362556944","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15855","id":362556944,"user":{"login":"saugat","id":3350415,"avatar_url":"https://avatars0.githubusercontent.com/u/3350415?v=4","gravatar_id":"","url":"https://api.github.com/users/saugat","html_url":"https://github.com/saugat","followers_url":"https://api.github.com/users/saugat/followers","following_url":"https://api.github.com/users/saugat/following{/other_user}","gists_url":"https://api.github.com/users/saugat/gists{/gist_id}","starred_url":"https://api.github.com/users/saugat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saugat/subscriptions","organizations_url":"https://api.github.com/users/saugat/orgs","repos_url":"https://api.github.com/users/saugat/repos","events_url":"https://api.github.com/users/saugat/events{/privacy}","received_events_url":"https://api.github.com/users/saugat/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T11:04:07Z","updated_at":"2018-02-02T11:04:07Z","author_association":"NONE","body":"Hello @ksindi ,\r\nI tried exporting model for serving using your code. It generates model as well as variable but also throws some kind of error message after this line \"builder.save()\"\r\nThe error and info are as follows:\r\n\r\n> ipdb> INFO:tensorflow:SavedModel written to: b'model/1\\\\saved_model.pb'\r\n> ipdb> An exception has occurred, use %tb to see the full traceback.\r\n> SystemExit\r\n> ERROR: execution aborted\r\n\r\nAlso while serving the generated model files on tensorflow servings does not have any problem. I can run the ModelServer at 0.0.0.0:9000 inside docker container(CPU) on Ubuntu but while doing the prediction job, it always fails with an error msg:\r\n```\r\nuser@ubuntu:~/tensorflow_serving/example$ python inception_client.py --server=172.17.0.2:9000 --image=./testdata/dog.jpg\r\nTraceback (most recent call last):\r\n  File \"inception_client.py\", line 47, in <module>\r\n    tf.app.run()\r\n  File \"/home/user/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py\", line 48, in run\r\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))\r\n  File \"inception_client.py\", line 42, in main\r\n    result = stub.Predict(request, 60.0)  # 60 secs timeout\r\n  File \"/home/user/.local/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py\", line 310, in __call__\r\n    self._request_serializer, self._response_deserializer)\r\n  File \"/home/user/.local/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py\", line 196, in _blocking_unary_unary\r\n    raise _abortion_error(rpc_error_call)\r\ngrpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.INVALID_ARGUMENT, details=\"input tensor alias not found in signature: images. Inputs expected to be in the set {image}.\")\r\n``` \r\n\r\nIs there anything I'm missing or any additional setting is needed?\r\n\r\nSaugat"}}
{"actor":{"display_login":"saugat"}}