We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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,请问报错是什么原因呢?我要怎么修改? 感谢答复
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我使用您的代码训练自己的数据集
但是报错(如下)
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,请问报错是什么原因呢?我要怎么修改?
感谢答复
The text was updated successfully, but these errors were encountered: