python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/nets/nasnet/pnasnet_test.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/nets/nasnet/nasnet.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/nets/nasnet/nasnet_utils.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/deployment/model_deploy.py
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/deployment/__init__.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/deployment/model_deploy_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/preprocessing/preprocessing_factory.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/preprocessing/cifarnet_preprocessing.py
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/preprocessing/__init__.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/preprocessing/vgg_preprocessing.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/preprocessing/inception_preprocessing.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
DeepLearningExamples-master
TensorFlow/Detection/SSD/models/research/slim/preprocessing/lenet_preprocessing.py
# # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
DeepLearningExamples-master
TensorFlow/Detection/SSD/examples/SSD320_inference.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/setup.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/config.py
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/utils.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/generate.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/arguments.py
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/logger.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/common.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/distributed_utils.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/train.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/runtime/evaluate.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/model/glow.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/model/coupling.py
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/model/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/model/model.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/model/basic.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/model/utils.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/data/encoding.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/data/data_loader.py
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/data/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/data/transform.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/moflow/data/data_frame_parser.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
DeepLearningExamples-master
PyTorch/DrugDiscovery/MoFlow/scripts/data_preprocess.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/prepare_dataset.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/models.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/export.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/train.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/inference.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/hifigan/logging.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/hifigan/models.py
from .entrypoints import nvidia_hifigan
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/hifigan/__init__.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/hifigan/data_function.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/hifigan/arg_parser.py
# ***************************************************************************** # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/hifigan/entrypoints.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attention.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/model_jit.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/alignment.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/pitch_transform.py
# Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/transformer_jit.py
from .entrypoints import nvidia_fastpitch, nvidia_textprocessing_utils
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/__init__.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/extract_mels.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/data_function.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/model.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/loss_function.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/arg_parser.py
# Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/transformer.py
# ***************************************************************************** # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/entrypoints.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/fastpitch/attn_loss_function.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/tb_dllogger.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/split_lj.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/gpu_affinity.py
import amp_C import torch def apply_ema_decay(model, ema_model, decay): if not decay: return st = model.state_dict() add_module = hasattr(model, 'module') and not hasattr(ema_model, 'module') for k, v in ema_model.state_dict().items(): if add_module and not k.startswith('module.'): ...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/ema_utils.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/filter_warnings.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/audio_processing.py
""" BSD 3-Clause License Copyright (c) 2017, Prem Seetharaman All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/stft.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/utils.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/layers.py
import re _letters_and_numbers_re = re.compile( r"((?:[a-zA-Z]+[0-9]|[0-9]+[a-zA-Z])[a-zA-Z0-9']*)", re.IGNORECASE) _hardware_re = re.compile( '([0-9]+(?:[.,][0-9]+)?)(?:\s?)(tb|gb|mb|kb|ghz|mhz|khz|hz|mm)', re.IGNORECASE) _hardware_key = {'tb': 'terabyte', 'gb': 'gigabyte', '...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/letters_and_numbers.py
""" from https://github.com/keithito/tacotron """ import re import sys import urllib.request from pathlib import Path valid_symbols = [ 'AA', 'AA0', 'AA1', 'AA2', 'AE', 'AE0', 'AE1', 'AE2', 'AH', 'AH0', 'AH1', 'AH2', 'AO', 'AO0', 'AO1', 'AO2', 'AW', 'AW0', 'AW1', 'AW2', 'AY', 'AY0', 'AY1', 'AY2', 'B', 'CH', 'D...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/cmudict.py
import re _no_period_re = re.compile(r'(No[.])(?=[ ]?[0-9])') _percent_re = re.compile(r'([ ]?[%])') _half_re = re.compile('([0-9]½)|(½)') _url_re = re.compile(r'([a-zA-Z])\.(com|gov|org)') # List of (regular expression, replacement) pairs for abbreviations: _abbreviations = [(re.compile('\\b%s\\.' % x[0], re.IGNORE...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/abbreviations.py
""" adapted from https://github.com/keithito/tacotron """ import re import numpy as np from . import cleaners from .symbols import get_symbols from . import cmudict from .numerical import _currency_re, _expand_currency ######### # REGEX # ######### # Regular expression matching text enclosed in curly braces for enco...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/text_processing.py
from .cmudict import CMUDict cmudict = CMUDict()
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/__init__.py
""" adapted from https://github.com/keithito/tacotron """ import inflect import re _magnitudes = ['trillion', 'billion', 'million', 'thousand', 'hundred', 'm', 'b', 't'] _magnitudes_key = {'m': 'million', 'b': 'billion', 't': 'trillion'} _measurements = '(f|c|k|d|m)' _measurements_key = {'f': 'fahrenheit', ...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/numerical.py
""" from https://github.com/keithito/tacotron """ ''' Defines the set of symbols used in text input to the model. The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. ''' from .cm...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/symbols.py
""" adapted from https://github.com/keithito/tacotron """ ''' Cleaners are transformations that run over the input text at both training and eval time. Cleaners can be selected by passing a comma-delimited list of cleaner names as the "cleaners" hyperparameter. Some cleaners are English-specific. You'll typically wan...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/cleaners.py
import re _ampm_re = re.compile( r'([0-9]|0[0-9]|1[0-9]|2[0-3]):?([0-5][0-9])?\s*([AaPp][Mm]\b)') def _expand_ampm(m): matches = list(m.groups(0)) txt = matches[0] txt = txt if int(matches[1]) == 0 else txt + ' ' + matches[1] if matches[2][0].lower() == 'a': txt += ' a.m.' elif matche...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/datestime.py
import re from . import cmudict _letter_to_arpabet = { 'A': 'EY1', 'B': 'B IY1', 'C': 'S IY1', 'D': 'D IY1', 'E': 'IY1', 'F': 'EH1 F', 'G': 'JH IY1', 'H': 'EY1 CH', 'I': 'AY1', 'J': 'JH EY1', 'K': 'K EY1', 'L': 'EH1 L', 'M': 'EH1 M', 'N': 'EH1 N', 'O': 'OW1',...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/acronyms.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/unidecoder/replacements.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/unidecoder/__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/HiFiGAN/common/text/unidecoder/homoglyphs.py
# ***************************************************************************** # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/export_torchscript.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/prepare_dataset.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/models.py
# ***************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/train.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/inference.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/waveglow/data_function.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/waveglow/model.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/waveglow/denoiser.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/waveglow/loss_function.py
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/waveglow/arg_parser.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/hifigan/logging.py
import timer from collections import defaultdict class Metrics(defaultdict): # TODO Where to measure - gpu:0 or all gpus? def __init__(self, tb_keys=[], benchmark_epochs=10): super().__init__(float) # dll_tb_keys=['loss_gen', 'loss_discrim', 'loss_mel', 'took']: self.tb_keys = tb_k...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/hifigan/metrics.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/hifigan/models.py
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d, ConvTranspose2d, AvgPool2d from torch.nn.utils import weight_norm, remove_weight_norm, spectral_norm from common.utils import init_weights, get_padding, print_once LRELU_SLOPE = 0.1 cl...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/hifigan/models_ch_last_.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/hifigan/data_function.py
import torch from .stft import STFT class Denoiser(torch.nn.Module): """ Removes model bias from audio produced with hifigan """ def __init__(self, hifigan, filter_length=1024, n_overlap=4, win_length=1024, mode='zeros'): super(Denoiser, self).__init__() self.stft = STFT(filt...
DeepLearningExamples-master
PyTorch/SpeechSynthesis/FastPitch/hifigan/denoiser.py