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

Error #6

Closed
vani99 opened this issue Mar 17, 2018 · 1 comment
Closed

Error #6

vani99 opened this issue Mar 17, 2018 · 1 comment

Comments

@vani99
Copy link

vani99 commented Mar 17, 2018

I'm actually using AWS sagemaker as the platform and have the dadaset both in my local system and as well as in s3 bucket. But receiving the same error for both datasets! Receiving this the following error while trying to run the following code:

train_data, train_target, train_id = normalize_train_data()

Loading training images...
Loading dogs files (Index: 0)
Loading cats files (Index: 1)
Training data load time: 0.0 seconds

ValueError Traceback (most recent call last)
in ()
----> 1 train_data, train_target, train_id = normalize_train_data()

in normalize_train_data()
5 train_target = np.array(train_target, dtype=np.uint8)
6
----> 7 train_data = train_data.transpose((0, 3, 1, 2))
8
9 train_data = train_data.astype('float32')

ValueError: axes don't match array

@rdcolema
Copy link
Owner

Hey @vani99 are you sure the images are being loaded? What shape is the array before it gets to the transpose line?

See ZFTurbo/KAGGLE_DISTRACTED_DRIVER#4 for a similar issue.

@rdcolema rdcolema closed this as completed Apr 3, 2018
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