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

there is an error in line 125 #20

Open
Qiaohao501 opened this issue Oct 13, 2022 · 1 comment
Open

there is an error in line 125 #20

Qiaohao501 opened this issue Oct 13, 2022 · 1 comment

Comments

@Qiaohao501
Copy link

Traceback (most recent call last):
File "train.py", line 125, in
output_masked[:,d,:,:] = (input_mask[:,d,:,:].unsqueeze(1)) * output
RuntimeError: expand(torch.cuda.FloatTensor{[36, 1, 128, 128]}, size=[36, 128, 128]): the number of sizes provided (3) must be greater or equal to the number of dimensions in the tensor (4)

@Aut0matas
Copy link

Aut0matas commented Mar 28, 2023

origin: output_masked[:,d,:,:] = input_mask[:,d,:,:].unsqueeze(1) * output
fix: output_masked[:,d,:,:] = torch.squeeze(input_mask[:,d,:,:].unsqueeze(1) * output)

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