Closed xiaoyuSui closed 3 years ago
Hi @xiaoyuSui , It seems that in Windows the new process will import the main. Could you try to insert
if __nam__ == '__main__':
to prevent code after the following line to execute? https://github.com/WeijingShi/Point-GNN/blob/2baf24f9556907f23e2e4018f1b756dac3f6c497/train.py#L172 Let me know if this works. Thanks,
Thank you sooooo much! It works! It is so nice of you to help me out! Actually I have tried it before but now it seems I got some other things wrong then
Hi,Where did you insert this line of code? I am facing the same problem now, looking forward to your reply @xiaoyuSui
I remember it should have worked.
if name == 'main':
if 'COPY_PER_GPU' in train_config:
COPY_PER_GPU = train_config['COPY_PER_GPU']
else:
COPY_PER_GPU = 1
NUM_GPU = train_config['NUM_GPU']
There is an error when training:
RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.
I searched online and it says this is because I am running in Windows and multi-thread program(the data loading part)should be inside if name == 'main': .I tried hard but once I change a bit there comes more errors. I really can not fix it because I am such a new starter OTZ. Please help!