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

Image to pixel conversion #1

Open
eravallirao opened this issue Jul 14, 2019 · 1 comment
Open

Image to pixel conversion #1

eravallirao opened this issue Jul 14, 2019 · 1 comment

Comments

@eravallirao
Copy link

Hi,
I was facing issues while converting image into pixels values and dumping it into csv. It is showing that array cannot be converted into (96,96,1) image. Can you please help me with conversion of image into pixels

@eravallirao
Copy link
Author

Traceback (most recent call last):
File "train_landmark.py", line 11, in
X_train, y_train = load_data()
File "/Users/sukshi/Downloads/facial-keypoint-detection-master/utils.py", line 29, in load_data
X = np.vstack(df['Image'].values) / 255. # scale pixel values to [0, 1]
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/shape_base.py", line 234, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

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