Closed ActuallySam closed 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, are you able to implement reinforcement learning in CARLA now?
I was trying to run my reinforcement learning code by hosting the carla simulator server. The code starts to compile at first but the leads to these errors later on and then stops there.
Packages declared: import glob import os import sys import random import time import numpy as np import cv2 import math from collections import deque from keras.applications.xception import Xception from keras.layers import Dense, GlobalAveragePooling2D from tensorflow.keras.optimizers import Adam from keras.models import Model from keras.callbacks import TensorBoard
Here's the tutorial5.py file and the error is in train_in_loop function in the end: `
try: sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % ( sys.version_info.major, sys.version_info.minor, 'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0]) except IndexError: pass import carla
`
Error Log is given below:
Exception in thread Thread-1: Traceback (most recent call last): File "/home/sit/tanay/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/home/sit/tanay/anaconda3/lib/python3.8/threading.py", line 870, in run self._target(*self._args, *self._kwargs) File "tutorial5.py", line 267, in train_in_loop self.model.fit(X,y, verbose=False, batch_size=1) File "/home/sit/tanay/anaconda3/lib/python3.8/site-packages/keras/engine/training_v1.py", line 777, in fit return func.fit( File "/home/sit/tanay/anaconda3/lib/python3.8/site-packages/keras/engine/training_arrays_v1.py", line 640, in fit return fit_loop( File "/home/sit/tanay/anaconda3/lib/python3.8/site-packages/keras/engine/training_arrays_v1.py", line 376, in model_iteration batch_outs = f(ins_batch) File "/home/sit/tanay/anaconda3/lib/python3.8/site-packages/keras/backend.py", line 4031, in call fetched = self._callable_fn(array_vals, File "/home/sit/tanay/anaconda3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1478, in call ret = tf_session.TF_SessionRunCallable(self._session._session, tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found. (0) Failed precondition: Could not find variable block1_conv2_bn/moving_variance. This could mean that the variable has been deleted. In TF1, it can also mean the variable is uninitialized. Debug info: container=localhost, status=Not found: Resource localhost/block1_conv2_bn/moving_variance/N10tensorflow3VarE does not exist. [[{{node block1_conv2_bn/cond/FusedBatchNormV3/ReadVariableOp_1}}]] [[metrics/acc/Identity/_679]] (1) Failed precondition: Could not find variable block1_conv2_bn/moving_variance. This could mean that the variable has been deleted. In TF1, it can also mean the variable is uninitialized. Debug info: container=localhost, status=Not found: Resource localhost/block1_conv2_bn/moving_variance/N10tensorflow3VarE does not exist. [[{{node block1_conv2_bn/cond/FusedBatchNormV3/ReadVariableOp_1}}]] 0 successful operations. 0 derived errors ignored.