mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
CARLA cleanups + calculating the distance to goal
This commit is contained in:
@@ -71,10 +71,6 @@ def create_dataset(dataset_root, output_path):
|
||||
observations = train_set['rgb'][:] # forward camera
|
||||
measurements = np.expand_dims(train_set['targets'][:, 10], -1) # forward speed
|
||||
actions = train_set['targets'][:, :3] # steer, gas, brake
|
||||
# actions[:, :2] = actions[:, 1:3]
|
||||
# actions[:, 2] = train_set['targets'][:, 0] # gas, brake, steer
|
||||
# actions[:, 1] -= actions[:, 2]
|
||||
# actions = actions[:, :2][:, ::-1]
|
||||
|
||||
high_level_commands = train_set['targets'][:, 24].astype('int') - 2 # follow lane, left, right, straight
|
||||
|
||||
@@ -104,4 +100,4 @@ if __name__ == "__main__":
|
||||
default='carla_train_set_replay_buffer.p')
|
||||
args = argparser.parse_args()
|
||||
|
||||
create_dataset(args.dataset_root, args.output_path)
|
||||
create_dataset(args.dataset_root, args.output_path)
|
||||
|
||||
Reference in New Issue
Block a user