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: stack expects each tensor to be equal size, but got [1, 256, 256] at entry 0 and [3, 256, 256] at entry 7 #14

Open
gongmingbanzhi opened this issue Nov 12, 2024 · 1 comment

Comments

@gongmingbanzhi
Copy link

gongmingbanzhi commented Nov 12, 2024

When I used my own dataset for training, an error occurred:
QQ图片20241112112744

@caoyunkang
Copy link
Owner

It appears that your images are in grayscale rather than RGB format. You can update the dataset file to ensure images are read in RGB format.

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