Thanks for the response. It worked but training is taking slower than colored image. I thought training would be very fast. I tried to convert all the images to gray but it showed me an error. Why is it so?