Forum

scalene, stylegan e...
 
Powiadomienia
Wyczyść wszystko

scalene, stylegan error: RuntimeError: context has already been set

1 Wpisy
1 Użytkownicy
0 Reactions
769 Widoki
0
Rozpoczynający temat

scalene train.py error: RuntimeError: context has already been set 

how to fix?

1 odpowiedź
0
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

Twoja odpowiedź

Nazwa autora

E-mail autora

Twoje zapytanie *

 
Podgląd 0 rewizje Zapisano
Udostępnij: