Skip to content

Settings

Settings live in a small JSON file, ~/.openmotionlabel/config.json (%USERPROFILE%\.openmotionlabel\config.json on Windows), or the path in $OML_CONFIG. oml config reads and writes it:

oml config list
oml config set pycgm2.timeout 1200
Key What it does
pycgm2.python Python interpreter of the environment where pyCGM2 is installed
pycgm2.command full command that starts Python with pyCGM2 (for example in a container), as a JSON list or one string
pycgm2.timeout seconds a pyCGM2 call may take before it is stopped (default 600)
pycgm2.btk what pyCGM2 uses as BTK: auto (OpenMotionLabel's layer over ezc3d when ezc3d is installed, else BTK), ezc3d, or btk
server.public_hosts host names a tunnel (Cloudflare Tunnel, for instance) forwards to oml serve, as a JSON list or one name
server.max_upload_mb largest C3D file an upload may send, in MB (default 100, Cloudflare's limit per request)

Environment variables

Variable What it does
OML_TOKEN The access token of oml serve (as --token): a fixed token keeps the link the same across restarts, e.g. behind a tunnel.
OML_CONFIG Path of the settings file, instead of ~/.openmotionlabel/config.json.
OML_TEMPLATE_DIR Where oml learn writes static templates and where auto-labeling looks for them, instead of ~/.openmotionlabel/templates.
OML_PYCGM2_PYTHON Python of the environment where pyCGM2 is installed (used when the pycgm2.command and pycgm2.python settings are not set).
OML_PYCGM2_BTK What pyCGM2 uses as BTK: auto, ezc3d or btk (used when the pycgm2.btk setting is not set).
OML_PRIVATE_CORPUS For developers: a folder of private labeled recordings that pytest -m private may read. Never inside the repository.