Giter Club home page Giter Club logo

Comments (15)

camartin88 avatar camartin88 commented on May 10, 2024 2

"> 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.

LouisVann avatar LouisVann commented on May 10, 2024 1

Hey I met the same problem. I don't know what happend, but when I changed load_model which was imported before to keras.models.load_model, everything changed!!!

image

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.

abc19850508 avatar abc19850508 commented on May 10, 2024

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.

Harold-lkk avatar Harold-lkk commented on May 10, 2024

@abc19850508 Thank for your commend , I change 'D:\EndToEndDeepLearning\Model\models' to 'D:\EndToEndDeepLearning\Model', sadly it doesn't work

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 10, 2024

Is there anything in the models folder? Are you able to read those files (i.e. do you have permission?)

from autonomousdrivingcookbook.

Harold-lkk avatar Harold-lkk commented on May 10, 2024

@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.

mitchellspryn avatar mitchellspryn commented on May 10, 2024

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.

Harold-lkk avatar Harold-lkk commented on May 10, 2024

@mitchellspryn It does not work either,I run this program in another computer but have same error

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 10, 2024

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.

mitchellspryn avatar mitchellspryn commented on May 10, 2024

@wdsd641417025 : Did you get it to work? Did you find out what was being passed to load_model?

from autonomousdrivingcookbook.

lwluowei avatar lwluowei commented on May 10, 2024

dada

from autonomousdrivingcookbook.

lwluowei avatar lwluowei commented on May 10, 2024

Same problem here,
win 10 OS
image
Can not change the read-only property,i am not sure it is the reason of the problem.

from autonomousdrivingcookbook.

lwluowei avatar lwluowei commented on May 10, 2024

Found the problem!
image
I replace the None with the needed model path which is not supposed to,Follow the picture setting will close the problem.

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 10, 2024

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.

LouisVann avatar LouisVann commented on May 10, 2024

Hey I met the same problem. I don't know what happend, but when I changed load_model which was imported before to keras.models.load_model, everything changed!!!
image
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?

But why could the two have different references?

from autonomousdrivingcookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.