I am new in python and mxnet, I want to make the example in the link:http://mxnet.io/how_to/finetune.html In the "Prepare data" part, when i run this script:
mkdir -p caltech_256_train_60
for i in 256_ObjectCategories/*; do
c=`basename $i`
mkdir -p caltech_256_train_60/$c
for j in `ls $i/*.jpg | shuf | head -n 60`; do
mv $j caltech_256_train_60/$c/
done
done
I have the error:
"invalid syntax"
I did
os.system ('mkdir -p caltech_256_train_60')
and it worked and the directory was created.
For the rest, it does not work.
I think that this script is made for Linux and I need to ru it on windows 8 and python 2.7, someone can help me translate this code so i can run it.