我在windows上构建caffe
。它成功结束了。现在在我的caffe/build/tools
中,没有转换imagetset.bin
。
我在哪里可以找到或构建(我已经在安装了opencv的Windows上构建了caffe等)转换imageset.bin
?
这是我的代码:
TOOLS=C:/projectcaffe/caffe/tools
DATA=D:/DATASET/aligned/
DEF_FILES=D:/DATASET/adel/Folds/train_val_txt_files_per_fold/test_fold_is_0
OUT=D:/DATASET/lmdb/Test_fold_is_0
# Set RESIZE=true to resize the images to 256x256. Leave as false if images have
# already been resized using another tool.
RESIZE=true
if $RESIZE; then
RESIZE_HEIGHT=256
RESIZE_WIDTH=256
else
RESIZE_HEIGHT=0
RESIZE_WIDTH=0
fi
echo "Creating train leveldb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset.bin--resize_height=$RESIZE_HEIGHT --resize_width=$RESIZE_WIDTH --shuffle $DATA $DEF_FILES/age_train.txt $OUT/age_train_lmdb
echo "Creating train subset leveldb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset.bin--resize_height --resize_height=$RESIZE_HEIGHT --resize_width=$RESIZE_WIDTH --shuffle $DATA $DEF_FILES/age_test.txt $OUT/age_test_lmdb
echo "Creating val leveldb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset.bin --resize_height=$RESIZE_HEIGHT --resize_width=$RESIZE_WIDTH --shuffle $DATA $DEF_FILES/age_val.txt $OUT/age_val_lmdb
echo "Creating train leveldb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset.bin --resize_height=$RESIZE_HEIGHT --resize_width=$RESIZE_WIDTH --shuffle $DATA $DEF_FILES/gender_train.txt $OUT/gender_train_lmdb
echo "Creating train subset leveldb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset.bin--resize_height=$RESIZE_HEIGHT --resize_width=$RESIZE_WIDTH --shuffle $DATA $DEF_FILES/gender_test.txt $OUT/gender_test_lmdb
echo "Creating val leveldb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset.bin --resize_height=$RESIZE_HEIGHT --resize_width=$RESIZE_WIDTH --shuffle $DATA $DEF_FILES/gender_val.txt $OUT/gender_val_lmdb
答案 0 :(得分:0)
如果正确编译了caffe,可以在以下路径中找到它。
/path_to_caffe-rc5/distribute/bin