image-classification-python icon indicating copy to clipboard operation
image-classification-python copied to clipboard

issue with saving the data as .h5

Open OlgaMatt opened this issue 7 years ago • 1 comments

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?

OlgaMatt avatar Jan 23 '19 13:01 OlgaMatt

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"

abhising10p14 avatar Apr 15 '19 20:04 abhising10p14