Merge pull request #44 from justinjohn0306/main
Use gloo backend on Windows for Pytorch
This commit is contained in:
@@ -65,7 +65,8 @@ def run(rank, n_gpus, hps):
|
||||
writer = SummaryWriter(log_dir=hps.model_dir)
|
||||
writer_eval = SummaryWriter(log_dir=os.path.join(hps.model_dir, "eval"))
|
||||
|
||||
dist.init_process_group(backend='nccl', init_method='env://', world_size=n_gpus, rank=rank)
|
||||
# Use gloo backend on Windows for Pytorch
|
||||
dist.init_process_group(backend= 'gloo' if os.name == 'nt' else 'nccl', init_method='env://', world_size=n_gpus, rank=rank)
|
||||
torch.manual_seed(hps.train.seed)
|
||||
torch.cuda.set_device(rank)
|
||||
|
||||
@@ -317,4 +318,4 @@ def evaluate(hps, generator, eval_loader, writer_eval):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
Cython
|
||||
librosa
|
||||
librosa==0.9.1
|
||||
numpy
|
||||
scipy
|
||||
tensorboard
|
||||
|
||||
Reference in New Issue
Block a user