Powiadomienia
Wyczyść wszystko
BugOverflow
1
Wpisy
1
Użytkownicy
0
Reactions
769
Widoki
0
25/01/2024 11:56 pm
Rozpoczynający temat
scalene train.py error: RuntimeError: context has already been set
how to fix?
1 odpowiedź
0
25/01/2024 11:58 pm
Rozpoczynający temat
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