yunyang
yunyang

Reputation: 43

Python could not load mat data sucessfully. ValueError: Did not fully consume compressed contents of an miCOMPRESSED element

I have saved spectrograms as mat files in MATLAB. However, when I train a pix2pix model with my own .mat data, it stopped after a while with this error:

ValueError: Did not fully consume compressed contents of an miCOMPRESSED element. This can indicate that the .mat file is corrupted.

I have read that the version of the .mat file can be a cause of this problem. How can I fix that?

save(['E:\matlab\speech\data\',strcat(int2str(1)),'.mat'],'img_A');

This is my code for saving spectrogram as mat file.

Upvotes: 0

Views: 156

Answers (0)

Related Questions