Ошибка: невозможно открыть файл (подпись файла не найдена) h5 файл - PullRequest
0 голосов
/ 16 февраля 2020

Я пытаюсь прочитать файл h5


# Reads the Training data file. However, this just reads the speaker list data required for encoding the targets with scikit-learn block "LabelEncoder".
dataServer = h5py.File('Librispeech_960_train_list.h5', 'r')
sLabels=dataServer['lSpeaker'][:]

encoder_spk = LabelEncoder()
encoder_spk.fit(sLabels)
num_spk_class=np.unique(sLabels).shape[0]

, но я получаю эту ошибку:

  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper

  File "h5py\h5f.pyx", line 85, in h5py.h5f.open

OSError: Unable to open file (file signature not found)

Я получаю эту ошибку OSE, и я не получаю знать, как ее решить

...