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

Exception in thread Thread-2 #1051

Closed
tensor2flow opened this issue Jun 27, 2019 · 2 comments
Closed

Exception in thread Thread-2 #1051

tensor2flow opened this issue Jun 27, 2019 · 2 comments

Comments

@tensor2flow
Copy link

Epoch 1/50
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Users\tenso\Anaconda3\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\tenso\Anaconda3\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\tenso\Anaconda3\lib\site-packages\keras\utils\data_utils.py", line 565, in _run
with closing(self.executor_fn(_SHARED_SEQUENCES)) as executor:
File "C:\Users\tenso\Anaconda3\lib\site-packages\keras\utils\data_utils.py", line 548, in
initargs=(seqs,))
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\context.py", line 119, in Pool
context=self.get_context())
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\pool.py", line 176, in init
self._repopulate_pool()
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\pool.py", line 241, in _repopulate_pool
w.start()
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle generator objects

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\tenso\Anaconda3\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

@hgaiser
Copy link
Contributor

hgaiser commented Jul 3, 2019

Multiprocessing and Windows don't work well together, try running the command with --workers 0.

@tensor2flow
Copy link
Author

It works. Thank you very very much!!!!!!!!!

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