Closed Arafat4341 closed 3 years ago
It seems again that the script is not able to find your model. Did you double check that the path models/logs/2020-07-29-05-05-31/weights.12.model
is the a correct relative path from your current working directory?
@Bartzi Yes. It is the correct relative path from my cwd.
hmm, the resulting file should be a correct hdf5 file, according to the Keras documentation. You could try to check that by loading it by yourself in an interactive python shell. My guess is that the script is just not able to locate the file. That's at least what the error tells me.
I have tried to load the model in an interactive shell. Getting error:
TypeError: __init__() missing 2 required positional arguments: 'filters' and 'kernel_size'
BTW I have given the correct relative path.
Ah I solved the problem. I gave incorrect path! Thanks for being co-operative!
I have trained model on my custom dataset that only contains English and Japanese audios. The model training stops early. And but no h5f file gets generated. I only get weight files like:
weights.12.model
. That's why receiving error:IOError: Unable to open file (Unable to open file: name = 'models/logs/2020-07-29-05-05-31/weights.12.model', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)
full error: