{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1582","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1582/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1582/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1582/events","html_url":"https://github.com/tensorflow/tensorflow/issues/1582","id":142782546,"number":1582,"title":"Crash on retraining flowers","user":{"login":"ricochet2200","id":1383170,"avatar_url":"https://avatars.githubusercontent.com/u/1383170?v=3","gravatar_id":"","url":"https://api.github.com/users/ricochet2200","html_url":"https://github.com/ricochet2200","followers_url":"https://api.github.com/users/ricochet2200/followers","following_url":"https://api.github.com/users/ricochet2200/following{/other_user}","gists_url":"https://api.github.com/users/ricochet2200/gists{/gist_id}","starred_url":"https://api.github.com/users/ricochet2200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricochet2200/subscriptions","organizations_url":"https://api.github.com/users/ricochet2200/orgs","repos_url":"https://api.github.com/users/ricochet2200/repos","events_url":"https://api.github.com/users/ricochet2200/events{/privacy}","received_events_url":"https://api.github.com/users/ricochet2200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T21:13:13Z","updated_at":"2016-03-23T16:05:57Z","closed_at":null,"body":"I am following the tutorial [How to Retrain Inception's Final Layer for New Categories](https://www.tensorflow.org/versions/master/how_tos/image_retraining/index.html) but am getting this error:   \r\n```\r\n...\r\n3600 bottleneck files created.\r\nTraceback (most recent call last):\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/examples/image_retraining/retrain.py\", line 829, in <module>\r\n    tf.app.run()\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/python/platform/default/_app.py\", line 30, in run\r\n    sys.exit(main(sys.argv))\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/examples/image_retraining/retrain.py\", line 785, in main\r\n    ground_truth_tensor: train_ground_truth})\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/python/client/session.py\", line 332, in run\r\n    result = self._run(None, fetches, feed_dict, options_ptr, run_outputs_ptr)\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/python/client/session.py\", line 530, in _run\r\n    % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))\r\nValueError: Cannot feed value of shape (100, 2048) for Tensor u'pool_3/_reshape:0', which has shape '(1, 2048)'\r\n```\r\n\r\n### Environment info\r\nOperating System: OSX  10.11.1 El Capitan\r\n\r\nI've installed from source from this commit `ad1d98011ebc`.  I ran `./configure` with the default answers and followed [these build instructions](https://www.tensorflow.org/versions/master/get_started/os_setup.html#installation-for-mac-os-x)\r\n\r\n### Steps to reproduce\r\n```\r\ncd ~\r\ncurl -O http://download.tensorflow.org/example_images/flower_photos.tgz\r\ntar xzf flower_photos.tgz\r\nbazel build -c opt --copt=-mavx tensorflow/examples/image_retraining:retrain\r\n# Crashes with error above\r\nbazel-bin/tensorflow/examples/image_retraining/retrain --image_dir ~/flower_photos\r\n```\r\n\r\n### What have you tried?\r\n1.  I've tried deleting `/tmp/bottleneck` and re-running, but I got the same error.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/200413260","html_url":"https://github.com/tensorflow/tensorflow/issues/1582#issuecomment-200413260","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1582","id":200413260,"user":{"login":"ricochet2200","id":1383170,"avatar_url":"https://avatars.githubusercontent.com/u/1383170?v=3","gravatar_id":"","url":"https://api.github.com/users/ricochet2200","html_url":"https://github.com/ricochet2200","followers_url":"https://api.github.com/users/ricochet2200/followers","following_url":"https://api.github.com/users/ricochet2200/following{/other_user}","gists_url":"https://api.github.com/users/ricochet2200/gists{/gist_id}","starred_url":"https://api.github.com/users/ricochet2200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricochet2200/subscriptions","organizations_url":"https://api.github.com/users/ricochet2200/orgs","repos_url":"https://api.github.com/users/ricochet2200/repos","events_url":"https://api.github.com/users/ricochet2200/events{/privacy}","received_events_url":"https://api.github.com/users/ricochet2200/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T16:05:57Z","updated_at":"2016-03-23T16:05:57Z","body":"I ran it and it still crashed, although the output and stack trace is a little different.  Here is the relevant output:\r\n\r\n```\r\n...\r\n3600 bottleneck files created.\r\n2016-03-23 10:03:18.932934: Step 0: Train accuracy = 100.0%\r\n2016-03-23 10:03:18.933883: Step 0: Cross entropy = 0.116586\r\nTraceback (most recent call last):\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/examples/image_retraining/retrain.py\", line 829, in <module>\r\n    tf.app.run()\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/python/platform/default/_app.py\", line 30, in run\r\n    sys.exit(main(sys.argv))\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/examples/image_retraining/retrain.py\", line 804, in main\r\n    ground_truth_tensor: validation_ground_truth})\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/python/client/session.py\", line 332, in run\r\n    result = self._run(None, fetches, feed_dict, options_ptr, run_outputs_ptr)\r\n  File \"/Users/rick/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/tensorflow/python/client/session.py\", line 530, in _run\r\n    % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))\r\nValueError: Cannot feed value of shape (100, 2048) for Tensor u'pool_3/_reshape:0', which has shape '(1, 2048)'\r\n```"}}