the error stated as following:
it's because the model.ckpt ,should I change the resume to False at first running?
File "D:/RL/Airsim_RL-master/Player.py", line 31, in
model.set_session(tf.Session(config=config),resume=True)
File "D:\RL\Airsim_RL-master\PPO_Agent.py", line 207, in set_session
self.saver.restore(sess, self.name) #model.ckpt
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 1302, in restore
err, "a Variable name or other graph key that is missing")
NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
Key batch_normalization/beta not found in checkpoint
[[node save/RestoreV2 (defined at D:\RL\Airsim_RL-master\PPO_Agent.py:194) ]]
Original stack trace for 'save/RestoreV2':
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 269, in
main()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 265, in main
kernel.start()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelapp.py", line 486, in start
self.io_loop.start()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\tornado\ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(*args, kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 450, in _handle_events
self._handle_recv()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 432, in _run_callback
callback(*args, *kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(args, kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell
handler(stream, idents, msg)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\ipkernel.py", line 208, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\zmqshell.py", line 537, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, *kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2662, in run_cell
raw_cell, store_history, silent, shell_futures)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2785, in _run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2909, in run_ast_nodes
if self.run_code(code, result):
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('D:/RL/Airsim_RL-master/Player.py', wdir='D:/RL/Airsim_RL-master')
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/RL/Airsim_RL-master/Player.py", line 27, in
model = PPO_Network(SEQUENCE_SIZE, W, H, ACTION_SIZE)
File "D:\RL\Airsim_RL-master\PPO_Agent.py", line 194, in init
self.saver = tf.train.Saver()
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 825, in init
self.build()
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 837, in build
self._build(self._filename, build_save=True, build_restore=True)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 875, in _build
build_restore=build_restore)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 508, in _build_internal
restore_sequentially, reshape)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 328, in _AddRestoreOps
restore_sequentially)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 575, in bulk_restore
return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1780, in restore_v2
name=name)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func(args, **kwargs)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\ops.py", line 3616, in create_op
op_def=op_def)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\ops.py", line 2005, in init
self._traceback = tf_stack.extract_stack()
the error stated as following: it's because the model.ckpt ,should I change the resume to False at first running?
File "D:/RL/Airsim_RL-master/Player.py", line 31, in
model.set_session(tf.Session(config=config),resume=True)
File "D:\RL\Airsim_RL-master\PPO_Agent.py", line 207, in set_session self.saver.restore(sess, self.name) #model.ckpt
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 1302, in restore err, "a Variable name or other graph key that is missing")
NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
Key batch_normalization/beta not found in checkpoint [[node save/RestoreV2 (defined at D:\RL\Airsim_RL-master\PPO_Agent.py:194) ]]
Original stack trace for 'save/RestoreV2': File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 269, in
main()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 265, in main
kernel.start()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelapp.py", line 486, in start
self.io_loop.start()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\tornado\ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(*args, kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 450, in _handle_events
self._handle_recv()
File "C:\Users\lthpc\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 432, in _run_callback
callback(*args, *kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(args, kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell
handler(stream, idents, msg)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\ipkernel.py", line 208, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\ipykernel\zmqshell.py", line 537, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, *kwargs)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2662, in run_cell
raw_cell, store_history, silent, shell_futures)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2785, in _run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2909, in run_ast_nodes
if self.run_code(code, result):
File "C:\Users\lthpc\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('D:/RL/Airsim_RL-master/Player.py', wdir='D:/RL/Airsim_RL-master')
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\Users\lthpc\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/RL/Airsim_RL-master/Player.py", line 27, in
model = PPO_Network(SEQUENCE_SIZE, W, H, ACTION_SIZE)
File "D:\RL\Airsim_RL-master\PPO_Agent.py", line 194, in init
self.saver = tf.train.Saver()
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 825, in init
self.build()
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 837, in build
self._build(self._filename, build_save=True, build_restore=True)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 875, in _build
build_restore=build_restore)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 508, in _build_internal
restore_sequentially, reshape)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 328, in _AddRestoreOps
restore_sequentially)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\training\saver.py", line 575, in bulk_restore
return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1780, in restore_v2
name=name)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func( args, **kwargs)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\ops.py", line 3616, in create_op
op_def=op_def)
File "C:\Users\lthpc\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\ops.py", line 2005, in init
self._traceback = tf_stack.extract_stack()