{"action":"created","issue":{"url":"https://api.github.com/repos/datitran/raccoon_dataset/issues/16","repository_url":"https://api.github.com/repos/datitran/raccoon_dataset","labels_url":"https://api.github.com/repos/datitran/raccoon_dataset/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/datitran/raccoon_dataset/issues/16/comments","events_url":"https://api.github.com/repos/datitran/raccoon_dataset/issues/16/events","html_url":"https://github.com/datitran/raccoon_dataset/issues/16","id":256390941,"node_id":"MDU6SXNzdWUyNTYzOTA5NDE=","number":16,"title":"Can't generate TF Records","user":{"login":"rafaellehmkuhl","id":6551040,"node_id":"MDQ6VXNlcjY1NTEwNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/6551040?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaellehmkuhl","html_url":"https://github.com/rafaellehmkuhl","followers_url":"https://api.github.com/users/rafaellehmkuhl/followers","following_url":"https://api.github.com/users/rafaellehmkuhl/following{/other_user}","gists_url":"https://api.github.com/users/rafaellehmkuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaellehmkuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaellehmkuhl/subscriptions","organizations_url":"https://api.github.com/users/rafaellehmkuhl/orgs","repos_url":"https://api.github.com/users/rafaellehmkuhl/repos","events_url":"https://api.github.com/users/rafaellehmkuhl/events{/privacy}","received_events_url":"https://api.github.com/users/rafaellehmkuhl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-08T22:56:29Z","updated_at":"2018-10-09T04:12:22Z","closed_at":"2017-10-01T16:26:06Z","author_association":"NONE","body":"When I try to generate the TF record files, i get the following:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"generate_tfrecord.py\", line 99, in <module>\r\n    tf.app.run()\r\n  File \"/home/rafael/.virtualenvs/py3cv3/lib/python3.5/site-packages/tensorflow/python/platform/app.py\", line 48, in run\r\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))\r\n  File \"generate_tfrecord.py\", line 90, in main\r\n    tf_example = create_tf_example(group, path)\r\n  File \"generate_tfrecord.py\", line 45, in create_tf_example\r\n    encoded_jpg = fid.read()\r\n  File \"/home/rafael/.virtualenvs/py3cv3/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py\", line 118, in read\r\n    self._preread_check()\r\n  File \"/home/rafael/.virtualenvs/py3cv3/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py\", line 78, in _preread_check\r\n    compat.as_bytes(self.__name), 1024 * 512, status)\r\n  File \"/usr/lib/python3.5/contextlib.py\", line 66, in __exit__\r\n    next(self.gen)\r\n  File \"/home/rafael/.virtualenvs/py3cv3/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py\", line 466, in raise_exception_on_not_ok_status\r\n    pywrap_tensorflow.TF_GetCode(status))\r\ntensorflow.python.framework.errors_impl.NotFoundError: /home/rafael/PersonalProjects/git/RetrainedObjectDetector/images/raccoon-76.png\r\n\r\n```\r\n\r\nThis is the command I use to call the function:\r\n\r\n`python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record`"},"comment":{"url":"https://api.github.com/repos/datitran/raccoon_dataset/issues/comments/428053498","html_url":"https://github.com/datitran/raccoon_dataset/issues/16#issuecomment-428053498","issue_url":"https://api.github.com/repos/datitran/raccoon_dataset/issues/16","id":428053498,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODA1MzQ5OA==","user":{"login":"Qryptoc","id":31485429,"node_id":"MDQ6VXNlcjMxNDg1NDI5","avatar_url":"https://avatars3.githubusercontent.com/u/31485429?v=4","gravatar_id":"","url":"https://api.github.com/users/Qryptoc","html_url":"https://github.com/Qryptoc","followers_url":"https://api.github.com/users/Qryptoc/followers","following_url":"https://api.github.com/users/Qryptoc/following{/other_user}","gists_url":"https://api.github.com/users/Qryptoc/gists{/gist_id}","starred_url":"https://api.github.com/users/Qryptoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qryptoc/subscriptions","organizations_url":"https://api.github.com/users/Qryptoc/orgs","repos_url":"https://api.github.com/users/Qryptoc/repos","events_url":"https://api.github.com/users/Qryptoc/events{/privacy}","received_events_url":"https://api.github.com/users/Qryptoc/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T04:12:22Z","updated_at":"2018-10-09T04:12:22Z","author_association":"NONE","body":"Like @rafaellehmkuhl said my .xml files had .png extensions in them (while the actual images had .jpg) and this got automatically transferred to the .csv files (probably while batch processing them). A quick fix was to change the extensions in the .csv files."}}
{"actor":{"display_login":"Qryptoc"}}