理解CNN(CNN过程可视化)


Github项目地址
在线demo地址

image-20200710161210770

整个网络的流程:

input(64,64,3)–>conv_1_1(62,62,10)–>relu_1_1(62,62,10)–>conv_1_2(60,60,10)–>relu_1_2(60,60,10)–>max_pool_1(30,30,10)–>conv_2_1(28,28,10)–>relu_2_1(28,28,10)–>conv_2_2(26,26,10)–>relu_2_2(26,26,10)–>max_pool_2(13,13,10)(–>flatten(1690)–>softmax(10))–>output(10)

What is a Convolutional Neural Network?

A CNN is a neural network: an algorithm used to recognize patterns in data. Neural Networks in general are composed of a collection of neurons that are organized in layers, each with their own learnable weights and biases.

CNN是一种神经网络,是一种被用于识别数据模式(recognize patterns in data) 的一种算法

神经网络(Neural Networks)通常是由一系列的神经元(neurons)组成,这些神经元分层组织(organized in layers),每一个 神经元都有它们自己的学习权重(learnable weights)和偏差(biases)。

下面将CNN分为几个基础的构建块(building blocks)来描述:

  • A tensor can be thought of as an n-dimensional matrix.
    tensor 是一个n维的矩阵(n-dimensional matrix)
    在该项目提到的CNN网络中,除了输出层以外,tensors都是三维的。

  • A neuron can be thought of as a function that takes in multiple inputs and yields a single output.
    neuron 可以被理解为一个函数,接受多个inputs,输出单个output

  • A layer is simply a collection of neurons with the same operation, including the same hyperparameters.
    layer 就是一系列神经元的集合,这些神经元具有相同的操作,包含相同的超参数。

  • Kernel weights and biases, while unique to each neuron, are tuned during the training phase, and allow the classifier to adapt to the problem and dataset provided.
    Kernel weights and biases 对每个神经元来说都是特殊的,这两个参数在训练的过程中被调整(tuned),这也使得分类器根据提供的数据集适应问题。

  • A CNN conveys a differentiable score function, which is represented as class scores in the visualization on the output layer.
    CNN传达了一个可微分的分数函数,该函数在输出层的可视化中表示为类分数(class scores)。

什么使CNN与众不同?
CNN利用一种特殊类型的层,恰当地称为卷积层(convolutional layer),使它们处于适当的位置以从图像和类似图像的数据中学习。关于图像数据,CNN可以用于许多不同的计算机视觉任务,例如图像处理分类分割对象检测

What does each layer of the network do?

Input Layer (输入层)

最左边的一层是输入层,其表示将图像输入到CNN网络中。

该项目中因为是利用RGB图像作为input,所以输入层一共有三个通道,分别对应R,G,B

image-20200710161551121

Convolutional Layers(卷积层)

卷积层是CNN的基础,因为它们包含学习的内核(learned kernels)(权重(weights)),这些内核提取出可将不同图像彼此区分开的特征-这就是我们想要的分类

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值