mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Weight Filler and initialization in mxnet

Open gaush123 opened this issue 10 years ago • 3 comments

I am trying to create an architecture along the lines of SqueezeNet architecture. I need to set custom values for weight_filler in one of the convolution layers. How do I set these values in mxnet. weight_filler { type: "gaussian" mean: 0.0 std: 0.01 } Also, is gaussian method of initialization is different from Xavier's, as I can see in FeedForward in mxnet, 'gaussian' method seems to be a subset of 'Xavier' somehow, while in Caffe they appear to be different.

initializer = mx.init.Xavier(rnd_type = "gaussian", factor_type = "in", magnitude = 2))

gaush123 avatar Apr 05 '16 08:04 gaush123

Use mx.init.Mixed()

Xavier specify the range, you still need to pick a method that init each variable with that range.

piiswrong avatar Apr 06 '16 05:04 piiswrong

@piiswrong How to initialize the weight of deconvolution filter to bilinear interpolati as you did In your newest paper "Deep3D: Automatic 2D-to-3D Video Conversion with CNNs"?

xzqjack avatar Apr 09 '16 07:04 xzqjack

I got the answer by looking up the definition of class "initializer.py" in mxnet. Thanks anyway.

xzqjack avatar Apr 11 '16 09:04 xzqjack