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

Issue with Channel Mismatch in MNIST Dataset Using Your Code #3

Open
vv-ch opened this issue Aug 10, 2024 · 0 comments
Open

Issue with Channel Mismatch in MNIST Dataset Using Your Code #3

vv-ch opened this issue Aug 10, 2024 · 0 comments

Comments

@vv-ch
Copy link

vv-ch commented Aug 10, 2024

When I switch to the MNIST dataset, I receive the following error during the training phase:

RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[128, 1, 28, 28] to have 3 channels, but got 1 channel instead

It appears that the ResNet model expects input with 3 channels, but the MNIST dataset has only 1 channel, leading to the mismatch.How should I resolve this 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