Config Reference

This reference is generated from cadet/config/schema.py by scripts/gen_config_reference.py. To regenerate it after a schema change, re-run that script and copy the output here.

Each enumerated field lists the values a run may ask for. cadet validate names anything else a config asks for and refuses the run.

Schema reference

Config

A complete CADET experiment configuration.

field

type

default

notes

experiment

Experiment

(required)

source

CarlaSource | ReplaySource | SyntheticSource | LiveSource

(required)

models

Models

(defaults)

nodes

list[Node]

(required)

channels

list[Channel]

[]

links

list[Link]

[]

transport

TransportConfig

(defaults)

metrics

MetricsConfig

(defaults)

app

App

(required)

sweep

Sweep

(defaults)

outputs

Outputs

(defaults)

Experiment

Identity and repetition policy for a run family.

field

type

default

notes

name

str

(required)

app

str

(required)

repetitions

int

1

seed

int (optional)

None

max_run_s

float (optional)

None

Source types

CarlaSource: Input from a running CARLA simulator (the only live backend today).

field

type

default

notes

kind

'carla'

carla

simulator_host

str

127.0.0.1

simulator_port

int

2000

simulator_timeout

int

10

fps

int

10

sync_mode

bool

True

camera

Camera

(defaults)

scenario

Scenario

(defaults)

weather

'clear' | 'light' | 'high' (optional)

None

ReplaySource: Deterministic replay from a folder of images or a video file.

field

type

default

notes

kind

'replay'

replay

path

str

(required)

fps

float

10.0

loop

bool

False

limit

int (optional)

None

SyntheticSource: Generated frames for tests (no files, no hardware).

field

type

default

notes

kind

'synthetic'

synthetic

count

int

10

width

int

64

height

int

48

fps

float

0.0

LiveSource: Live capture: a camera device index or a network stream URL.

field

type

default

notes

kind

'live'

live

device

int (optional)

None

url

str (optional)

None

fps

float

0.0

limit

int (optional)

None

Camera

Ego camera sensor geometry.

field

type

default

notes

width

int

960

height

int

512

fov

float

90.0

Scenario

Scenario geometry and lifetime (fields optional; apps use a subset).

field

type

default

notes

map

str (optional)

None

ego_vehicle

str (optional)

None

target_object

str (optional)

None

ego_speed

str (optional)

None

ego_spawn

Spawn (optional)

None

occluder

Occluder (optional)

None

pedestrian

Pedestrian (optional)

None

timeout_s

float (optional)

None

Spawn

A world pose (metres, degrees) for spawning an actor.

field

type

default

notes

x

float

(required)

y

float

(required)

z

float

0.0

yaw

float

0.0

Models

Pipeline component choices plus the logical-name → artifact registry.

field

type

default

notes

detector

str

yolo

tracker

str

sort

predictor

str

linear

model

str (optional)

None

warmup

bool

True

registry

map[str → ModelEntry]

{}

Node

A compute node that hosts a role (client / server / sim).

field

type

default

notes

name

str

(required)

host

str

(required)

port

int (optional)

None

launcher

'local' | 'docker' | 'ssh_docker' | 'ssh_venv'

local

role

'client' | 'server' | 'sim' | 'leader' | 'load'

(required)

device

str

cpu

gpu_index

int (optional)

None

scheduler

'fifo' | 'round_robin' (optional)

None

extra_processing_ms

float (optional)

None

clients

int (optional)

None

rate_hz

float (optional)

None

arrival

'constant' | 'poisson' (optional)

None

frames

int (optional)

None

transport_tuning

TransportTuning (optional)

None

TransportTuning

TCP stack settings for one node, applied only in that node’s namespace.

field

type

default

notes

tcp_nodelay

bool (optional)

None

tcp_slow_start_after_idle

bool (optional)

None

initcwnd

int (optional)

None

Channel

A direct data path between two nodes (no network emulation).

field

type

default

notes

name

str

(required)

from

str

(required)

to

str

(required)

stream_fps

int (optional)

None

max_queue

int

2

send_meta

bool

False

stop_on_brake

bool

False

device_id

str (optional)

None

NetworkModel

Emulated-network behaviour applied to a link’s traffic.

field

type

default

notes

mode

'none' | 'delay' | 'netem' | 'netwaggle'

none

implemented

medium

'wired' | 'wifi'

wired

distribution

ConstantDist | NormalDist | LognormalDist | TraceDist

(defaults)

loss

float

0.0

bandwidth_mbps

float (optional)

None

wifi

WifiConfig (optional)

None

Delay distributions

ConstantDist: fixed per-packet delay.

field

type

default

notes

kind

'constant'

constant

value_ms

float

0.0

NormalDist: Gaussian delay.

field

type

default

notes

kind

'normal'

normal

mean_ms

float

(required)

std_ms

float

(required)

LognormalDist: log-normal delay (long tail).

field

type

default

notes

kind

'lognormal'

lognormal

p50_ms

float

(required)

median of the distribution

p99_ms

float

(required)

99th-percentile of the distribution

TraceDist: replay delays from a recorded trace file.

field

type

default

notes

kind

'trace'

trace

path

str

(required)

TransportConfig

Wire transport for node-to-node traffic.

field

type

default

notes

protocol

'tcp' | 'websocket'

tcp

mode

'frame' | 'stream'

frame

MetricsConfig

Optional measurement collectors to run during an experiment.

field

type

default

notes

collectors

list of 'gpu' | 'cpu' | 'bandwidth' | 'queue' | 'energy' | 'clock_offset'

[]

App

App selector and its raw parameters.

field

type

default

notes

plugin

str

(required)

params

map[str → Any]

{}

Sweep

Cartesian sweep over dotted config paths → list of values.

field

type

default

notes

axes

map[str → list[Any]]

{}

Outputs

Where run artifacts go. By policy, results and weights are never committed.

field

type

default

notes

root

str

outputs

naming

str

{experiment}/{app}/{run_id}

save

list[str]

[]