pytorch卷积可视化_使用Pytorch可视化卷积神经网络

pytorch卷积可视化

Image for post
Filter and Feature map Image by the author
筛选和特征图作者提供的图像

When dealing with image’s and image data, CNN are the go-to architectures. Convolutional neural networks have proved to provide many state-of-the-art solutions in deep learning and computer vision. Image recognition, object detection, self-driving cars would not be possible without CNN.

w ^ 母鸡交易与图像的图像数据,CNN是去到架构。 卷积神经网络已被证明可以提供深度学习和计算机视觉方面的许多最新解决方案。 没有CNN,图像识别,物体检测,自动驾驶汽车将无法实现。

But when it comes down to how CNN see’s and recognize the image the way they do, things can be trickier.

但是,当涉及到CNN如何看待并以其方式识别图像时,事情可能会变得更加棘手。

  • How a CNN decides whether a image is a cat or dog ?

    CNN如何确定图片是猫还是狗?

  • What makes a CNN more powerful than other models when it comes to image classification problems ?

    在图像分类问题上,什么使CNN比其他模型更强大?

  • How and what do they see in an image ?

    他们如何以及在图像中看到什么?

These were some of the questions i had back back when i first learned about CNN. The questions will grow as you deep dive into it.

这些是我第一次了解CNN时回想的一些问题。 当您深入研究时,问题将会越来越多。

Back then i heard about these terms filters and featuremaps, but dont know what they are and what they do. Later i know what they are but dont know what they look like but now, i know. When dealing with Deep Convolutional Networks filters and featuremaps are important. Filters are what makes the Featuremaps and that’s what the model see’s.

那时我听说过这些术语过滤器和功能图,但不知道它们是什么以及它们做什么。 后来我知道它们是什么,但不知道它们是什么样子,但是现在,我知道了。 在处理深度卷积网络时,过滤器和功能图很重要。 过滤器是构成Featuremap的要素,而这正是模型所看到的。

什么是CNN中的过滤器和FeatureMap? (What are Filters and FeatureMaps in CNN?)

Filters are set of weights which are learned using the backpropagation algorithm. If you do alot of practical deep learning coding, you may know them as kernels. Filter size can be of 3×3 or maybe 5×5 or maybe even 7×7.

˚Filters设置其使用的是BP算法了解到砝码。 如果您进行了大量实用的深度学习编码,则可能将它们称为内核。 过滤器尺寸可以是3×35×5甚至7×7

Filters in a CNN layer learn to detect abstract concepts like boundary of a face, edges of a buildings etc. By stacking more and more CNN layers on top of each other, we can get more abstract and in-depth information from a CNN.

CNN层中的过滤器学习检测抽象概念,例如人脸边界,建筑物边缘等。通过在彼此之上堆叠越来越多的CNN层,我们可以从CNN获得更多抽象和深入的信息。

Image for post
Image for post
7×7 and 3×3 filters
7×7和3×3滤镜

Feature Maps are the results we get after applying the filter through the pixel value of the image.This is what the model see’s in a image and the process is called convolution operation. The reason for visualising the feature maps is to gain deeper understandings about CNN.

˚Feature地图是结果通过image.This的像素值应用筛选后我们拿到的是什么模型中看到的一个图像中的过程被称为卷积运算 。 可视化特征图的原因是为了获得对CNN的更深入了解。

Image for post
Feature map
功能图

选择型号 (Selecting the model)

We will use the

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值