{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/15","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/15/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/15/events","html_url":"https://github.com/tensorflow/models/issues/15","id":140531298,"number":15,"title":"Invalid argument: indices[0] = [0,148] is out of bounds: need 0 <= index < [32,6]","user":{"login":"cosmok","id":21658,"avatar_url":"https://avatars.githubusercontent.com/u/21658?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmok","html_url":"https://github.com/cosmok","followers_url":"https://api.github.com/users/cosmok/followers","following_url":"https://api.github.com/users/cosmok/following{/other_user}","gists_url":"https://api.github.com/users/cosmok/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmok/subscriptions","organizations_url":"https://api.github.com/users/cosmok/orgs","repos_url":"https://api.github.com/users/cosmok/repos","events_url":"https://api.github.com/users/cosmok/events{/privacy}","received_events_url":"https://api.github.com/users/cosmok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shlens","id":13385191,"avatar_url":"https://avatars.githubusercontent.com/u/13385191?v=3","gravatar_id":"","url":"https://api.github.com/users/shlens","html_url":"https://github.com/shlens","followers_url":"https://api.github.com/users/shlens/followers","following_url":"https://api.github.com/users/shlens/following{/other_user}","gists_url":"https://api.github.com/users/shlens/gists{/gist_id}","starred_url":"https://api.github.com/users/shlens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlens/subscriptions","organizations_url":"https://api.github.com/users/shlens/orgs","repos_url":"https://api.github.com/users/shlens/repos","events_url":"https://api.github.com/users/shlens/events{/privacy}","received_events_url":"https://api.github.com/users/shlens/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-13T21:26:51Z","updated_at":"2016-03-15T20:27:17Z","closed_at":null,"body":"I am trying to create a new inception model using:\r\n` bazel-bin/inception/flowers_train   --train_dir=\"${TRAIN_DIR}\"   --data_dir=\"${FLOWERS_DATA_DIR}\" --fine_tune=True   --initial_learning_rate=0.001   --input_queue_memory_factor=1`\r\n\r\nand getting this error:\r\n`W tensorflow/core/framework/op_kernel.cc:896] Invalid argument: indices[0] = [0,148] is out of bounds: need 0 <= index < [32,6]`\r\n\r\nI have run `build_image_data` to create `FLOWERS_DATA_DIR`\r\n\r\nCan I create a new inception model this way?"},"comment":{"url":"https://api.github.com/repos/tensorflow/models/issues/comments/197007100","html_url":"https://github.com/tensorflow/models/issues/15#issuecomment-197007100","issue_url":"https://api.github.com/repos/tensorflow/models/issues/15","id":197007100,"user":{"login":"cosmok","id":21658,"avatar_url":"https://avatars.githubusercontent.com/u/21658?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmok","html_url":"https://github.com/cosmok","followers_url":"https://api.github.com/users/cosmok/followers","following_url":"https://api.github.com/users/cosmok/following{/other_user}","gists_url":"https://api.github.com/users/cosmok/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmok/subscriptions","organizations_url":"https://api.github.com/users/cosmok/orgs","repos_url":"https://api.github.com/users/cosmok/repos","events_url":"https://api.github.com/users/cosmok/events{/privacy}","received_events_url":"https://api.github.com/users/cosmok/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T20:27:17Z","updated_at":"2016-03-15T20:27:17Z","body":"How can I create a inception model on a custom dataset (not flowers. I am piggy backing off the flowers train scripts)?\r\n\r\nBelow is the complete error\r\n`$ bazel-bin/inception/flowers_train   --train_dir=\"${TRAIN_DIR}\"   --data_dir=\"${FLOWERS_DATA_DIR}\" --fine_tune=True   --initial_learning_r\r\nate=0.001   --input_queue_memory_factor=1\r\n\r\nW tensorflow/core/framework/op_kernel.cc:896] Invalid argument: indices[0] = [0,44] is out of bounds: need 0 <= index < [32,6]\r\nTraceback (most recent call last):\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/flowers_train.py\", line 41, in <module>\r\n    tf.app.run()\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/platform/default/_app.py\", line 30, in run\r\n    sys.exit(main(sys.argv))\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/flowers_train.py\", line 37, in main\r\n    inception_train.train(dataset)\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py\", line 332, in train\r\n    _, loss_value = sess.run([train_op, loss])\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/client/session.py\", line 313, in run\r\n    return self._run(None, fetches, feed_dict)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/client/session.py\", line 509, in _run\r\n    feed_dict_string)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/client/session.py\", line 562, in _do_run\r\n    target_list)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/client/session.py\", line 584, in _do_call\r\n    e.code)\r\ntensorflow.python.framework.errors.InvalidArgumentError: indices[0] = [0,44] is out of bounds: need 0 <= index < [32,6]\r\n\t [[Node: tower_0/SparseToDense = SparseToDense[T=DT_FLOAT, Tindices=DT_INT32, validate_indices=true, _device=\"/job:localhost/replica:0/task:0/cpu:0\"](tower_0/concat, tower_0/SparseToDense/output_shape, tower_0/SparseToDense/sparse_values, tower_0/SparseToDense/default_value)]]\r\nCaused by op u'tower_0/SparseToDense', defined at:\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/flowers_train.py\", line 41, in <module>\r\n    tf.app.run()\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/platform/default/_app.py\", line 30, in run\r\n    sys.exit(main(sys.argv))\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/flowers_train.py\", line 37, in main\r\n    inception_train.train(dataset)\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py\", line 235, in train\r\n    loss = _tower_loss(images, labels, num_classes, scope)\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py\", line 115, in _tower_loss\r\n    inception.loss(logits, labels, batch_size=split_batch_size)\r\n  File \"/Users/k7/workspace/tensor_models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_model.py\", line 125, in loss\r\n    1.0, 0.0)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/sparse_ops.py\", line 362, in sparse_to_dense\r\n    name=name)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/gen_sparse_ops.py\", line 362, in _sparse_to_dense\r\n    validate_indices=validate_indices, name=name)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/op_def_library.py\", line 655, in apply_op\r\n    op_def=op_def)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py\", line 2102, in create_op\r\n    original_op=self._default_original_op, op_def=op_def)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py\", line 1129, in __init__\r\n    self._traceback = _extract_stack()`"}}