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

issue with saving the data as .h5 #4

Open
OlgaMatt opened this issue Jan 23, 2019 · 1 comment
Open

issue with saving the data as .h5 #4

OlgaMatt opened this issue Jan 23, 2019 · 1 comment

Comments

@OlgaMatt
Copy link

I am trying to save the output files as .h5 files as instructed, but I keep getting the error
"TypeError: Object dtype dtype('O') has no native HDF5 equivalent"

Anyone know how to fix it, or an alternative way of saving this data?

@abhising10p14
Copy link

Change the line to this in loop over the training data sub-folders
for training_name in train_labels:
# join the training data path and each species training folder
dir = os.path.join(train_path, training_name)

# get the current training label
current_label = training_name

file = dir + "/image_" + str(x) + ".jpg"

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