This repo is the official implementation for Shap-Mix: Shapley Value Guided Mixing for Long-Tailed Skeleton Based Action Recognition. The paper is accepted to IJCAI 2024.
This is an efficient and effective plug-in augmentation method to improve your skeleton-based action recognition model.
- Python >= 3.6
- PyTorch >= 1.1.0
- PyYAML, tqdm, tensorboardX
We follow the CTR-GCN repo to preprocess the NTU dataset and ST-GCN++ repo for the Kinectic 400 dataset.
After preprocessing, you should change the data path in config.yaml.
- Change the config file depending on what you want. We provide two implementations for DDP mode and single GPU:
CUDA_VISIBLE_DEVICES=4,5 python -m torch.distributed.launch --nproc_per_node 2 --master_addr 127.0.0.3 --master_port 29502 shapley_mix_main_ddp_logits_adjust.py --config config/nturgbd-cross-subject/long_tailed_logit_adjust.yaml
python shapley_mix_main_k400.py --config /mnt/netdisk/zhangjh/Code/CTR-GCN-main/work_dir/k400/ctrgcn_joint/shapley_mix_len100_cos/config.yaml
- The pretrained models can be found here.
This repo is based on CTR-GCN. The Kinectic-400 implementation is based on ST-GCN++.
Thanks to the original authors for their work!
Please cite this work if you find it useful:.
@InProceedings{Shap_Zhang24,
author = {Zhang, Jiahang and Lin, Lilang and Liu, Jiaying},
title = {Shap-Mix: Shapley Value Guided Mixing for Long-Tailed Skeleton Based Action Recognition},
booktitle = {International Joint Conference on Artificial Intelligence (IJCAI)},
year = {2024}
}
For any questions, feel free to contact: [email protected]