You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@mxnet.apache.org by Stacey via MXNet Forum <mx...@discoursemail.com.INVALID> on 2021/01/26 05:52:35 UTC

[MXNet Forum] [Gluon] Deconvolution error


I am trying to use a deconvolution layer or a Conv2DTranspose, but this error occurs. 
Code:
    self.up_sample = nn.Conv2DTranspose(c, kernel_size=3, strides=2, padding=1, groups=c)
Error:
    src/operator/nn/deconvolution.cc:192: Check failed: dshape_nchw[1] % param_.num_group == 0U (255 vs. 0) : input num_filter must divide group size

I checked c right before the line and it was not 255 but 320. Also c divides c in any case. Here my understanding is that dshape_nchw[1] stands for the value of channel. Am I understanding the error in a wrong way? What should I do to avoid the error?





---
[Visit Topic](https://discuss.mxnet.apache.org/t/deconvolution-error/6832/1) or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.mxnet.apache.org/email/unsubscribe/41e0f6839b8d8df07f9b631b4dd52d63eb99c9dafe991f5b999cb6716bec64e0).

[MXNet Forum] [Gluon] Deconvolution error

Posted by Foivos Diakogiannis via MXNet Forum <mx...@discoursemail.com.INVALID>.

Hi, here ```c``` must divide the number of input channels, not the number of output channels. I believe if c devides the number of input channels (generally different than c), you should be fine. 

Regards,
Foivos





---
[Visit Topic](https://discuss.mxnet.apache.org/t/deconvolution-error/6832/2) or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.mxnet.apache.org/email/unsubscribe/4702f0b671ad7edf931f2cc806a3f9fe9e9474dd34445f0df46b2fcd58f30d59).