Open mahmutkocak opened 6 years ago
It looks like Tensorflow could not restore from the checkpoint. This usually happens when you have changed your model and try to restore from a checkpoint that does not match the model anymore.
I am wondering if it is not the same issue as this one: https://github.com/GoogleCloudPlatform/tensorflow-without-a-phd/issues/20
We have a bug in the code because something has changed between Tensorflow 1.8 and 1.9. We need to update it. Until we do, this "pong" example will only work with Tensorflow 1.8. Since you are already in a virtual env, can you downgrade your tensorflow to 1.8?
pip install tensorflow==1.8
I installed tf 1.8 with pip install tensorflow==1.8
now I have an attribute error, in windows 10, anaconda3 virtual environment.
Traceback (most recent call last): File "C:\...anaconda3\envs\tensorflow\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\...anaconda3\envs\tensorflow\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\...Documents\RL\tensorflow-rl-pong\trainer\task.py", line 18, in <module> import tensorflow as tf File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\__init__.py", line 24, in <module> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\__init__.py", line 63, in <module> from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\framework_lib.py", line 104, in <module> from tensorflow.python.framework.importer import import_graph_def File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\importer.py", line 32, in <module> from tensorflow.python.framework import function File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 36, in <module> from tensorflow.python.ops import resource_variable_ops File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 35, in <module> from tensorflow.python.ops import variables File "C:\...anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\variables.py", line 40, in <module> class Variable(checkpointable.CheckpointableBase): AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'
I got the same NotFoundError
in my ubuntu OS, anaconda3 virtual environment. Then I applied pip install tensorflow==1.8
and it works now. However I can not see the game, I mean no visual demonstration. Only code.
Hi I am relatively a new tf user. I use anaconda 3.5 in windows10. I have installed my tensorflow in a virtual environment. I have run some other RL projects with my tensorflow. But this project gives the error below now;
-I have uninstalled tf and reinstalled. The error continues. -I have used the absolute path as --output-dir . The error continues
Note: The code was successfully running before I changed my windows 10 PATH to make anaconda python default. After this change, my tensorflow stopped working in root. So I created a conda virtual environment and reinstalled it, other projects are working fine in new environment. For pong project the error above came up.