Use Cafffe to do Face Attributes MultiTask Classification based on CelebA data sets
- Put convert_multilabel.cpp into caffe_root/tools/
- Remake caffe by running make clean && make all -j8 && make py
- Find list_attr_celeba.txt in CelebA_root/Anno/
- Run sed -i 's/ / /g' list_attr_celeba.txt to replace double sapce to single space.
- Use processlist.py to pick up which attributes you want.
- Then, run sed -i 's/-1/0/g' train.txt
- Next, use create_lmdb.sh to create lmdb datasets.
- Finally, change mcnn_Attri.prototxt suited for your situation.
- show.py is used for training output visulisation.
中文博客地址
https://blog.csdn.net/renhanchi/article/details/81903684
References