Skip to content

Commit

Permalink
Do not delay challenge agent by sensor send time.
Browse files Browse the repository at this point in the history
  • Loading branch information
ICGog committed Apr 11, 2021
1 parent 5d3287c commit 388d4f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pylot/perception/detection/efficientdet_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ def _pick_model(self, ttd: float):
('efficientdet-d5', 158), ('efficientdet-d4', 105),
('efficientdet-d3', 77), ('efficientdet-d2', 59),
('efficientdet-d1', 55)]
# # 99th percentile runitme on V100
# runtimes = [('efficientdet-d7', 238), ('efficientdet-d6', None),
# ('efficientdet-d5', None), ('efficientdet-d4', 98),
# ('efficientdet-d3', None), ('efficientdet-d2', None),
# ('efficientdet-d1', 56)]
# Runtimes from EfficientDet paper.
# runtimes = [('efficientdet-d6', 190), ('efficientdet-d5', 141),
# ('efficientdet-d4', 74), ('efficientdet-d3', 42),
Expand Down
2 changes: 1 addition & 1 deletion pylot/simulation/challenge/ERDOSAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def run_step(self, input_data, timestamp):
if FLAGS.simulator_mode == 'synchronous':
return command
elif FLAGS.simulator_mode == 'pseudo-asynchronous':
return command, int(e2e_runtime)
return command, int(e2e_runtime - sensor_send_runtime)
else:
raise ValueError('Unexpected simulator_mode {}'.format(
FLAGS.simulator_mode))
Expand Down

0 comments on commit 388d4f7

Please sign in to comment.