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 [32, 3, 3, 3], expected input[2, 80, 80, 3] to have 3 channels, but got 80 channels instead #128

Open
confetti12 opened this issue May 16, 2024 · 1 comment

Comments

@confetti12
Copy link

confetti12 commented May 16, 2024

Hi Minivision team, your work is so great. it help me for my thesis. Thank you

But, I have tried use my own picture to train. i use RGB with picture size 80x80. But when i run the train, there is error RuntimeError: Given groups=1, weight of size [32, 3, 3, 3], expected input[1, 80, 80, 3] to have 3 channels, but got 80 channels instead. I dont why, my picture read as NHWC format not NCHW. I have tried to change 3 channels to 80 channel it seems the train is success to run but when the input come to FTGenerator in MultiFTNet the input is not [1, 1, 10, 10] but got [1, 1, 10, 1] and make the FTGenerator result is not perfect. Maybe because the MiniFASNet read input as TensorFlow data format [1, 80, 80, 3] not PyTorch data format [1, 3, 80 ,80]. What should i do?

@confetti12 confetti12 changed the title RuntimeError: Given groups=32, weight of size [32, 1, 3, 3], expected input[3, 40, 32, 40] to have 32 channels, but got 40 channels instead RuntimeError: Given groups=1, weight of size [32, 3, 3, 3], expected input[2, 80, 80, 3] to have 3 channels, but got 80 channels instead May 17, 2024
@mebcrtz
Copy link

mebcrtz commented Jul 18, 2024

hi! i have also encountered this error, would you mind if i asked if you were able to find a solution to this?

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