Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing 1 required argument "num_spatial_dims" #28

Open
wanghao-cst opened this issue Nov 3, 2022 · 3 comments
Open

missing 1 required argument "num_spatial_dims" #28

wanghao-cst opened this issue Nov 3, 2022 · 3 comments

Comments

@wanghao-cst
Copy link

Hi, when I run the first command to train the supermobile model, threre is an error as shown in the pict. Maybe it is caused by the wrong torch version, my version is 1.12, could u ple have a check?
微信图片_20221103095942

@jxhnx
Copy link

jxhnx commented Nov 3, 2022

Try replacing this line by:
output_padding = self._output_padding(x, output_size, self.stride, self.padding, self.kernel_size, num_spatial_dims=2)

It's due to a PyTorch update, at some point the argument wasn't required and 2D the default as far as I remember.

@wanghao-cst
Copy link
Author

Thx, that works. may I know your torch version?

@jxhnx
Copy link

jxhnx commented Nov 3, 2022

I'm using some nightlies, 1.13.x 1.14.x, that's why I had to adjust that, too. I never trained the supernet though, so please apply that with caution. With subnets, all works as expected on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants