caffe制作lmdb数据脚本

#!/usr/bin/env sh
MY=examples

echo "Create train lmdb.."
rm -rf $MY/img_train_lmdb_395
../caffe/build/tools/convert_imageset \
--shuffle \
--resize_height=395 \
--resize_width=395 \
/home/xbb/Documents/cloud/train \
train.txt \
$MY/img_train_lmdb_395

echo "Create test lmdb.."
rm -rf $MY/img_test_lmdb_395
../caffe/build/tools/convert_imageset \
--shuffle \
--resize_width=395 \
--resize_height=395 \
/home/xbb/Documents/cloud/test1 \
test1.txt \
$MY/img_test_lmdb_395

echo "All Done.."

caffe制作lmdb数据脚本

猜你喜欢

转载自blog.csdn.net/bingbingxie1/article/details/83063537