我正在遵循senddex的carla系列中的代码。我收到此错误:
Reloaded modules: carla, carla.libcarla
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
有人可以提供帮助并解释发生了什么问题,因为我什至直接从网站复制并粘贴了代码,但仍然遇到相同的错误。 这里是网站的链接:https://pythonprogramming.net/reinforcement-learning-self-driving-autonomous-cars-carla-python/ 我正在使用Windows 10 rtx 2080 酷睿i9 和spyder4