Contrastive-Adaptation-Network-for-Unsupervised-Domain-Adaptation icon indicating copy to clipboard operation
Contrastive-Adaptation-Network-for-Unsupervised-Domain-Adaptation copied to clipboard

How to debug?

Open bareblackfoot opened this issue 4 years ago • 0 comments

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

bareblackfoot avatar Nov 25 '19 13:11 bareblackfoot