This repository is the official PyTorch implementation of paper Multi-label X-ray Imagery Classification via Bottom-up Attention and Meta Fusion. (The work has been accepted by ACCV 2020)
- Python3
- torch == 1.3.1
- torchvision == 0.4.2
Baidu Cloud password: wf3d
download the pretrain model and put it into the test_offline folder.
-
get into the main folder:
cd main/ -
train the attention task (Stage I) as follows:
sh run_train_bbox_insight.sh
-
train the multi-label classification task (Stage II) as follws:
sh run_train_attention_multi_label.sh
-
get into the test_offline folder:
cd ../test_offline/ -
get inference results:
python3 test_on_cpu_total_merge.py
-
Calculate the mAP & FP & FN & TP & TN:
python3 calc_pre_recall_merge.py
If you find this work is helpful, please cite this paper.
@inproceedings{Hu2020Xray,
author = {Benyi Hu and Chi Zhang and Le Wang and
Qilin Zhang and Yuehu Liu},
title = {Multi-label X-ray Imagery Classification via Bottom-up Attention and Meta Fusion},
booktitle = {15th Asian Conference on Computer Vision, ({ACCV})},
year = {2020},
}