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

stack expects each tensor #14

Open
sanazsab opened this issue Mar 23, 2022 · 1 comment
Open

stack expects each tensor #14

sanazsab opened this issue Mar 23, 2022 · 1 comment

Comments

@sanazsab
Copy link

File ".../utils/util.py", line 100, in depth2normal_ortho
p = torch.stack([x_cord, y_cord, depth], dim=3) # (B,H,W,3)
RuntimeError: stack expects each tensor to be equal size, but got [8, 256, 192] at entry 0 and [5, 256, 192] at entry 2

I've got this error when I used batch size 8 for DRM.

What is the batch size for DRM?

Thanks for your quick answer.

@fyviezhao
Copy link
Owner

It is a bit weird. Given batch = 8 for DRM, the output depth should have 8 channels instead of 5. Have you modified other parts of the code that may lead to this error?

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