Skip to content

Commit

Permalink
Updated baseline TF and PyTorch models and config files
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopaniego committed Sep 18, 2023
1 parent c1bc585 commit 3bf993b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions behavior_metrics/brains/brains_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ def __init__(self, sensors, actuators, brain_path, controller, model=None, confi
def load_brain(self, path, model=None):

path_split = path.split("/")
robot_type = path_split[-2]
robot_type = path_split[1]
module_name = path_split[-1][:-3] # removing .py extension
import_name = 'brains.' + robot_type + '.' + module_name
if len(path_split) == 4:
framework = path_split[2]
import_name = 'brains.' + robot_type + '.' + framework + '.' + module_name
else:
import_name = 'brains.' + robot_type + '.' + module_name

if robot_type == 'CARLA':
module = importlib.import_module(import_name)
Expand Down
4 changes: 2 additions & 2 deletions behavior_metrics/configs/default_carla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ Behaviors:
PilotTimeCycle: 50 # Turn up to reduce number of control decisions
AsyncMode: True # Set to False to control simulator time
Parameters:
Model: '20230724-125225_pilotnet_CARLA_19_05_dataset_bird_eye_300_epochs_no_flip_3_output_both_directions_all_towns_adam_AFFINE_OPTIMIZATION_PAPER_UPDATED_SHAPE_pretrained_cp.h5'
Model: 'pilotnet.h5'
ImageCropped: True
ImageSize: [ 200,66 ]
ImageNormalized: True
PredictionsNormalized: True
GPU: True
UseOptimized: True
UseOptimized: False
ImageTranform: ''
Type: 'CARLA'
Simulation:
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 3bf993b

Please sign in to comment.