nv-tlabs / GSCNN

Gated-Shape CNN for Semantic Segmentation (ICCV 2019)
https://nv-tlabs.github.io/GSCNN/
Other
916 stars 200 forks source link

TypeError: __init__() takes 11 positional arguments but 12 were given #33

Closed VaingloryD closed 4 years ago

VaingloryD commented 4 years ago

While trying the train.py file, I have encountered the Error "TypeError: init() takes 11 positional arguments but 12 were given". Here is the wrong code: class GatedSpatialConv2d(_ConvNd): super(GatedSpatialConv2d, self).__init__( in_channels, out_channels, kernel_size, stride, padding, dilation, False, _pair(0), groups, bias, 'zeros')

yuki-0321 commented 4 years ago

You can try to install pytorch = 1.1.0. This may be a issue of pytorch's version.

tovacinni commented 4 years ago

Thanks for your interest in our work!

This is a duplicate issue, please refer to https://github.com/nv-tlabs/GSCNN/issues/6#issuecomment-525578150