NUSTM / ITM

18 stars 0 forks source link

Targeted Multimodal Sentiment Classification based on Coarse-to-Fine Grained Image-Target Matching

Codes and datasets for our IJCAI'2022 paper: Targeted Multimodal Sentiment Classification based on Coarse-to-Fine Grained Image-Target Matching

Author

Jianfei Yu & Jieming Wang

wjm@njust.edu.cn

Data

We adopt two kinds of datasets to systematically evaluate the effectiveness of ITM.

Image Processing

We use Faster-RCNN to extract region feature as the input feature of images.For the details, you can refer to the original Github. Our processed image feature can be download from Baidu Netdist with code fv25 or GoogleDrive.

python ./tools/extract_feat.py --gpu 0 \
                    --cfg experiments/cfgs/faster_rcnn_end2end_resnet.yml \
                    --def models/vg/ResNet-101/faster_rcnn_end2end_final/test.prototxt \
                    --net data/faster_rcnn_models/resnet101_faster_rcnn_final.caffemodel \
                    --img_dir ../ITM/data/twitter_images/twitter2017_ori/ \           
                    --out_dir ../ITM/data/twitter_images/twitter2017/ \   
                    --num_bbox 100,100 \             
                    --feat_name pool5_flat   

Code Usage

Note that you should change data path.

Acknowledgements