Spaces:
Running
Running
Update src/infer_pack/predictor/RMVPE.py
Browse files351 unmodified lines352353354355356357351 unmodified linesdef mel2hidden(self, mel):with torch.no_grad():n_frames = mel.shape[-1]mel = F.pad(mel, (0, 32 * ((n_frames - 1) // 32 + 1) - n_frames), mode="reflect")351 unmodified lines352353354355356357358351 unmodified linesdef mel2hidden(self, mel):with torch.no_grad():n_frames = mel.shape[-1]mel = mel.float() # Приведение к float32 перед паддингомmel = F.pad(mel, (0, 32 * ((n_frames - 1) // 32 + 1) - n_frames), mode="reflect")
src/infer_pack/predictor/RMVPE.py+1