Code for one-stage adaptive set-based HOI detector AS-Net.
Mingfei Chen, Yue Liao, Si Liu, Zhiyuan Chen, Fei Wang, Chen Qian. "Reformulating HOI Detection as Adaptive Set Prediction." Accepted to CVPR 2021. https://arxiv.org/abs/2103.05983
Environment
Install the dependencies.
pip install -r requirements.txt
data/hico
|——— images
| └——————train
| | └——————anno.json
| | └——————XXX1.jpg
| | └——————XXX2.jpg
| └——————test
| └——————anno.json
| └——————XXX1.jpg
| └——————XXX2.jpg
└——— test_hico.json
└——— trainval_hico.json
└——— rel_np.npy
Noted:
cp data/hico/train_anno.json data/hico/images/train/anno.json
cp data/hico/test_hico.json data/hico/images/test/anno.json
To evaluate our model on HICO-DET:
python3 tools/eval.py --cfg configs/hico.yaml MODEL.RESUME_PATH [checkpoint_path]
To train our model on HICO-DET:
CUDA_VISIBLE_DEVICES=0 python3 tools/train.py --cfg configs/hico.yaml MODEL.RESUME_PATH [pretrained path]
@inproceedings{chen_2021_asnet,
author = {Chen, Mingfei and Liao, Yue and Liu, Si and Chen, Zhiyuan and Wang, Fei and Qian, Chen},
title = {Reformulating HOI Detection as Adaptive Set Prediction},
booktitle={CVPR},
year = {2021},
}