Questions about 48k audio file train
Author: H4ppyB1rdCreated Sep 17, 2022Updated Sep 4, 2025
My terminal shows weird output when I started single-speaker training on audios of sampling rate = 48000hz, after I finished the last round of single-speaker training with fine results on the same audios resampled to default sampling rate 22050hz.
After I run train.py, the terminal throws this message:
- warning: audio amplitude out of range, auto clipped.
(I guess this wasn't the crucial problem?)
Then this message:
- max value is tensor(33528.1016)
- min value is tensor(-17584.6523)
- max value is tensor(25380.4434)
- min value is tensor(-38273.9297)
- max value is tensor(50959.3125)
- min value is tensor(-37103.1211)
- max value is tensor(37702.8320)
- min value is tensor(-33512.7734)
... for dozens of rows.
Then this:
- [INFO] ====> Epoch: 1
- /root/.local/lib/python3.7/site-packages/torch/optim/lr_scheduler.py:123: UserWarning: Detected call of
lr_scheduler.step()beforeoptimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order:optimizer.step()beforelr_scheduler.step(). Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate - "https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning)
Then the training shows weird losses like:
- [INFO] Train Epoch: 21 [0%]
- [INFO] [nan, nan, nan, nan, 2.0102107524871826, 208.6475067138672, 1600, 0.00019950059330492385]
each of the first four elements is nan. None of above happend with my previous 22050hz audio file training, so I'm wondering why and what I can do.(I've already modified json file in /configs to 48k sampling rate.) My apologies in advance if my questions were too basic.
Source: jaywalnut310/vits