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 [64, 1, 7, 7], expected input[5, 64, 70, 70] to have 1 channels, but got 64 channels instead #5

Open
SurbhiKhushu opened this issue May 31, 2020 · 2 comments

Comments

@SurbhiKhushu
Copy link

Hello,

I am getting this error.
I have implemented your code ,but written a custom dataset loader for my image patches.

Can you tell me how can I solve this error

@arnab39
Copy link
Owner

arnab39 commented Jun 1, 2020

Hi,
It seems like your number of input channels doesn't match with the convolution filter you defined.
Try to match the input channels with the channels you defined in the convolution kernel. Also, the error you posted isn't sufficient to comment more.

Good luck

@SurbhiKhushu
Copy link
Author

SurbhiKhushu commented Jun 1, 2020

I was trying to implement your model on gray scale images. For gray scale I changed the input channel to 1. I suppose thats why it was throwing 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