Comments (15)
"> 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.
from autonomousdrivingcookbook.
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?
from autonomousdrivingcookbook.
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
from autonomousdrivingcookbook.
@abc19850508 Thank for your commend , I change 'D:\EndToEndDeepLearning\Model\models' to 'D:\EndToEndDeepLearning\Model', sadly it doesn't work
from autonomousdrivingcookbook.
Is there anything in the models folder? Are you able to read those files (i.e. do you have permission?)
from autonomousdrivingcookbook.
@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
from autonomousdrivingcookbook.
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().
from autonomousdrivingcookbook.
@mitchellspryn It does not work either,I run this program in another computer but have same error
from autonomousdrivingcookbook.
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.
from autonomousdrivingcookbook.
@wdsd641417025 : Did you get it to work? Did you find out what was being passed to load_model?
from autonomousdrivingcookbook.
dada
from autonomousdrivingcookbook.
Same problem here,
win 10 OS
Can not change the read-only property,i am not sure it is the reason of the problem.
from autonomousdrivingcookbook.
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.
from autonomousdrivingcookbook.
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!
from autonomousdrivingcookbook.
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?
from autonomousdrivingcookbook.
Related Issues (20)
- Received an empty batch. Batches should at least contain one item.
- Gear attribute in airsim_rec.txt
- Train Model Keras Issue HOT 1
- no Cooking HOT 2
- ValueError: cannot reshape array of size 1 into shape (0,0,4) HOT 1
- Fails to create test.h5 and eval.h5 in DataExplorationAndPreparation HOT 2
- Modifications for throttle prediciton
- Getting IndexError: list index out of range while running TrainModel.ipynb ([in 5]). HOT 2
- When sending the steering angle to Carclient ,should the predition angle multiply 0.69 ? HOT 1
- JSONDecodeError HOT 1
- Mr. Spryn! How can I change the Generator.py and Cooking.py to store the images in the batches in the same order as they are in the folders and then entered into the model for train?
- Kaggle AirSim End-to-End Learning to share HOT 1
- File not found error
- Help! training not starting! #urgent HOT 6
- AirsimE2EDeepLearning code seems to change the tone of my image data HOT 2
- Dataset link does not work HOT 5
- This repo is missing important files HOT 1
- AD_Cookbook_AirSim.7z download link do not work! help! HOT 3
- Do not suit for uav
- Lane Following and Collision Avoidance for Self-Driving Cars
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autonomousdrivingcookbook.