Last active
May 4, 2017 22:39
-
-
Save xufuou/c3d57539d7dd8b11da90f7d05d419270 to your computer and use it in GitHub Desktop.
caffe_commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create LMDB dataset | |
/Users/xufuou/Documents/caffe/build/tools/convert_imageset --resize_height=224 --resize_width=224 datasets/training_images/ datasets/training_list.txt datasets/training_set_lmdb | |
#create mean proto file | |
/Users/xufuou/Documents/caffe/build/tools/compute_image_mean datasets/training_set_lmdb/ datasets/mean_training_image.binaryproto | |
#create lmdb datasets | |
/Users/xufuou/Documents/caffe/build/tools/convert_imageset --resize_height=224 --resize_width=224 datasets/training_images/ datasets/training.txt datasets/training_lmdb | |
/Users/xufuou/Documents/caffe/build/tools/convert_imageset --resize_height=224 --resize_width=224 datasets/training_images/ datasets/validation.txt datasets/validation_lmdb | |
#train model | |
time /Users/xufuou/Documents/caffe/build/tools/caffe train -solver models/VGG_S_rgb/solver.prototxt -weights models/VGG_S_rgb/EmotiW_VGG_S.caffemodel 2>&1 | tee -a log/caffe_VGG_S_rgb_loss_history.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment