基于 CNN的年龄和性别检测《age and gender classification using CNN》
路径问题我解决了很久,最后改写该脚本,使用绝对路径 by kang
#!/usr/bin/env sh
# This script converts the mnist data into lmdb/leveldb format,
# depending on the value assigned to $BACKEND.
set -e
#EXAMPLE=examples/mnist
#EXAMPLE=/home/kangyemeng/caffe/examples/mnist
#DATA=data/mnist
DATA=/home/kangyemeng/AgeGenderDeepLearning/models/model_and_data
#BUILD=build/examples/mnist
BUILD=/home/kangyemeng/caffe/.build_release/examples/cpp_classification
echo "begin gender......"
$BUILD/classification.bin $DATA/deploy_gender.prototxt \
$DATA/gender_net.caffemodel $DATA/mean.binaryproto \
$DA