We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I am training the PixelSNAIL network with 128x128 image sizes and currently having the runtime error below:
background = self.background[:, :, :height, :].expand(batch, 2, height, width) RuntimeError: The expanded size of the tensor (16) must match the existing size (32) at non-singleton dimension 3. Target sizes: [64, 2, 16, 16]. Tensor sizes: [1, 2, 16, 32]
The problem is caused by the the line 408 in pixelsnail.py:
background = self.background[:, :, :height, :].expand(batch, 2, height, width)
If I change the line to:
background = self.background[:, :, :height, :width].expand(batch, 2, height, width)
the code works without any errors but I am not sure if that is the correct way to fix the error. How can this error be fixed?
The text was updated successfully, but these errors were encountered:
I think you can change shape argument of PixelSNAIL.
Sorry, something went wrong.
No branches or pull requests
Hi,
I am training the PixelSNAIL network with 128x128 image sizes and currently having the runtime error below:
The problem is caused by the the line 408 in pixelsnail.py:
background = self.background[:, :, :height, :].expand(batch, 2, height, width)
If I change the line to:
background = self.background[:, :, :height, :width].expand(batch, 2, height, width)
the code works without any errors but I am not sure if that is the correct way to fix the error. How can this error be fixed?
The text was updated successfully, but these errors were encountered: