learn_dl icon indicating copy to clipboard operation
learn_dl copied to clipboard

cnn的ConvLayer初始化值是不是指定的不对?

Open bithw1 opened this issue 8 years ago • 2 comments

在cnn.cy (https://github.com/hanbt/learn_dl/blob/master/cnn.py)中,ConvLayer的初始化是:

cl = ConvLayer(5,5,3,3,3,2,1,2,IdentityActivator(),0.001)

它定义的channel_number为3, filter_number为2,但是从文章中看,

我们可以把Feature Map可以看做是通过卷积变换提取到的图像特征,三个Filter就对原始图像提取出三组不同的特征,也就是得到了三个Feature Map,也称做三个通道(channel)。

也就是channel数应该跟filter相同,但是初始化的时候并不相同,不知道是不是初始化的时候,值设错了

bithw1 avatar Dec 01 '17 06:12 bithw1

@hanbt

bithw1 avatar Dec 01 '17 06:12 bithw1

channel数与输入的深度相等,filter的个数与输出的深度相等,没毛病

FlyingCat-fa avatar Aug 03 '18 09:08 FlyingCat-fa