Skip to content

Commit

Permalink
Merge pull request #844 from ShiromiyaG/fix-multi-gpu-again
Browse files Browse the repository at this point in the history
Fix Multi GPU train
  • Loading branch information
blaisewf authored Oct 27, 2024
2 parents eb74578 + 3069c1c commit 206b6a2
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 @@ -732,7 +732,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 206b6a2

Please sign in to comment.