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=66
RESIZE_WIDTH=200
else
RESIZE_HEIGHT=0
RESIZE_WIDTH=0
fi
if [ ! -d "$TRAIN_DATA_ROOT" ]; then
echo "Error: TRAIN_DATA_ROOT is not a path to a directory: $TRAIN_DATA_ROOT"
echo "Set the TRAIN_DATA_ROOT variable in create_imagenet.sh to the path" \
"where the ImageNet training data is stored."
exit 1
fi
if [ ! -d "$VAL_DATA_ROOT" ]; then
echo "Error: VAL_DATA_ROOT is not a path to a directory: $VAL_DATA_ROOT"
echo "Set the VAL_DATA_ROOT variable in create_imagenet.sh to the path" \
"where the ImageNet validation data is stored."
exit 1
fi
!/usr/bin/env sh
Create the imagenet lmdb inputs
N.B. set the path to the imagenet train + val data dirs
set -e
EXAMPLE=C:/Users/asus/Desktop/Implementation-of-Pilotnet-master LABEL=C:/Users/asus/Desktop/Implementation-of-Pilotnet-master TOOLS=caffe-windows/build/tools
TRAIN_DATA_ROOT=C:/Users/asus/Desktop/Implementation-of-Pilotnet-master/train/ VAL_DATA_ROOT=C:/Users/asus/Desktop/Implementation-of-Pilotnet-master/val/
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=66 RESIZE_WIDTH=200
else
RESIZE_HEIGHT=0
RESIZE_WIDTH=0
fi
if [ ! -d "$TRAIN_DATA_ROOT" ]; then echo "Error: TRAIN_DATA_ROOT is not a path to a directory: $TRAIN_DATA_ROOT" echo "Set the TRAIN_DATA_ROOT variable in create_imagenet.sh to the path" \ "where the ImageNet training data is stored." exit 1 fi
if [ ! -d "$VAL_DATA_ROOT" ]; then echo "Error: VAL_DATA_ROOT is not a path to a directory: $VAL_DATA_ROOT" echo "Set the VAL_DATA_ROOT variable in create_imagenet.sh to the path" \ "where the ImageNet validation data is stored." exit 1 fi
echo "Creating train lmdb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset \ --resize_height=$RESIZE_HEIGHT \ --resize_width=$RESIZE_WIDTH \ --shuffle \ $TRAIN_DATA_ROOT \ $LABEL/label_train.txt \ $EXAMPLE/train_lmdb
echo "Creating val lmdb..."
GLOG_logtostderr=1 $TOOLS/convert_imageset \ --resize_height=$RESIZE_HEIGHT \ --resize_width=$RESIZE_WIDTH \ --shuffle \ $VAL_DATA_ROOT \ $LABEL/label_val.txt \ $EXAMPLE/val_lmdb
echo "Done."
Creating train lmdb... create_imagenet.sh: line 40: caffe-windows/build/tools/convert_imageset: No such file or directory
C:\Users\asus\Desktop\Implementation-of-Pilotnet-master>
anyone can help ? the create_imagenet is there but the cmd shows no such file and directory