GithubHelp home page GithubHelp logo

Comments (12)

yenchenlin avatar yenchenlin commented on April 27, 2024 2

Hello @LecJackS ,
What's your TensorFlow version?

from deeplearningflappybird.

petrbel avatar petrbel commented on April 27, 2024 1

Thanks @yenchenlin1994 , I think it's ok this way. Everybody can search the issue and try it :) I'll ask some other guys to try it.

from deeplearningflappybird.

LecJackS avatar LecJackS commented on April 27, 2024

It was 0.6.0

Upgraded to 0.7.1

Worked perfectly as default.

Sorry about that :shame:

from deeplearningflappybird.

yenchenlin avatar yenchenlin commented on April 27, 2024

Don't be haha 😄
I will close this issue.

Thanks!

from deeplearningflappybird.

petrbel avatar petrbel commented on April 27, 2024

Hi guys,
I have exactly same trouble. My TF version is 0.7.1.
Prepending saved_networks/ helped as @LecJackS suggested.

Would @yenchenlin1994 consider updating the info?

Regards :)

from deeplearningflappybird.

yenchenlin avatar yenchenlin commented on April 27, 2024

Hello @petrbel ,
You mean even if your TF version is 0.7.1 you still need to Prepend saved_networks/ to make it work?

from deeplearningflappybird.

petrbel avatar petrbel commented on April 27, 2024

@yenchenlin1994 Exactly. I run Ubuntu 15.04

from deeplearningflappybird.

yenchenlin avatar yenchenlin commented on April 27, 2024

hmm ... its's strange.
I can't reproduce the issue.

Hello @LecJackS ,
would you please delete this project on your computer and clone it again, and check if it can run? (with default setting)

from deeplearningflappybird.

petrbel avatar petrbel commented on April 27, 2024

I tried it once again. This is the log without any modification:

[petr@hellmut ~ ]$ cd /tmp 
[petr@hellmut /tmp ]$ pip show tensorflow
---
Metadata-Version: 2.0
Name: tensorflow
Version: 0.7.1
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
Installer: pip
License: Apache 2.0
Location: /usr/local/lib/python3.4/dist-packages
Requires: wheel, numpy, protobuf, six
Classifiers:
  Development Status :: 4 - Beta
  Intended Audience :: Developers
  Intended Audience :: Education
  Intended Audience :: Science/Research
  License :: OSI Approved :: Apache Software License
  Programming Language :: Python :: 2.7
  Topic :: Scientific/Engineering :: Mathematics
  Topic :: Software Development :: Libraries :: Python Modules
  Topic :: Software Development :: Libraries
Entry-points:
  [console_scripts]
  tensorboard = tensorflow.tensorboard.backend.tensorboard:main
[petr@hellmut /tmp ]$ git clone [email protected]:yenchenlin1994/DeepLearningFlappyBird.git
Cloning into 'DeepLearningFlappyBird'...
remote: Counting objects: 196, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 196 (delta 0), reused 0 (delta 0), pack-reused 192
Receiving objects: 100% (196/196), 66.26 MiB | 1.53 MiB/s, done.
Resolving deltas: 100% (95/95), done.
Checking connectivity... done.
[petr@hellmut /tmp ]$ cd DeepLearningFlappyBird 
[petr@hellmut DeepLearningFlappyBird (master)]$ python deep_q_network.py 
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 4
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 4
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice/tensor_name, save/restore_slice/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_1 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_1/tensor_name, save/restore_slice_1/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_4 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_4/tensor_name, save/restore_slice_4/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_2 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_2/tensor_name, save/restore_slice_2/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_31 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_31/tensor_name, save/restore_slice_31/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_7 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_7/tensor_name, save/restore_slice_7/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_6 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_6/tensor_name, save/restore_slice_6/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_8 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_8/tensor_name, save/restore_slice_8/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_5 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_5/tensor_name, save/restore_slice_5/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_3 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_3/tensor_name, save/restore_slice_3/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_12 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_12/tensor_name, save/restore_slice_12/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_9 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_9/tensor_name, save/restore_slice_9/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_13 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_13/tensor_name, save/restore_slice_13/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_14 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_14/tensor_name, save/restore_slice_14/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_11 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_11/tensor_name, save/restore_slice_11/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_10 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_10/tensor_name, save/restore_slice_10/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_16 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_16/tensor_name, save/restore_slice_16/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_17 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_17/tensor_name, save/restore_slice_17/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_15 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_15/tensor_name, save/restore_slice_15/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_18 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_18/tensor_name, save/restore_slice_18/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_20 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_20/tensor_name, save/restore_slice_20/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_21 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_21/tensor_name, save/restore_slice_21/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_22 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_22/tensor_name, save/restore_slice_22/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_19 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_19/tensor_name, save/restore_slice_19/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_23 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_23/tensor_name, save/restore_slice_23/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_25 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_25/tensor_name, save/restore_slice_25/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_24 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_24/tensor_name, save/restore_slice_24/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_26 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_26/tensor_name, save/restore_slice_26/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_27 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_27/tensor_name, save/restore_slice_27/shape_and_slice)]]
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/kernels/io.cc:212] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_30 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_30/tensor_name, save/restore_slice_30/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_28 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_28/tensor_name, save/restore_slice_28/shape_and_slice)]]
W tensorflow/core/common_runtime/executor.cc:1027] 0x38f1cb0 Compute status: Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice_29 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_29/tensor_name, save/restore_slice_29/shape_and_slice)]]
Traceback (most recent call last):
  File "deep_q_network.py", line 215, in <module>
    main()
  File "deep_q_network.py", line 212, in main
    playGame()
  File "deep_q_network.py", line 209, in playGame
    trainNetwork(s, readout, h_fc1, sess)
  File "deep_q_network.py", line 109, in trainNetwork
    saver.restore(sess, checkpoint.model_checkpoint_path)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 864, in restore
    sess.run([self._restore_op_name], {self._filename_tensor_name: save_path})
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 345, in run
    results = self._do_run(target_list, unique_fetch_targets, feed_dict_string)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 419, in _do_run
    e.code)
tensorflow.python.framework.errors.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for bird-dqn-2920000
     [[Node: save/restore_slice = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice/tensor_name, save/restore_slice/shape_and_slice)]]
Caused by op u'save/restore_slice', defined at:
  File "deep_q_network.py", line 215, in <module>
    main()
  File "deep_q_network.py", line 212, in main
    playGame()
  File "deep_q_network.py", line 209, in playGame
    trainNetwork(s, readout, h_fc1, sess)
  File "deep_q_network.py", line 105, in trainNetwork
    saver = tf.train.Saver()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 688, in __init__
    restore_sequentially=restore_sequentially)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 408, in build
    filename_tensor, vars_to_save, restore_sequentially, reshape)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 166, in _AddRestoreOps
    values = self.restore_op(filename_tensor, vs, preferred_shard)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 83, in restore_op
    preferred_shard=preferred_shard)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/io_ops.py", line 169, in _restore_slice
    preferred_shard, name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_io_ops.py", line 271, in _restore_slice
    preferred_shard=preferred_shard, name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 633, in apply_op
    op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1710, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 988, in __init__
    self._traceback = _extract_stack()

And this is with preprended dir:

[petr@hellmut DeepLearningFlappyBird (master)]$ nano saved_networks/checkpoint 
[petr@hellmut DeepLearningFlappyBird (master ✗)]$ python deep_q_network.py      
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 4
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 4
Successfully loaded: saved_networks/bird-dqn-2920000
TIMESTEP 1 / STATE observe / EPSILON 0.0001 / ACTION 0 / REWARD 0.1 / Q_MAX 1.162439e+01
TIMESTEP 2 / STATE observe / EPSILON 0.0001 / ACTION 0 / REWARD 0.1 / Q_MAX 1.167451e+01
TIMESTEP 3 / STATE observe / EPSILON 0.0001 / ACTION 0 / REWARD 0.1 / Q_MAX 1.166384e+01
TIMESTEP 4 / STATE observe / EPSILON 0.0001 / ACTION 0 / REWARD 0.1 / Q_MAX 1.158778e+01
TIMESTEP 5 / STATE observe / EPSILON 0.0001 / ACTION 0 / REWARD 0.1 / Q_MAX 1.163115e+01
TIMESTEP 6 / STATE observe / EPSILON 0.0001 / ACTION 0 / REWARD 0.1 / Q_MAX 1.166643e+01
...

from deeplearningflappybird.

yenchenlin avatar yenchenlin commented on April 27, 2024

Thx @petrbel ,
Although I can't reproduce it, I would like to fix it.

May you enter the Python shell and type

import tensorflow
tensorflow.__version__

?

from deeplearningflappybird.

petrbel avatar petrbel commented on April 27, 2024

Sure!

>>> import tensorflow
>>> tensorflow.__version__
'0.7.1'

from deeplearningflappybird.

yenchenlin avatar yenchenlin commented on April 27, 2024

Thanks @petrbel ,
sorry I can't find out what's the issue, therefore I add a section in README about this.
I'll try to figure out if there are more reports like this.

from deeplearningflappybird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.