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

您好,有个问题想咨询您 #10

Open
DangDang-LG opened this issue Oct 6, 2019 · 0 comments
Open

您好,有个问题想咨询您 #10

DangDang-LG opened this issue Oct 6, 2019 · 0 comments

Comments

@DangDang-LG
Copy link

我使用您的代码训练自己的数据集
但是报错(如下)

ValueError Traceback (most recent call last)
in
37
38
---> 39 fpaths, datas, labels = read_data(data_dir)
40

in read_data(data_dir)
30 labels.append(label)
31
---> 32 datas = np.array(datas)
33 labels = np.array(labels)
34

ValueError: could not broadcast input array from shape (300,300,3) into shape (300,300)

我导入的图片为彩色,像素为300*300,请问报错是什么原因呢?我要怎么修改?
感谢答复

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