{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/526","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/526/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/526/events","html_url":"https://github.com/tensorflow/models/issues/526","id":182063368,"number":526,"title":"Imagenet dataset build for Inception model crashes on python 3.5","user":{"login":"TuKo","id":5501218,"avatar_url":"https://avatars2.githubusercontent.com/u/5501218?v=4","gravatar_id":"","url":"https://api.github.com/users/TuKo","html_url":"https://github.com/TuKo","followers_url":"https://api.github.com/users/TuKo/followers","following_url":"https://api.github.com/users/TuKo/following{/other_user}","gists_url":"https://api.github.com/users/TuKo/gists{/gist_id}","starred_url":"https://api.github.com/users/TuKo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuKo/subscriptions","organizations_url":"https://api.github.com/users/TuKo/orgs","repos_url":"https://api.github.com/users/TuKo/repos","events_url":"https://api.github.com/users/TuKo/events{/privacy}","received_events_url":"https://api.github.com/users/TuKo/received_events","type":"User","site_admin":false},"labels":[{"id":389681501,"url":"https://api.github.com/repos/tensorflow/models/labels/stat:contributions%20welcome","name":"stat:contributions welcome","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T16:52:37Z","updated_at":"2018-02-02T16:07:55Z","closed_at":null,"author_association":"NONE","body":"## models/inception/inception/data/build_imagenet_data.py\n\nThere are some issues with the code for creating the ImageNet dataset for training the inception model.\n\nI'm using python 3.5 and TensorFlow 0.11.\n\nThe issues:\n1. xrange() calls should be changed by range() (or alternative solution).\n2. random.shuffle(shuffled_index) doesn't accept a range() object, but a list. shuffled_index needs to be converted to a list in [here](https://github.com/tensorflow/models/blob/a9133ae914b44602c5f26afbbd7dd794ff9c6637/inception/inception/data/build_imagenet_data.py#L525). Modify it with:\n   `shuffled_index = list(range(len(filenames)))`\n3. Add binary flag to [open](https://github.com/tensorflow/models/blob/master/inception/inception/data/build_imagenet_data.py#L316)() call for reading the image files.\n4. Creating the protobuf using bytes requires to have strings formatted in utf-8. For example, [this call to _bytes_feature()](https://github.com/tensorflow/models/blob/master/inception/inception/data/build_imagenet_data.py#L212) should be `_bytes_feature(bytes(colorspace, 'utf-8'))`.\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/models/issues/comments/362628399","html_url":"https://github.com/tensorflow/models/issues/526#issuecomment-362628399","issue_url":"https://api.github.com/repos/tensorflow/models/issues/526","id":362628399,"user":{"login":"rotuna","id":23095097,"avatar_url":"https://avatars1.githubusercontent.com/u/23095097?v=4","gravatar_id":"","url":"https://api.github.com/users/rotuna","html_url":"https://github.com/rotuna","followers_url":"https://api.github.com/users/rotuna/followers","following_url":"https://api.github.com/users/rotuna/following{/other_user}","gists_url":"https://api.github.com/users/rotuna/gists{/gist_id}","starred_url":"https://api.github.com/users/rotuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotuna/subscriptions","organizations_url":"https://api.github.com/users/rotuna/orgs","repos_url":"https://api.github.com/users/rotuna/repos","events_url":"https://api.github.com/users/rotuna/events{/privacy}","received_events_url":"https://api.github.com/users/rotuna/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T16:07:55Z","updated_at":"2018-02-02T16:07:55Z","author_association":"NONE","body":"If no one else is working on this, could I try to work on this? Is this a good first issue?"}}
{"actor":{"display_login":"rotuna"}}