stylegan2-pytorch
stylegan2-pytorch copied to clipboard
Train script issue
When training the model in colab:
%run -m torch.distributed.launch --nproc_per_node=1 --master_port=8890 train.py --batch 4 LMDB_PATH
the following error raises:
UsageError: option --nproc_per_node not recognized ( allowed: "nidtN:b:pD:l:rs:T:em:G" )
Does anybody know why ?
I don't know much about colab, but it seems like that %run -m torch.distributed.launch does not corresponds to python -m torch.distributed.launch. Maybe this is the related issues. https://github.com/ipython/ipython/issues/8437
Just changed the '%run' command for '!python' one. Also the module torch.distributed.launch didn´t seem to work and was migrated to torch.distributed.run. Model is training now :) Thanks for the advice.