I’m trying to save as saved model using self.model.save(“./models”)
But it keeps saying “IsADirectoryError: [Errno 21] Unable to create file (unable to open file: name = “./model”, errno = 21, error message = ‘Is a directory’, flags = 13, o_flags = 242)”
Any idea would be a great help
According to the Python docs you need to give the full path with filename.
Example: user/os/foldername/filename.txt
Hi, Welcome to the community.
Please, create a folder saved_model
before saving the model so my_model
will be saved in that directory. Please, find the gist.Please, verify once and close the issue.
Please, refer tutorial
Thanks!
Thanks Raja for your help, but still getting the same issue find below the reference.
File “h5py/h5f.pyx”, line 126, in h5py.h5f.create
IsADirectoryError: [Errno 21] Unable to create file (unable to open file: name = ‘/root/saved’, errno = 21, error message = ‘Is a directory’, flags = 13, o_flags = 242)