Closed rohitdhote111 closed 2 years ago
Even when reducing the number of workers to 1, a freeze_support()
error is being displayed:
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
Reduce the num of workers when you load the dataset.
Originally posted by @Youskrpig in https://github.com/likyoo/Siam-NestedUNet/issues/11#issuecomment-945422593