Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error train the model #25

Closed
hyybuaa opened this issue Mar 31, 2018 · 7 comments
Closed

error train the model #25

hyybuaa opened this issue Mar 31, 2018 · 7 comments

Comments

@hyybuaa
Copy link

hyybuaa commented Mar 31, 2018

python35 cudnn5.1 keras2.1.2 numpy (1.14.2)
Traceback (most recent call last):
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 526, in get
value = obj._trait_values[self.name]
KeyError: 'layout'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 526, in get
value = obj._trait_values[self.name]
KeyError: 'kernel'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:/AutonomousDriving/AirSimE2EDeepLearning/test2.py", line 122, in
validation_data=eval_generator, validation_steps=num_eval_examples//batch_size, verbose=2)
File "C:\Users\oleg\Anaconda3\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\keras\engine\training.py", line 2072, in fit_generator
callbacks.on_train_begin()
File "C:\Users\oleg\Anaconda3\lib\site-packages\keras\callbacks.py", line 126, in on_train_begin
callback.on_train_begin(logs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\keras_tqdm\tqdm_callback.py", line 129, in on_train_begin
total=epochs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\keras_tqdm\tqdm_callback.py", line 67, in build_tqdm_outer
return self.tqdm(desc=desc, total=total, leave=self.leave_outer)
File "C:\Users\oleg\Anaconda3\lib\site-packages\keras_tqdm\tqdm_notebook_callback.py", line 33, in tqdm
return tqdm_notebook(desc=desc, total=total, leave=leave)
File "C:\Users\oleg\Anaconda3\lib\site-packages\tqdm_init_.py", line 22, in tqdm_notebook
return _tqdm_notebook(*args, **kwargs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\tqdm_tqdm_notebook.py", line 176, in init
self.sp = self.status_printer(self.fp, self.total, self.desc)
File "C:\Users\oleg\Anaconda3\lib\site-packages\tqdm_tqdm_notebook.py", line 96, in status_printer
pbar = IntProgress(min=0, max=total)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget_int.py", line 57, in init
super(cls, self).init(**kwargs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget_int.py", line 95, in init
super(_BoundedInt, self).init(**kwargs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget_int.py", line 76, in init
super(_Int, self).init(**kwargs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\domwidget.py", line 90, in init
super(DOMWidget, self).init(*pargs, **kwargs)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget.py", line 184, in init
self.open()
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget.py", line 197, in open
state, buffer_keys, buffers = self._split_state_buffers(self.get_state())
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget.py", line 291, in get_state
value = to_json(getattr(self, k), self)
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 554, in get
return self.get(obj, cls)
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 533, in get
value = self._validate(obj, dynamic_default())
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\domwidget.py", line 23, in _layout_default
return Layout()
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget.py", line 184, in init
self.open()
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipywidgets\widgets\widget.py", line 203, in open
self.comm = Comm(**args)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipykernel\comm\comm.py", line 56, in init
self.open(data=data, metadata=metadata, buffers=buffers)
File "C:\Users\oleg\Anaconda3\lib\site-packages\ipykernel\comm\comm.py", line 83, in open
comm_manager = getattr(self.kernel, 'comm_manager', None)
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 554, in get
return self.get(obj, cls)
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 533, in get
value = self._validate(obj, dynamic_default())
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 589, in _validate
value = self.validate(obj, value)
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 1681, in validate
self.error(obj, value)
File "C:\Users\oleg\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 1528, in error
raise TraitError(e)
traitlets.traitlets.TraitError: The 'kernel' trait of a Comm instance must be a Kernel, but a value of class 'NoneType' (i.e. None) was specified.

@mitchellspryn
Copy link
Contributor

This seems like something is wrong with your Keras install. Can you try reinstalling in a clean venv from the InstallPackages.py?

@hyybuaa
Copy link
Author

hyybuaa commented Apr 1, 2018

@mitchellspryn sorry ,i'm a newer and don't know how to reinstall in a clean env

@hyybuaa
Copy link
Author

hyybuaa commented Apr 1, 2018

sorry,i don't use jupyter notebook.I edit it in pychram ,so error

@mitchellspryn
Copy link
Contributor

It sounds like your environment is not set up properly. Please follow the instructions that are specified in the "Prerequisites and Setup" section of the main README page here. This explains in detail how to install anaconda and the dependencies.

Also, the tutorial files are jupyter notebooks. AFAIK, they won't work directly in pycharm unless you convert them to standard python files. Also, I don't know how pycharm interacts with anaconda virtual environments - you're probably better off just using the notebooks. Is there a specific reason you're trying to use pycharm?

@mitchellspryn
Copy link
Contributor

@hyybuaa, were you able to run the notebooks?

@hyybuaa
Copy link
Author

hyybuaa commented Apr 5, 2018

@mitchellspryn yes, I can

@mitchellspryn
Copy link
Contributor

Great. I'll close this issue, then. Thanks for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants