Skip to content

Commit

Permalink
[vits] fix the bug in train.py (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shengqiang-Li authored Mar 5, 2024
1 parent fb31dc1 commit c6b6874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wetts/vits/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main():
world_size = int(os.environ.get('WORLD_SIZE', 1))
local_rank = int(os.environ.get('LOCAL_RANK', 0))
rank = int(os.environ.get('RANK', 0))
torch.torch.cuda.set_device(local_rank)
torch.cuda.set_device(local_rank)
dist.init_process_group("nccl")
if rank == 0:
logger = task.get_logger(hps.model_dir)
Expand Down

0 comments on commit c6b6874

Please sign in to comment.