priya-dwivedi / Deep-Learning

MIT License
3.35k stars 2.5k forks source link

Use Grayscale Images Instead of RGB #13

Open RoboEvangelist opened 6 years ago

RoboEvangelist commented 6 years ago

Priya,

Excellent work. How could I feed grayscale images instead of using RGB? My cameras do not produce RBG images, so I shall not train with RGB images. I thought maybe you have a tip on how to change the neural network to use one channel images instead.

Manugoyal123 commented 6 years ago

You can use concatenation function to convert your one channel images to 3 channel. For example, if IG is your gray-scale image. In Matlab, you can do I=cat(3,IG,IG,IG).