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

ask for help #5

Open
morningsky opened this issue Mar 7, 2016 · 0 comments
Open

ask for help #5

morningsky opened this issue Mar 7, 2016 · 0 comments

Comments

@morningsky
Copy link

when I run this code vectorize_img.py it shows that:

Traceback (most recent call last):
File "vectorize_img.py", line 87, in
test_vec = vectorize_imgs(test_path_and_labels, img_size)
File "vectorize_img.py", line 43, in vectorize_imgs
arrs = np.asarray(arrs, dtype='float64')
File "D:\Anaconda2\lib\site-packages\numpy\core\numeric.py", line 474, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: could not broadcast input array from shape (250,250,3) into shape (250,250)

I have modify the img_size
img_size = (3, 250, 250) # channel, height, width
Thanks!

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