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

Tensor Dimension Mismatch #62

Closed
GDMG99 opened this issue Dec 9, 2022 · 1 comment
Closed

Tensor Dimension Mismatch #62

GDMG99 opened this issue Dec 9, 2022 · 1 comment

Comments

@GDMG99
Copy link

GDMG99 commented Dec 9, 2022

Hi! I wanted to infer the model onto some KITTI frames. I modified the data paths to match my local paths. The data is loaded properly, however, the tensor for the RGB image is shaped [1, 352, 1216] and the depth map [1, 1, 352, 1216]. Obviously i get a mismatch error when concatenating both images further in the code. I added a dummy axes to the RGB image to get [1, 1, 352, 1216] but now I get the following error:
RuntimeError: Given groups=1, weight of size [32, 4, 5, 5], expected input[1, 2, 352, 1216] to have 4 channels, but got 2 channels instead
On a 2D convolution layer. Does anyone know how to fix this?
Thanks in advance.

@GDMG99 GDMG99 closed this as completed Dec 9, 2022
@GDMG99
Copy link
Author

GDMG99 commented Dec 9, 2022

Fixed the issue.

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

1 participant