“channel-first” 指一种张量/图像数据的维度排列方式:把通道(channel)维放在最前面。在深度学习里常见于形状如 **(C, H, W)**(单张图像)或 **(N, C, H, W)**(带批量)的数据格式(也常写作 NCHW)。另有相对概念 channel-last(如 NHWC)。
/ˈtʃænəl fɝːst/
This model expects channel-first images.
这个模型要求输入为通道在前的图像格式。
To speed up training on the GPU, we converted the dataset from channel-last to channel-first and updated the preprocessing pipeline accordingly.
为了加快在 GPU 上的训练,我们把数据集从通道在后转换为通道在前,并相应更新了预处理流程。
由 channel(通道)+ first(在前) 构成的复合形容词。最初来自图像/信号处理对“通道”(如 RGB 三个颜色通道)的描述,后来在深度学习框架与论文中固定用来说明张量维度的排列约定。