Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
from utils.hparams import set_hparams, hparams


def check_pytorch_version():
version = torch.__version__
print(f"PyTorch version: {version}")
major, minor, _ = version.split('.')
if major != '1' and minor != '13':
raise RuntimeError(f"Unsupported PyTorch Version: {version}. need 1.13.x.")
else:
pass


def find_exp(exp):
if not (root_dir / 'checkpoints' / exp).exists():
for subdir in (root_dir / 'checkpoints').iterdir():
Expand Down Expand Up @@ -291,4 +301,5 @@ def nsf_hifigan(


if __name__ == '__main__':
check_pytorch_version()
main()