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

Grayscale #3

Open
generalsvr opened this issue Mar 31, 2019 · 1 comment
Open

Grayscale #3

generalsvr opened this issue Mar 31, 2019 · 1 comment

Comments

@generalsvr
Copy link

generalsvr commented Mar 31, 2019

How can I train yolo on grayscale images? I have changed channels to 1 in .cfg file as well as Input(shape=(None, None, 1)) in train.py. I got this error: ValueError: Error when checking input: expected input_1 to have shape (None, None, 1) but got array with shape (416, 416, 3) How to preprocess images properly?

@2017TJM
Copy link

2017TJM commented Apr 28, 2019

修改通道数

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