我正在关注senddex carla系列,当我完成该系列并测试了代码时,遇到了此错误。我对解决错误有点儿菜鸟,所以请您解释一下并帮助我解决错误。
Exception in thread Thread-17:
Traceback (most recent call last):
File "C:\Anaconda\envs\carla\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Anaconda\envs\carla\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Valued Customer\Desktop\ANsh Stuff\Reinforcement learning\reinforcement_learning.py", line 262, in train_in_loop
self.model.fit(X,y, verbose=False, batch_size=1)
File "C:\Anaconda\envs\carla\lib\site-packages\keras\engine\training.py", line 1239, in fit
validation_freq=validation_freq)
File "C:\Anaconda\envs\carla\lib\site-packages\keras\engine\training_arrays.py", line 196, in fit_loop
outs = fit_function(ins_batch)
File "C:\Anaconda\envs\carla\lib\site-packages\tensorflow\python\keras\backend.py", line 3292, in __call__
run_metadata=self.run_metadata)
File "C:\Anaconda\envs\carla\lib\site-packages\tensorflow\python\client\session.py", line 1458, in __call__
run_metadata_ptr)
tensorflow.python.framework.errors_impl.NotFoundError: 2 root error(s) found.
(0) Not found: Resource localhost/block1_conv2_bn_12/gamma/class tensorflow::Var does not exist.
[[{{node training_2/Adam/gradients/VariableShape_76}}]]
[[Mean_12/_1057]]
(1) Not found: Resource localhost/block1_conv2_bn_12/gamma/class tensorflow::Var does not exist.
[[{{node training_2/Adam/gradients/VariableShape_76}}]]
0 successful operations.
0 derived errors ignored.
我还尝试从站点复制粘贴代码,但仍然出现相同的错误。