Forum

scalene, stylegan e...
 
Notifications
Clear all

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

1 Posty
1 Users
0 Reactions
468 Widok
0
Topic starter

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

how to fix?

1 Answer
0
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

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: