Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
634
Widok
0
25/01/2024 11:56 pm
Topic starter
scalene train.py error: RuntimeError: context has already been set
how to fix?
1 Answer
0
25/01/2024 11:58 pm
Topic starter
open: stylegan2-ada-pytorch-main\train.py
find code:
# Launch processes. print('Launching processes...') torch.multiprocessing.set_start_method('spawn') with tempfile.TemporaryDirectory() as temp_dir:
remove line:
torch.multiprocessing.set_start_method('spawn')
then start profiler using
sudo scalene --html --outfile profile.html train.py