What is channels_first in keras?

I'm trying to build a keras model, but saw it has channels_first. What is it? Why I should change it?

keraschannels
3 votesJW229.00
1 Answers
JO218.00
3

It shows the channel's ordering in your input tensor. Putting data_format to channel_first, you say that for every layer your tensor will have this shape: (batch, channels, height, width), but for channel_last you gonna have (batch, height, width, channels).

Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?