Closed
Description
Hi,
I came across an issue when training & evaluating a model on Windows 10. Specifically, if the code in train.py, evaluate,py, and visualize.py is not wrapped in some form of a main function, which is then called with if __name__ == '__main__': main()
, then the code will be run multiple times and until a multiprocessing runtime error occurs.
This can be solved, as stated in the Pytorch doc here, by wrapping the code in a function, and calling it when needed.
Wasn't sure if you wanted to address the issue as I don't know how the added code will impact Linux & Mac users, but wanted to give you a heads up that this issue exists for Windows users.
Metadata
Metadata
Assignees
Labels
No labels
Activity