NVCaffe error in convert_imageset

Hello. dear community.

I’ve installed nvcaffe 0.17.3 from here:

https://github.com/NVIDIA/caffe/releases

I can import caffe very well… the problem is to create “ilsvrc12_train_lmdb” and “ilsvrc12_val_lmdb”, when I ran convert_imagenet.sh I got this error:

diego@diego-desktop:~/caffe-0.17.3/examples/imagenet$ ./create_imagenet.sh
Creating train lmdb...
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 1: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 2: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 3: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 4: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 5: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 6: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 7: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 8: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 9: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 27: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: Syntax error: "(" unexpected
Creating val lmdb...
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 1: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 2: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 3: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 4: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 5: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 6: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 7: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 8: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 9: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: //: Permission denied
/home/diego/caffe-0.17.3/tools/convert_imageset.cpp: 27: /home/diego/caffe-0.17.3/tools/convert_imageset.cpp: Syntax error: "(" unexpected
Done.

What should I do?
Thanks

solved it.