Skip to content

Commit

Permalink
Merge pull request #806 from ShiromiyaG/fix-multi-gpu-train
Browse files Browse the repository at this point in the history
Fix multi GPU train
  • Loading branch information
Vidalnt authored Oct 11, 2024
2 parents 8e02e1c + ca73f08 commit b1e9ef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rvc/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,10 @@ def train_and_evaluate(
}

with torch.no_grad():
o, *_ = net_g.infer(*reference)
if hasattr(net_g, "module"):
o, *_ = net_g.module.infer(*reference)
else:
o, *_ = net_g.infer(*reference)
audio_dict = {f"gen/audio_{global_step:07d}": o[0, :, :]}

summarize(
Expand Down

0 comments on commit b1e9ef2

Please sign in to comment.