Discussions>What is channels_first in keras?>

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?

3 votesJW330.00
1 Answers

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).

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