0
I’m trying to upload a file .h5
using this documentation HDF5Matrix
:
test_images = HDF5Matrix(train_path+train_file,'images')
but I’m getting this mistake:
Keyerror: "Unable to open Object (Object 'images' doesn’t exist)"
I know it is necessary to use this syntax to call a second key in a dictionary ['train'] ['images']
.
I usually use this instruction to open files .h5
:
with h5py.File(train_path+train_file, 'r') as hf:
train_images = hf['train']['images'][:]
My question is: You can access the second key to use the syntax HDF5Matrix
?
Thank you!