By Jufeng Yang, Dongyu She, Ming Sun, Ming-Ming Cheng, Paul L. Rosin and Liang Wang
We propose a framework for sentiment classification and affectiv regions discovery with deep ConvNets.
- It achieves state-of-the-art performance on sentiment classification, and very competitive results on object discovery.
- Our code is written by matlab, based on Caffe.
The paper has been accepted by TMM 2018. For more details, please refer to our paper.
Our framework is released under the MIT License (refer to the LICENSE file for details).
If you find our framework useful in your research, please consider citing:
@article{tmm2018visual,
Author = {Jufeng Yang, Dongyu She, Ming Sun, Ming-Ming Cheng, Paul L. Rosin, Liang Wang},
Title = {Visual Sentiment Prediction based on Automatic Discovery of Affective Regions},
journal = {TMM},
volume = 99,
numer = 99,
pages = {1-1},
Year = {2018}
}
- Requirements: software
- Requirements: hardware
- Basic installation
- Extra Downloads (objectness)
- Extra Downloads (trainval split)
- Usage
- Trained models
- Requirements for
Caffe
andmatcaffe
(see: Caffe installation instructions)
Note: Caffe must be built with support for Matlab!
# This is required only if you will compile the matlab interface.
# MATLAB directory should contain the mex binary in /bin.
MATLAB_DIR := /usr/local
- MATLAB
- NVIDIA GTX TITANX (~12G of memory)
- Clone the repository
# Make sure to clone with --recursive
git clone --recursive https://github.com/sherleens/AR_discovery.git
- Build Caffe and matcaffe
cd $AR_ROOT/caffe
# Now follow the Caffe installation instructions here
# http://caffe.berkeleyvision.org/installation.html
# If you're experienced with Caffe and have all of the requirements installed
# and your Makefile.config in place, then simply do:
make all -j 8 && make matcaffe
Pre-computed objectness boxes can also be downloaded for affective datasets.
coming soon..
Train val split can be downloaded for affective datasets.
coming soon..
Train a deep network. For example, train a VGG16 network on FI trainval.
./train_vgg_FI.sh
Test a deep network. For example, test the VGG 16 network on FI test:
Run demo.m
The models trained on the FI dataset can be downloaded from here.
coming soon..