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

RuntimeError: Given groups=1, weight of size [256, 128, 1, 1], expected input[1, 98, 176, 144] to have 128 channels, but got 98 channels instead #74

Open
9796l opened this issue Dec 27, 2022 · 1 comment

Comments

@9796l
Copy link

9796l commented Dec 27, 2022

excuse me,i used datasets which are same with nyu,but when i train the dataset,the problem is RuntimeError: Given groups=1, weight of size [256, 128, 1, 1], expected input[1, 98, 176, 144] to have 128 channels, but got 98 channels instead.

@PeteBai
Copy link

PeteBai commented Jan 24, 2023

I think it's because your image is too low resolution. I have encountered a similar issue and it is resolved after I resize (interpolated) the image to 640x480.

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