Tanvir Ahmed
Tanvir Ahmed

Reputation: 1

Grayscale image as input to keras model

For building a CNN in keras Sequential model, we put

input_shape = 224*224*3

generally for RGB image. Should I put 224*224*1 for gray scale image? What should I do for gray scale image?

Upvotes: 0

Views: 370

Answers (1)

Scott
Scott

Reputation: 5820

First you have to convert RGB images to grayscale. After that, "Yes" your input should look something like:

input_shape = 224*224*1

Upvotes: 1

Related Questions