--- license: mit library_name: pytorch pipeline_tag: video-classification tags: - online-action-detection - knowledge-distillation - video-understanding - testra - x3d datasets: - THUMOS14 - TVSeries --- # KD-OAD Encoders Pretrained encoder and TeSTra head weights for a forthcoming paper on knowledge distillation for online action detection (OAD). - 💻 **Code:** https://github.com/sag111/kd-oad-encoders - 📄 **Paper:** Rybka, Roman B., Vladislav E. Latalin, Maksim S. Skorokhodov, Ivan A. Moloshnikov, Artem V. Gryaznov, Alexander G. Sboev, and Vyacheslav A. Ilyin. 2026. "Distillation of Compact Encoders for Online Action Detection" Technologies 14, no. 12: 796. https://doi.org/10.3390/technologies14120796 ## Model description This release provides compact RGB-only student encoders for OAD, distilled from the original TeSTra feature extractors (ResNet-50 for appearance and BN-Inception for motion / optical flow). A two-stage procedure is used: (1) student encoders (X3D XS) are trained to match teacher features; (2) TeSTra is trained on the student features with additional logit distillation from the teacher model. The released X3D XS checkpoints take only RGB frames. The online detection head is based on [TeSTra](https://github.com/zhaoyue-zephyrus/TeSTra). ## Checkpoints | File | Dataset | Role | Distillation | Params (encoder) | Metric (best seed) | Metric (10 runs) | |---|---|---|---|---|---|---| | `thumos_x3d.pt` | THUMOS14 | Student encoder | Feature KD: ResNet-50 + BN-Inception → X3D XS | 3.0M | — | — | | `thumos_testra.pth` | THUMOS14 | TeSTra head | Logit KD on X3D features (teacher: TeSTra on ResNet-50 + BN-Inception) | — | 66.3% mAP | 65.9 ± 0.2% mAP | | `tvseries_x3d.pt` | TVSeries | Student encoder | Feature KD: ResNet-50 + BN-Inception → X3D XS | 3.0M | — | — | | `tvseries_testra.pth` | TVSeries | TeSTra head | Logit KD on X3D features (teacher: TeSTra on ResNet-50 + BN-Inception) | — | 86.2% mcAP | 86.0 ± 0.1% mcAP | ## Usage ```bash git clone --recurse-submodules https://github.com/sag111/kd-oad-encoders.git cd kd-oad-encoders python3 -m venv .venv source .venv/bin/activate pip install -e kdoad pip install -e testra hf download elnmax/kd-oad-encoders --local-dir checkpoints --include "*.pth" "*.pt" ``` ## Evaluate on THUMOS14 ```bash # after video preprocessing and feature export (see GitHub README) DATA_ROOT=../datasets/THUMOS14 \ GPU=0 \ ./testra/scripts/test_checkpoint.sh \ thumos \ ../checkpoints/thumos_testra.pth ``` ## Evaluate on TVSeries ```bash DATA_ROOT=../datasets/TVSeries \ GPU=0 \ ./testra/scripts/test_checkpoint.sh \ tvseries \ ../checkpoints/tvseries_testra.pth ``` Full preprocessing and X3D feature-export steps: https://github.com/sag111/kd-oad-encoders ## Data Videos are **not** redistributed. Interval annotations (`labels.csv`) are provided in the GitHub repository under `datasets/THUMOS14/` and `datasets/TVSeries/` (derived from the official dataset annotations). TeSTra **per-frame** targets (`target_perframe/*.npy`) are **not** included in this model repo: - **THUMOS14:** download the official TeSTra targets (see the GitHub README). - **TVSeries:** generate them from `labels.csv` via `./kdoad/scripts/generate_target_perframe.sh`. Original dataset pages: - THUMOS14: https://www.crcv.ucf.edu/THUMOS14/ - TVSeries: https://homes.esat.kuleuven.be/psi-archive/rdegeest/TVSeries.html ## License Weights and original code are released under the MIT License. The TeSTra component is licensed under Apache 2.0. ## Citation ```bibtex @article{technologies14120796, AUTHOR = {Rybka, Roman B. and Latalin, Vladislav E. and Skorokhodov, Maksim S. and Moloshnikov, Ivan A. and Gryaznov, Artem V. and Sboev, Alexander G. and Ilyin, Vyacheslav A.}, TITLE = {Distillation of Compact Encoders for Online Action Detection}, JOURNAL = {Technologies}, VOLUME = {14}, YEAR = {2026}, NUMBER = {12}, ARTICLE-NUMBER = {796}, URL = {https://www.mdpi.com/2227-7080/14/12/796}, ISSN = {2227-7080}, DOI = {10.3390/technologies14120796} } ```