kodokan.config#
Where kodokan keeps its data (downloaded clips + derived artifacts).
Large/churny artifacts (videos, per-frame keypoints, rendered overlays) live
outside the repo by default — under ~/kodokan_data — so they don’t bloat
the (Dropbox-synced) source tree. Override the root with the
KODOKAN_DATA_DIR environment variable.
On the dev Mac ~/kodokan_data is a symlink into an off-machine-backed data
area; code addresses it transparently through the symlink either way. None of
this data is precious — every subfolder is downloaded or pipeline-derived; see
misc/docs/regenerate-data.md for how to rebuild it from scratch.
Module Attributes
Env var overriding the data root (default |
|
keep a detected demonstration only if both judoka are present for at least this fraction of its frames. |
|
Quality gate used when consuming stored demos for recognition/scoring/ catalog building: only trust demos where both judoka are clearly visible. |
Functions
Directory holding downloaded video clips + their |
|
|
Resolve the kodokan data root ( |
Directory for downloaded model weights (kept out of the repo). |
|
|
Directory holding extracted per-clip keypoint sequences (NPZ / Parquet). |
|
Directory holding rendered overlays (MP4) and Rerun recordings (RRD). |
- kodokan.config.EVAL_MIN_TWO_PERSON_FRAC: float = 0.4#
Quality gate used when consuming stored demos for recognition/scoring/ catalog building: only trust demos where both judoka are clearly visible. Stricter than the segmentation gate on purpose. Used by the eval harnesses,
kodokan.flashcards.build_catalog(), and scoring.
- kodokan.config.KODOKAN_DATA_ENV = 'KODOKAN_DATA_DIR'#
Env var overriding the data root (default
~/kodokan_data).
- kodokan.config.SEGMENT_MIN_TWO_PERSON_FRAC: float = 0.3#
keep a detected demonstration only if both judoka are present for at least this fraction of its frames. Deliberately lenient — we would rather store a borderline demo (and filter it later) than silently drop a real one. Used by the batch/segmentation step.
- Type:
Inclusion gate used when segmenting a clip
- kodokan.config.clips_dir()[source]#
Directory holding downloaded video clips + their
*.info.jsonsidecars.- Return type:
- kodokan.config.data_dir()[source]#
Resolve the kodokan data root (
$KODOKAN_DATA_DIRor~/kodokan_data).- Return type:
- kodokan.config.models_dir()[source]#
Directory for downloaded model weights (kept out of the repo).
- Return type: