tensorflow - TensorflowJS:什么是参数过滤器?
问题描述
我正在学习 TensorflowJS,我正在研究 CNN。我正在关注这个,在本教程中你必须像这样参数化第一层
// In the first layer of out convolutional neural network we have
// to specify the input shape. Then we specify some paramaters for
// the convolution operation that takes place in this layer.
model.add(tf.layers.conv2d({
inputShape: [IMAGE_WIDTH, IMAGE_HEIGHT, IMAGE_CHANNELS],
kernelSize: 5,
filters: 8,
strides: 1,
activation: 'relu',
kernelInitializer: 'varianceScaling'
}));
filters. The number of filter windows of size kernelSize to apply to the input data. Here, we will apply 8 filters to the data.
尽管解释很少,但我仍然不明白过滤器是什么:(有人可以解释一下吗?
谢谢你。
解决方案
这不是正确的定义,但也许它会帮助你直觉。过滤器就像通道。如果您有一个 28 x 28 像素的图像并且该图像具有 RGB 颜色,我们可以说您有 28 x 28 x 3 维大小的图片,其中 3 = [红、绿、蓝]。如果您将过滤器设置为 10,(假设前两个人保持不变),您将获得 28x28x10 尺寸的原始输入。这对于特征检测非常有用。但它对计算来说非常昂贵。
推荐阅读
- javascript - 外部 API - JSON 数据不接受“#”谷歌表格。
- github - Sonarqube Git Hub 插件
- meteor - 如何知道在流星火焰模板中完成或重新完成的“每个”
- 3dsmax - 使用 3dsmax python api 获取顶点权重骨骼数
- gensim - gensim tfidf 唯一标记数与特征数
- mysql - MySQL - 如果存在一个表中的列,则使用它,否则从另一个表中获取它
- spring-boot - Log4j2 导致的 Bean Validation 异常
- parsing - 如何使用 SpEL 通过评估根对象的字段中维护的其他子对象列表来选择和返回集合中的根对象
- python - 将实现特定的 C++ char 与 Python 中的 uint32_t 匹配
- javascript - 递归函数的工作原理