Closed dianxin556 closed 1 year ago
Hi, this issue seems to be caused by the inconsistent PyTorch version. Our code is tested on PyTorch 1.4. Could you specify your PyTorch version?
From the latest PyTorch1.13 document, this can by fixed by changing this line to
num_spatial_dims = 2
output_padding = self._output_padding(x, output_size, self.stride, self.padding, self.kernel_size, num_spatial_dims, self.dilation)
As there are no more replies, I will close this issue.
Thanks,I will try.
when I run the script train_supernet.sh in the fast gan compression,it occurs an error " TypeError: _output_padding() missing 1 required positional argument: 'num_spatial_dims'". and the task script is "bash scripts/cycle_gan/horse2zebra_fast/train_supernet.sh"