Train with 60000 image using data from challenge3_data
Fine tune
~/challenge3_data/training_data$ cp /home/tony333ts/workspace/transform_and_cut/benq_0817_result/training_image.txt .
~/challenge3_data/training_data$ vim training_image.txt
#we need to change the path of the image using vim
:%s/\/home\/tony333ts\/workspace\/transform_and_cut\//
#and do the same to testing_image.txt
# Usage:
# convert_imageset [FLAGS] ROOTFOLDER/ LISTFILE DB_NAME
~/challenge3_data/training_data$ ./build/tools/convert_imageset ~/challenge3_data/training_data/ training_image.txt train
~/challenge3_data/training_data$ ./build/tools/convert_imageset ~/challenge3_data/training_data/ testing_image.txt test
#Usage:
# compute_image_mean [FLAGS] INPUT_DB [OUTPUT_FILE]
~/challenge3_data/training_data$ ./../caffe/build/tools/compute_image_mean train/ mean.binaryproto
#change yunchi to your username
layer {
name: "cifar"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
mean_file: "/home/yunchi/challenge3_data/training_data/mean.binaryproto"
mirror: true
crop_size: 28
}
data_param {
source: "/home/yunchi/challenge3_data/training_data/train"
batch_size: 100
backend: LMDB
}
}
layer {
name: "cifar"
type: "Data"
top: "data"
top: "label"
include {
phase: TEST
}
transform_param {
mean_file: "/home/yunchi/challenge3_data/training_data/mean.binaryproto"
crop_size: 28
}
data_param {
source: "/home/yunchi/challenge3_data/training_data/test"
batch_size: 100
backend: LMDB
}
}
~/challenge3_data$ ./caffe/build/tools/caffe train --solver=models/resnet_20/resnet_solver.prototxt
#use --snapshot=your_snapshot_path/your_snapshot.solverstate