{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17227","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17227/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17227/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17227/events","html_url":"https://github.com/tensorflow/tensorflow/issues/17227","id":299824690,"node_id":"MDU6SXNzdWUyOTk4MjQ2OTA=","number":17227,"title":"Unable to load retrained MobileNet","user":{"login":"frap129","id":8814164,"node_id":"MDQ6VXNlcjg4MTQxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8814164?v=4","gravatar_id":"","url":"https://api.github.com/users/frap129","html_url":"https://github.com/frap129","followers_url":"https://api.github.com/users/frap129/followers","following_url":"https://api.github.com/users/frap129/following{/other_user}","gists_url":"https://api.github.com/users/frap129/gists{/gist_id}","starred_url":"https://api.github.com/users/frap129/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frap129/subscriptions","organizations_url":"https://api.github.com/users/frap129/orgs","repos_url":"https://api.github.com/users/frap129/repos","events_url":"https://api.github.com/users/frap129/events{/privacy}","received_events_url":"https://api.github.com/users/frap129/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"petewarden","id":161459,"node_id":"MDQ6VXNlcjE2MTQ1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/161459?v=4","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false},"assignees":[{"login":"petewarden","id":161459,"node_id":"MDQ6VXNlcjE2MTQ1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/161459?v=4","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-02-23T19:31:39Z","updated_at":"2018-06-02T07:20:10Z","closed_at":null,"author_association":"NONE","body":"### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Arch Linux on x86_64\r\n- **TensorFlow installed from (source or binary)**: binary/pip\r\n- **TensorFlow version (use command below)**: 1.5.0\r\n- **Python version**: 3.6.4\r\n- **Exact command to reproduce**:\r\n`python3 label_image/label_image.py \\\r\n--graph=output_graph.pb --labels=output_labels.txt \\\r\n--input_layer=Mul \\\r\n--output_layer=final_result \\\r\n--input_mean=128 --input_std=128 \\\r\n--image=images.jpg`\r\n\r\n### Describe the problem\r\nAttempting to use a retrained MobileNet model (retrained with retrain.py) results in \r\n\r\n`Traceback (most recent call last):\r\n  File \"label_image/label_image.py\", line 144, in <module>\r\n    classify()\r\n  File \"label_image/label_image.py\", line 116, in classify\r\n    graph = load_graph(model_file)\r\n  File \"label_image/label_image.py\", line 34, in load_graph\r\n    graph_def.ParseFromString(f.read())\r\ngoogle.protobuf.message.DecodeError: Error parsing message`\r\n\r\nwhen trying to use the label_image example, and \r\n\r\n`Traceback (most recent call last):\r\n  File \"label_image/label_image.py\", line 144, in <module>\r\n    classify()\r\n  File \"label_image/label_image.py\", line 116, in classify\r\n    graph = load_graph(model_file)\r\n  File \"label_image/label_image.py\", line 34, in load_graph\r\n    graph_def.ParseFromString(f.read())\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/message.py\", line 185, in ParseFromString\r\n    self.MergeFromString(serialized)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/python_message.py\", line 1083, in MergeFromString\r\n    if self._InternalParse(serialized, 0, length) != length:\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/python_message.py\", line 1120, in InternalParse\r\n    pos = field_decoder(buffer, new_pos, end, self, field_dict)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 633, in DecodeField\r\n    if value._InternalParse(buffer, pos, new_pos) != new_pos:\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/python_message.py\", line 1120, in InternalParse\r\n    pos = field_decoder(buffer, new_pos, end, self, field_dict)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 612, in DecodeRepeatedField\r\n    if value.add()._InternalParse(buffer, pos, new_pos) != new_pos:\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/python_message.py\", line 1120, in InternalParse\r\n    pos = field_decoder(buffer, new_pos, end, self, field_dict)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 743, in DecodeMap\r\n    if submsg._InternalParse(buffer, pos, new_pos) != new_pos:\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/python_message.py\", line 1109, in InternalParse\r\n    new_pos = local_SkipField(buffer, new_pos, end, tag_bytes)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 850, in SkipField\r\n    return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 799, in _SkipGroup\r\n    new_pos = SkipField(buffer, pos, end, tag_bytes)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 850, in SkipField\r\n    return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)\r\n  File \"/usr/lib/python3.6/site-packages/google/protobuf/internal/decoder.py\", line 814, in _SkipFixed32\r\n    raise _DecodeError('Truncated message.')\r\ngoogle.protobuf.message.DecodeError: Truncated message.` \r\n\r\nwhen using `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python` as mentioned in [https://github.com/tensorflow/tensorflow/issues/582](url)\r\n\r\nI also get the same issues when trying to quantize the model.\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/394065726","html_url":"https://github.com/tensorflow/tensorflow/issues/17227#issuecomment-394065726","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17227","id":394065726,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDA2NTcyNg==","user":{"login":"tensorflowbutler","id":28546240,"node_id":"MDQ6VXNlcjI4NTQ2MjQw","avatar_url":"https://avatars2.githubusercontent.com/u/28546240?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflowbutler","html_url":"https://github.com/tensorflowbutler","followers_url":"https://api.github.com/users/tensorflowbutler/followers","following_url":"https://api.github.com/users/tensorflowbutler/following{/other_user}","gists_url":"https://api.github.com/users/tensorflowbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflowbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflowbutler/subscriptions","organizations_url":"https://api.github.com/users/tensorflowbutler/orgs","repos_url":"https://api.github.com/users/tensorflowbutler/repos","events_url":"https://api.github.com/users/tensorflowbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflowbutler/received_events","type":"User","site_admin":false},"created_at":"2018-06-02T07:20:10Z","updated_at":"2018-06-02T07:20:10Z","author_association":"MEMBER","body":"Nagging Assignee @petewarden: It has been 59 days with no activity and this issue has an assignee. Please update the label and/or status accordingly."}}
{"actor":{"display_login":"tensorflowbutler"}}