Skip to content

Commit

Permalink
Remove evaluation seed from ngsim, apply globally instead
Browse files Browse the repository at this point in the history
  • Loading branch information
micmarty-deepsense committed Aug 18, 2020
1 parent 03ae844 commit a6916c4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions carla_real_traffic_scenarios/ngsim/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def __init__(
data_dir,
reward_type: RewardType,
client: carla.Client,
evaluation_scenario_seed: Optional[int] = None
):
super().__init__(client)
setup_carla_settings(client, synchronous=True, time_delta_s=DT)
Expand Down Expand Up @@ -91,8 +90,6 @@ def reset(self, vehicle: carla.Vehicle):
self._early_stop_monitor = EarlyStopMonitor(vehicle, timeout_s=timeout_s)

while True:
if self._evaluation_scenario_seed is not None:
random.seed(self._evaluation_scenario_seed)
self._lane_change: LaneChangeInstant = random.choice(self._lane_change_instants)
frame_manuveur_start = max(self._lane_change.frame_start - FRAMES_BEFORE_MANUVEUR, 0)
self._ngsim_recording.reset(timeslot=self._lane_change.timeslot, frame=frame_manuveur_start - 1)
Expand Down

0 comments on commit a6916c4

Please sign in to comment.