-
Notifications
You must be signed in to change notification settings - Fork 6.8k
how to use mx.sym.UpSampling for bilinear upsampling #4134
Comments
I ran into an error when using the bilinear upsampling method. This happened long time ago in #2823 . Recently I found MXNet made some updates about the bilinear upsampling, I thought they might have fixed it. I built the bleeding edge version from source just now, and found the issue was still there. |
Sorry I did not get a notice about your message. Indeed, I used Did you have a way to configure the weights so that they could work in the same way? |
@back2yes I don't make it very clear last time, if you want to use Deconvolution as bilinear upsample, the num_filter and num_group should be same as the number of channel of last layer, then you can do as below
above is my code to test whether it works, maybe it can help you |
Do you find out how to use the bilinear way in mx.symbol.upsampling() now? For now, I use GridGenerator() and BilinearSampler() instead to bilinearly upsample x . |
@animebing @piiswrong I find that if you create an bilineaer upsampling operator, it will return a deconvolution operation in src\operator\upsampling.cc. It's sure that deconvolution can be used as bilinear if we forward a network, only that the upsample_weight is initialized as bilinear kernel. But during backpropogation, the upsampling_weight will be updated. Should I carefully ignore the weight while training a net? |
@lordofgod , I am sorry that I can't help you, because I haven't used MXNET for almost one year. |
I am trying to use mx.sym.UpSampling for bilinear upsample, but i don't know how to set the parameter. I hope someone can give me a specific example to use it, thanks.
The text was updated successfully, but these errors were encountered: