Skip to content

Commit

Permalink
new naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCensi committed Apr 14, 2019
1 parent 976e2ee commit 496d94b
Show file tree
Hide file tree
Showing 14 changed files with 254 additions and 301 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ logs
out-comptests
sq.db
challenges-dir
evaluator.log
output-local-evaluation
108 changes: 10 additions & 98 deletions LF.challenge.yaml
Original file line number Diff line number Diff line change
@@ -1,88 +1,31 @@
challenge: aido2_LF_r3-v4-z2
challenge: aido2-LF-sim-validation

title: "[AIDO 2] LF - Lane following."
tags: [aido2, aido2-embodied, LF, v4]
title: "LF 🚗 - Lane following (simulation 👾, validation 🏋)"
tags: [visible, ml-validation, aido2, aido2-embodied, LF, v4]
description: |
Lane following challenge.
protocol: aido2_db18_agent-z2

date-open: 2018-12-07
date-close: 2019-12-07

roles: {}

scoring:
scores:

- name: driven_lanedir_consec_median
short: Traveled distance
description: |
This is the median distance traveled, *along a lane*.
(That is, going in circles will not make this metric increase.)
This is discretized to tiles.
order: higher-is-better
discretization: 0.62

- name: survival_time_median
short: Survival time
description: |
This is the median survival time. The simulation
is terminated when the car goes outside of the road
or it crashes with an obstacle.
order: higher-is-better
discretization: 2.0

- name: deviation-center-line_median
short: Lateral deviation
description: |
This is the median lateral deviation from the center line.
order: lower-is-better
discretization: 0.01

- name: in-drivable-lane_median
short: Major infractions
description: |
This is the median of the time spent outside of the drivable zones.
For example this penalizes driving in the wrong lane.
order: lower-is-better
discretization: 0.2

date-open: 2019-04-10
date-close: 2019-05-15

scoring: !include scoring.yaml

steps:
step1-simulation:
title: Simulation step
description: ""

timeout: 10
timeout: 1200 # 20 minutes
evaluation_parameters:
services:
evaluator:
environment:
DISABLE_CONTRACTS: 1
AIDONODE_ENCODING: cbor
experiment_manager_parameters: |
episodes_per_scenario: 1
episode_length_s: 15.0
min_episode_length_s: 0.0
seed: 42
physics_dt: 0.05
max_failures: 2
agent_in: /fifos/agent-in
agent_out: /fifos/agent-out
sim_in: /fifos/simulator-in
sim_out: /fifos/simulator-out
sm_in: /fifos/scenario_maker-in
sm_out: /fifos/scenario_maker-out
build:
context: ./experiment_manager
evaluator: !include comp_evaluator.yaml
simulator: !include comp_simulator.yaml
solution: !include comp_solution.yaml

scenario_maker:
environment:
DISABLE_CONTRACTS: 1
AIDONODE_ENCODING: cbor
AIDONODE_DATA_IN: /fifos/scenario_maker-in
AIDONODE_DATA_OUT: fifo:/fifos/scenario_maker-out
AIDONODE_CONFIG: |
Expand All @@ -93,34 +36,3 @@ steps:
build:
context: ./scenario_maker

simulator:
build:
context: ./simulator
environment:
AIDONODE_DATA_IN: /fifos/simulator-in
AIDONODE_DATA_OUT: fifo:/fifos/simulator-out
AIDONODE_ENCODING: cbor
AIDONODE_CONFIG: |
env_constructor: Simulator
env_parameters:
max_steps: 500001 # we don't want the gym to reset itself
domain_rand: 0
camera_width: 640
camera_height: 480
distortion: true
solution:
image: SUBMISSION_CONTAINER
environment:
AIDONODE_DATA_IN: /fifos/agent-in
AIDONODE_DATA_OUT: fifo:/fifos/agent-out
AIDONODE_ENCODING: cbor




transitions:
- [START, success, step1-simulation]
- [step1-simulation, success, SUCCESS]
- [step1-simulation, failed, FAILED]
- [step1-simulation, error, ERROR]
104 changes: 11 additions & 93 deletions LFV.challenge.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,16 @@
challenge: aido2_LFV_r3-v4-z2
challenge: aido2-LFV-sim-validation

title: "[AIDO 2] LFV - Lane following with Vehicles "
tags: [aido2, aido2-embodied, LF, v4]
title: "LFV 🚗🚗 - Lane following + Vehicles (simulation 👾, validation 🏋)"
tags: [visible, ml-validation, aido2, aido2-embodied, LFV, v4]
description: |
Lane following challenge.
protocol: aido2_db18_agent-z2

date-open: 2018-12-07
date-close: 2019-12-07
date-open: 2019-04-10
date-close: 2019-05-15

roles: {}

scoring:
scores:

- name: driven_lanedir_consec_median
short: Traveled distance
description: |
This is the median distance traveled, *along a lane*.
(That is, going in circles will not make this metric increase.)
This is discretized to tiles.
order: higher-is-better
discretization: 0.62

- name: survival_time_median
short: Survival time
description: |
This is the median survival time. The simulation
is terminated when the car goes outside of the road
or it crashes with an obstacle.
order: higher-is-better
discretization: 2.0

- name: deviation-center-line_median
short: Lateral deviation
description: |
This is the median lateral deviation from the center line.
order: lower-is-better
discretization: 0.01

- name: in-drivable-lane_median
short: Major infractions
description: |
This is the median of the time spent outside of the drivable zones.
For example this penalizes driving in the wrong lane.
order: lower-is-better
discretization: 0.2
scoring: !include scoring.yaml



Expand All @@ -56,28 +19,13 @@ steps:
title: Simulation step
description: ""

timeout: 10
timeout: 1200 # 20 minutes
evaluation_parameters:
services:
evaluator:
environment:
DISABLE_CONTRACTS: 1
AIDONODE_ENCODING: cbor
experiment_manager_parameters: |
episodes_per_scenario: 1
episode_length_s: 15.0
min_episode_length_s: 0
seed: 42
physics_dt: 0.05
max_failures: 2
agent_in: /fifos/agent-in
agent_out: /fifos/agent-out
sim_in: /fifos/simulator-in
sim_out: /fifos/simulator-out
sm_in: /fifos/scenario_maker-in
sm_out: /fifos/scenario_maker-out
build:
context: ./experiment_manager
evaluator: !include comp_evaluator.yaml
simulator: !include comp_simulator.yaml
solution: !include comp_solution.yaml


scenario_maker:
environment:
Expand All @@ -93,34 +41,4 @@ steps:
build:
context: ./scenario_maker

simulator:
build:
context: ./simulator
environment:
AIDONODE_DATA_IN: /fifos/simulator-in
AIDONODE_DATA_OUT: fifo:/fifos/simulator-out
AIDONODE_ENCODING: cbor
AIDONODE_CONFIG: |
env_constructor: Simulator
env_parameters:
max_steps: 500001 # we don't want the gym to reset itself
domain_rand: 0
camera_width: 640
camera_height: 480
distortion: true
solution:
image: SUBMISSION_CONTAINER
environment:
AIDONODE_DATA_IN: /fifos/agent-in
AIDONODE_DATA_OUT: fifo:/fifos/agent-out
AIDONODE_ENCODING: cbor




transitions:
- [START, success, step1-simulation]
- [step1-simulation, success, SUCCESS]
- [step1-simulation, failed, FAILED]
- [step1-simulation, error, ERROR]
Loading

0 comments on commit 496d94b

Please sign in to comment.