Closed Harold-lkk closed 6 years ago
I saw your error is ”unable to open file: name = 'D:\EndToEndDeepLearning\Model\models'”,I think you have to specify a particular file under the models folder
@abc19850508 Thank for your commend , I change 'D:\EndToEndDeepLearning\Model\models' to 'D:\EndToEndDeepLearning\Model', sadly it doesn't work
Is there anything in the models folder? Are you able to read those files (i.e. do you have permission?)
@mitchellspryn thank you yes, thank you, there is a folder named models and a (.csv)file named training_log.csv in the model directory, and there are many .h5 files in the .../model/models directory. And the files can be read
For some reason, the file path isn't pointed to the actual model file. From your stack trace:
OSError: Unable to open file (unable to open file: name = 'D:\EndToEndDeepLearning\Model', errno = 13, error message = 'Permission denied', flags = 0, o_flags = 0)
This should point to the full model path (e.g. 'D:\EndToEndDeepLearning\Model\Models\12345.h5'). Try passing the full path explicitly to load_model().
@mitchellspryn It does not work either,I run this program in another computer but have same error
What are the contents of the string being passed to load_model? Does it point to a valid model on disk? If no, change the string to point to a valid model on disk and try again.
@wdsd641417025 : Did you get it to work? Did you find out what was being passed to load_model?
dada
Same problem here, win 10 OS Can not change the read-only property,i am not sure it is the reason of the problem.
Found the problem! I replace the None with the needed model path which is not supposed to,Follow the picture setting will close the problem.
Odd that you couldn't change the read-only property of the models (or the fact that it was set in the first place). Did you run the training process as administrator?
Anyway, it looks like the issue is solved, so I'll close this. Thanks for posting detailed instructions!
Hey I met the same problem. I don't know what happend, but when I changed
load_model
which was imported before tokeras.models.load_model
, everything changed!!!So who can tell me why?
And I find that function load_model
which was imported before uses actually keras.engine.saving.load_model
while keras.models.load_model
uses tensorflow_core.python.keras.saving.save.load_model
.
Maybe the two have different permissions?
Hey I met the same problem. I don't know what happend, but when I changed
load_model
which was imported before tokeras.models.load_model
, everything changed!!! So who can tell me why?And I find that function
load_model
which was imported before uses actuallykeras.engine.saving.load_model
whilekeras.models.load_model
usestensorflow_core.python.keras.saving.save.load_model
. Maybe the two have different permissions?
But why could the two have different references?
"> But why could the two have different references?"
Just had the same above problem and solved it this way. I called a friend and he explained if you use "from import " it will only import the one function, however if that function relies on any other dependencies with in your original ____ using the dot (my.werid.function) notation allows python to search upwards for those dependencies.
So rather, its not that they have different references, its that you have not given python the ability to go look for them.
Your issue may already be reported! Please make sure to search all open and closed issues before starting a new one.
Please fill out the sections below so we can understand your issue better and resolve it quickly.
Problem description
*I have finished learning the TrainModel.ipynb,and the results looks good, but when i tried to run the testModel.ipynb, I met this error as the following as @llyhbuaa,but it does not work when i deleted the modes and runned the TrainModel.ipynb again . I have connected to AirSim Simulator
Problem details
OSError Traceback (most recent call last)