batchgenerators icon indicating copy to clipboard operation
batchgenerators copied to clipboard

AttributeError when calling restart() of multithreadaugmentor

Open fishfishson opened this issue 4 years ago • 1 comments

Hi. I write my own dataloader according to your barts173D.py. However, when I run the code, the python will show something like AttributeError: 'NoneType' object has no attribute 'is_alive' from the resert() of tr_gen or specificly self._finish() of tr_gen. So I skip the restart(), the system again shows the same error when the program ends from del. I do not know why so I run your multithread_dataloading.py, everything goes well. But when adding restart() after "mt" at line 91, the system shows the same error.
Can you help me solving this problem?

fishfishson avatar Jun 03 '20 15:06 fishfishson

Hi, I fixed this in the current master. Please pull from github and try again. Sorry for the inconvenience. Best, Fabian

On Wed, Jun 3, 2020, 17:20 Zhiyuan [email protected] wrote:

Hi. I write my own dataloader according to your barts173D.py. However, when I run the code, the python will show something like AttributeError: 'NoneType' object has no attribute 'is_alive' from the resert() of tr_gen or specificly self._finish() of tr_gen. So I skip the restart(), the system again shows the same error when the program ends from del. I do not know why so I run your multithread_dataloading.py, everything goes well. But when adding restart() after "mt" at line 91, the system shows the same error. Can you help me solving this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MIC-DKFZ/batchgenerators/issues/60, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWHKFHVCIR2DCFEY2BEVQLRUZS3NANCNFSM4NRYRY2A .

FabianIsensee avatar Jun 03 '20 16:06 FabianIsensee