Coder Social home page Coder Social logo

Comments (4)

zwbai avatar zwbai commented on June 3, 2024 1

I also have this problem while running the view_steering_model.py

Is there anyone else knows why?

`python view.py ./outputs/steering_model/steering_angle.json
Using TensorFlow backend.
Traceback (most recent call last):
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\utils\generic_utils.py", line 229, in func_load
raw_code = codecs.decode(code.encode('ascii'), 'base64')
UnicodeEncodeError: 'ascii' codec can't encode character '\xe0' in position 46: ordinal not in range(128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "view.py", line 124, in
model = model_from_json(json.load(jfile))
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\models.py", line 379, in model_from_json
return layer_module.deserialize(config, custom_objects=custom_objects)
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\layers_init_.py", line 55, in deserialize
printable_module_name='layer')
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\utils\generic_utils.py", line 144, in deserialize_keras_object
list(custom_objects.items())))
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\models.py", line 1411, in from_config
layer = layer_module.deserialize(conf, custom_objects=custom_objects)
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\layers_init_.py", line 55, in deserialize
printable_module_name='layer')
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\utils\generic_utils.py", line 144, in deserialize_keras_object
list(custom_objects.items())))
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\layers\core.py", line 733, in from_config
function = func_load(config['function'], globs=globs)
File "D:\Users\Michael\Anaconda3\envs\comma\lib\site-packages\keras\utils\generic_utils.py", line 234, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
`

from research.

ahmedyahia3393 avatar ahmedyahia3393 commented on June 3, 2024

????

from research.

ahmedyahia3393 avatar ahmedyahia3393 commented on June 3, 2024

@geohot @EderSantana @espes @rocfig @rbiasini @radarhere @Yale323 @nicolov @kkdevenda @jingzhehu @zuijiawoniu @solaris33 @cburgdorf

from research.

sleepless-se avatar sleepless-se commented on June 3, 2024

I have same problem, too.

uwsgi_1 | loaded_model = model_from_json(loaded_model_json)
uwsgi_1 | File "/usr/local/lib/python3.6/dist-packages/keras/models.py", line 379, in model_from_json
uwsgi_1 | return layer_module.deserialize(config, custom_objects=custom_objects)
uwsgi_1 | File "/usr/local/lib/python3.6/dist-packages/keras/layers/init.py", line 55, in deserialize
uwsgi_1 | printable_module_name='layer')
uwsgi_1 | File "/usr/local/lib/python3.6/dist-packages/keras/utils/generic_utils.py", line 144, in deserialize_keras_object
uwsgi_1 | list(custom_objects.items())))
uwsgi_1 | File "/usr/local/lib/python3.6/dist-packages/keras/models.py", line 1406, in from_config
uwsgi_1 | if 'class_name' not in config[0] or config[0]['class_name'] == 'Merge':
uwsgi_1 | KeyError: 0


I hope this info will help us.
keras-team/keras#8612 (comment)

from research.

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.