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

How to debug? #2

Open
bareblackfoot opened this issue Nov 25, 2019 · 0 comments
Open

How to debug? #2

bareblackfoot opened this issue Nov 25, 2019 · 0 comments

Comments

@bareblackfoot
Copy link

Hi, thank you for sharing your great work :)
I am struggling to debug the code since your code uses multi-processing in dataloader.
When I use debug mode in pycharm, the error occurs at the dataloader (it's okay with the simple run in pycharm).
I attached the error log below.
Thank you!

for sample in iter(dataloader):

File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py", line 571, in next
self._shutdown_workers()
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py", line 659, in _shutdown_workers
w.join()
File "/usr/lib/python3.7/multiprocessing/process.py", line 140, in join
res = self._popen.wait(timeout)
File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 48, in wait
return self.poll(os.WNOHANG if timeout == 0.0 else 0)
File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt

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

1 participant