Performance on multimodal classificaition task
May 26, 2024 ยท View on GitHub
All the files used for multimodal classificaition task are contained in the classification floder. And its structures are introduced below.
- Configuration: containing the config file for
Prepair dataset
- Download
- Create soft link to data folder
- ln -s data_path path_to_MMANet/data/dataset_name
- e.g., ln -s /home/ssd/CASIA-SURF /home/bbb/shicaiwei/MMANet/data/CASIA-SURF
- precessed data for casia-surf
Inference
-
Download Pretrained model from following links.
-
create folder and move the pretrained model in it
cd classification
mkdir output
cd output
mkdir models
mv path_to_model/*.pth ./models
- testing with pretrained models
cd classification/test
python surf_mmanet.py 0 0 0 0 0 0
python cefa_mmanet.py 0 0 0 0 0
Training From Scratch
Get multimodal model with complete data
cd classification/src
bash surf_multi.sh #model for CASIA-SURF dataset
bash cefa_multi.sh #model for CeFA dataset
Test multimodal model with complete data
cd classification/test
python baseline_multi_test.py 0 0 0 0 0
- Here the parameters are set as 0 since they have been set in the python file
Get MMANet model for incomplete data
cd classification/src
bash surf_mmanet.sh #model for CASIA-SURF dataset
bash cefa_mmanet.sh #model for CeFA dataset
Test multimodal model with incomplete data
cd classification/test
python surf_mmanet.py 0 0 0 0 0 0
python cefa_mmanet.py 0 0 0 0 0