repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
interactive-image2video-synthesis
interactive-image2video-synthesis-main/utils/general.py
import torch import os import subprocess import logging import yaml import logging.config import inspect from os import walk import numpy as np import coloredlogs import multiprocessing as mp from threading import Thread from queue import Queue from collections import abc import cv2 from torch import nn # import kornia...
10,061
33.108475
139
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/utils/eval_models.py
import argparse from os import path import yaml import os from experiments import select_experiment def create_dir_structure(model_name, experiment, base_dir): subdirs = ["ckpt", "config", "generated", "log"] structure = {subdir: path.join(base_dir,experiment,subdir,model_name) for subdir in subdirs} if...
2,819
39.285714
133
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/flow_dataset.py
from os import path import numpy as np import pickle from copy import deepcopy import torch from torch.nn import functional as F from torch.utils.data import Dataset from torchvision import transforms as tt from tqdm import tqdm import cv2 from natsort import natsorted import os from glob import glob from utils.gener...
32,596
41.947299
192
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/helper_functions.py
import cv2 def preprocess_image(img,swap_channels=False): """ :param img: numpy array of shape (H,W,3) :param swap_channels: True, if channelorder is BGR :return: """ if swap_channels: img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB) # this seems to be possible as flownet2 outputs only ...
456
24.388889
90
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/base_dataset.py
from functools import partial from itertools import chain import torch from torch.nn import functional as F from torch.utils.data import Dataset from torchvision import transforms as T from torchvision.transforms import functional as FT from PIL import Image import numpy as np from abc import abstractmethod import cv2 ...
36,611
46.119691
255
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/human36m_preprocess.py
#code heaviliy borrowed from https://github.com/anibali/h36m-fetch from subprocess import call from os import path, makedirs import hashlib from tqdm import tqdm import configparser import requests import tarfile from glob import glob BASE_URL = 'http://vision.imar.ro/human3.6m/filebrowser.php' subjects = [ ('S...
4,081
27.347222
86
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/__init__.py
from data.base_dataset import BaseDataset from torchvision import transforms as tt from data.flow_dataset import PlantDataset, IperDataset,Human36mDataset, VegetationDataset, LargeVegetationDataset, TaichiDataset # add key value pair for datasets here, all datasets should inherit from base_dataset __datasets__ = {"Ip...
2,041
29.029412
129
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/prepare_dataset.py
import os import cv2 import re import argparse import torch import numpy as np from os import path, makedirs import pickle from tqdm import tqdm from glob import glob from natsort import natsorted import yaml import multiprocessing as mp from multiprocessing import Process from functools import partial from dotmap impo...
23,809
36.974482
185
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/samplers.py
import numpy as np from torch.utils.data import BatchSampler,RandomSampler,SequentialSampler, WeightedRandomSampler from data.base_dataset import BaseDataset from data.flow_dataset import PlantDataset class SequenceSampler(BatchSampler): def __init__(self, dataset:BaseDataset, batch_size, shuffle, drop_last): ...
5,888
38.26
158
py
interactive-image2video-synthesis
interactive-image2video-synthesis-main/data/download_taichi.py
import numpy as np import pandas as pd import imageio import os import subprocess from multiprocessing import Pool from itertools import cycle import warnings import glob import time from tqdm import tqdm from argparse import ArgumentParser from skimage import img_as_ubyte from skimage.transform import resize warnings...
4,549
40.363636
121
py
FOLD-R-PP
FOLD-R-PP-main/main.py
from foldrpp import * from datasets import * from timeit import default_timer as timer from datetime import timedelta def main(): # model, data = acute() # model, data = autism() # model, data = breastw() model, data = cars() # model, data = credit() # model, data = heart() # model, data =...
1,983
31.52459
99
py
FOLD-R-PP
FOLD-R-PP-main/example.py
# python3 -m pip install foldrpp from foldrpp import * from timeit import default_timer as timer from datetime import timedelta def main(): attrs = ['age', 'workclass', 'fnlwgt', 'education', 'education_num', 'marital_status', 'occupation', 'relationship', 'race', 'sex', 'capital_gain', 'capital_loss', 'ho...
1,616
32.6875
120
py
FOLD-R-PP
FOLD-R-PP-main/translate_utils.py
# This file only provide two functions "translate_rules" and "translate_proof" # if you need to use these two functions: # ------------------------------------------------------------ # from translate_utils import translate_rules, translate_proof # print(translate_rules(model, file='path to template')) # for x in X: # ...
15,088
35.982843
107
py
FOLD-R-PP
FOLD-R-PP-main/scasp_utils.py
import random import subprocess import tempfile from foldrpp import * from datasets import * def load_data(file, numerics, amount=-1): f = open(file, 'r') attr_idx, num_idx = [], [] ret, i, k = [], 0, 0 attrs = [] for line in f.readlines(): line = line.strip('\n').split(',') if i =...
4,496
28.392157
109
py
FOLD-R-PP
FOLD-R-PP-main/algo.py
import math def evaluate(rule, x): def __eval(i, r, v): if i < -1: return __eval(-2 - i, r, v) ^ 1 if isinstance(v, str): if r == '==': return x[i] == v elif r == '!=': return x[i] != v else: return Fa...
7,241
26.225564
87
py
FOLD-R-PP
FOLD-R-PP-main/utils.py
import random from algo import evaluate, justify_one def load_data(file, attrs, label, numerics, pos='', amount=-1): f = open(file, 'r') attr_idx, num_idx, lab_idx = [], [], -1 ret, i, k = [], 0, 0 head = '' for line in f.readlines(): if i == 0: line = line.strip('\n').split(',...
8,536
30.973783
129
py
FOLD-R-PP
FOLD-R-PP-main/foldrpp.py
from utils import load_data, split_xy, split_X_by_Y, \ split_data, get_scores, justify_data, decode_rules, proof_tree, zip_rule, simplify_rule from algo import fold, predict, classify, flatten_rules, justify, rebut import pickle class Classifier: def __init__(self, attrs=None, numeric=None, label=None, pos=No...
3,395
31.653846
98
py
FOLD-R-PP
FOLD-R-PP-main/datasets.py
from foldrpp import Classifier def acute(): attrs = ['a1', 'a2', 'a3', 'a4', 'a5', 'a6'] nums = ['a1'] model = Classifier(attrs=attrs, numeric=nums, label='label', pos='yes') data = model.load_data('data/acute/acute.csv') print('\n% acute dataset', len(data), len(data[0])) return model, data ...
29,365
124.495726
17,642
py
PlosCB2013
PlosCB2013-master/PlosCB2013_func.py
#This script is used to generate the set of representative positive Boolean function up to n=7 #Functions are generated level by level. Functions of a given level l have l terms/clauses in their DNF/CNF #For n=6 everything can be run locally, however, for n=7 one needs a cluster or a very powerful machine import numpy ...
7,138
27.78629
113
py
PlosCB2013
PlosCB2013-master/PlosCB2013_biophy.py
# Script mostly written by Romain Caze some part are updated from Andrew Davidson code snippets # last modification:26/03/13. from neuron import nrn, h, hclass, run, init import matplotlib.pyplot as plt import numpy as np # Wrappers from Andrew Davidson neuronpy modified and commented by Romain Caze # They enable to i...
10,507
30.842424
137
py
TensorFlowTTS
TensorFlowTTS-master/setup.py
"""Setup Tensorflow TTS libarary.""" import os import sys from distutils.version import LooseVersion import pip from setuptools import find_packages, setup if LooseVersion(sys.version) < LooseVersion("3.6"): raise RuntimeError( "TensorFlow TTS requires python >= 3.6, " "but your Python version is...
3,199
31.323232
140
py
TensorFlowTTS
TensorFlowTTS-master/examples/tacotron2/decode_tacotron2.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
5,594
31.52907
87
py
TensorFlowTTS
TensorFlowTTS-master/examples/tacotron2/tacotron_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
10,099
34.438596
112
py
TensorFlowTTS
TensorFlowTTS-master/examples/tacotron2/export_align.py
import os import shutil from tqdm import tqdm import argparse from scipy.ndimage import zoom from skimage.data import camera import numpy as np from scipy.spatial.distance import cdist def safemkdir(dirn): if not os.path.isdir(dirn): os.mkdir(dirn) from pathlib import Path def duration_to_alignment(i...
4,850
27.704142
101
py
TensorFlowTTS
TensorFlowTTS-master/examples/tacotron2/train_tacotron2.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
18,412
33.807183
96
py
TensorFlowTTS
TensorFlowTTS-master/examples/tacotron2/extract_postnets.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
8,592
33.649194
96
py
TensorFlowTTS
TensorFlowTTS-master/examples/tacotron2/extract_duration.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
8,291
33.987342
96
py
TensorFlowTTS
TensorFlowTTS-master/examples/multiband_melgan_hf/train_multiband_melgan_hf.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
19,162
33.40395
137
py
TensorFlowTTS
TensorFlowTTS-master/examples/multiband_melgan_hf/decode_mb_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
4,752
31.554795
143
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech/train_fastspeech.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
13,591
33.762148
95
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech/decode_fastspeech.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
5,070
30.69375
87
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech/fastspeech_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
8,659
31.80303
88
py
TensorFlowTTS
TensorFlowTTS-master/examples/mfa_extraction/run_mfa.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
1,714
30.759259
130
py
TensorFlowTTS
TensorFlowTTS-master/examples/mfa_extraction/fix_mismatch.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
4,213
33.540984
119
py
TensorFlowTTS
TensorFlowTTS-master/examples/mfa_extraction/txt_grid_parser.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
5,040
31.947712
109
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech2_libritts/fastspeech2_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
9,146
34.59144
93
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech2_libritts/train_fastspeech2.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
17,059
33.816327
96
py
TensorFlowTTS
TensorFlowTTS-master/examples/melgan/train_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
16,989
31.48566
98
py
TensorFlowTTS
TensorFlowTTS-master/examples/melgan/audio_mel_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
6,057
31.223404
100
py
TensorFlowTTS
TensorFlowTTS-master/examples/melgan/decode_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
4,458
30.401408
98
py
TensorFlowTTS
TensorFlowTTS-master/examples/melgan_stft/train_melgan_stft.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
13,562
32.655087
98
py
TensorFlowTTS
TensorFlowTTS-master/examples/cpptflite/demo/text2ids.py
import sys import re eng_pat = re.compile("[a-zA-Z]+") if __name__ == "__main__": argvs = sys.argv if (len(argvs) != 3): print("usage: python3 {} mapper.json text".format(argvs[0])) else: from tensorflow_tts.inference import AutoProcessor mapper_json = argvs[1] processor =...
657
27.608696
78
py
TensorFlowTTS
TensorFlowTTS-master/examples/multiband_melgan/train_multiband_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
18,014
33.379771
112
py
TensorFlowTTS
TensorFlowTTS-master/examples/multiband_melgan/decode_mb_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
4,752
31.554795
143
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech2/decode_fastspeech2.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
5,326
30.708333
87
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech2/fastspeech2_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
8,662
33.376984
88
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech2/extractfs_postnets.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
5,053
30.006135
88
py
TensorFlowTTS
TensorFlowTTS-master/examples/fastspeech2/train_fastspeech2.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
14,446
33.562201
96
py
TensorFlowTTS
TensorFlowTTS-master/examples/hifigan/train_hifigan.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team # # 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 applicabl...
10,464
31.101227
88
py
TensorFlowTTS
TensorFlowTTS-master/examples/parallel_wavegan/train_parallel_wavegan.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
15,699
32.052632
126
py
TensorFlowTTS
TensorFlowTTS-master/examples/parallel_wavegan/decode_parallel_wavegan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
4,634
31.87234
143
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/__init__.py
__version__ = "0.0"
20
9.5
19
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/base_model.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
1,131
32.294118
74
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/parallel_wavegan.py
# -*- coding: utf-8 -*- # Copyright 2020 The TensorFlowTTS Team and Tomoki Hayashi (@kan-bayashi) # # 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/LICENS...
18,663
32.508079
112
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 The MelGAN Authors and Minh Nguyen (@dathudeptrai) # # 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 ...
17,807
34.687375
106
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/tacotron2.py
# -*- coding: utf-8 -*- # Copyright 2020 The Tacotron-2 Authors, Minh Nguyen (@dathudeptrai), Eren Gölge (@erogol) and Jae Yoo (@jaeyoo) # # 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 # # ...
37,180
34.716619
112
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/mb_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 The Multi-band MelGAN Authors , Minh Nguyen (@dathudeptrai) and Tomoki Hayashi (@kan-bayashi) # # 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 # # ...
6,890
34.704663
110
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/hifigan.py
# -*- coding: utf-8 -*- # Copyright 2020 The Hifigan Authors and TensorflowTTS Team. # # 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 # # Unl...
13,272
33.928947
91
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/__init__.py
from tensorflow_tts.models.base_model import BaseModel from tensorflow_tts.models.fastspeech import TFFastSpeech from tensorflow_tts.models.fastspeech2 import TFFastSpeech2 from tensorflow_tts.models.melgan import ( TFMelGANDiscriminator, TFMelGANGenerator, TFMelGANMultiScaleDiscriminator, ) from tensorflow...
778
40
81
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/fastspeech2.py
# -*- coding: utf-8 -*- # Copyright 2020 The FastSpeech2 Authors and Minh Nguyen (@dathudeptrai) # # 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...
12,399
38.616613
100
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/models/fastspeech.py
# -*- coding: utf-8 -*- # Copyright 2020 The FastSpeech Authors, The HuggingFace Inc. team and Minh Nguyen (@dathudeptrai) # # 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.a...
33,971
36.372937
102
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/synpaflex.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
4,341
31.402985
86
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/ljspeechu.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
6,368
24.173913
164
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/base_processor.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
8,120
34.00431
93
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/jsut.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
4,262
25.153374
95
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/ljspeech.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
5,362
23.049327
95
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/libritts.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
4,067
31.544
86
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/kss.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
4,086
32.227642
86
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/__init__.py
from tensorflow_tts.processor.base_processor import BaseProcessor from tensorflow_tts.processor.ljspeech import LJSpeechProcessor from tensorflow_tts.processor.baker import BakerProcessor from tensorflow_tts.processor.kss import KSSProcessor from tensorflow_tts.processor.libritts import LibriTTSProcessor from tensorfl...
566
50.545455
72
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/baker.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
17,400
24.477306
91
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/processor/thorsten.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
4,298
31.568182
86
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/bin/__init__.py
0
0
0
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/bin/preprocess.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
20,390
33.619694
127
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/datasets/audio_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
4,007
30.069767
87
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/datasets/abstract_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
2,320
28.75641
77
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/datasets/mel_dataset.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
3,847
29.0625
82
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/datasets/__init__.py
from tensorflow_tts.datasets.abstract_dataset import AbstractDataset from tensorflow_tts.datasets.audio_dataset import AudioDataset from tensorflow_tts.datasets.mel_dataset import MelDataset
191
47
68
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/parallel_wavegan.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
3,037
33.134831
74
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/base_config.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team. # # 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 applicab...
1,121
33
75
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
3,279
34.268817
74
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/tacotron2.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
4,436
38.616071
85
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/mb_melgan.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
1,330
35.972222
83
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/hifigan.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorflowTTS Team # # 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 applicabl...
3,114
33.230769
74
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/__init__.py
from tensorflow_tts.configs.base_config import BaseConfig from tensorflow_tts.configs.fastspeech import FastSpeechConfig from tensorflow_tts.configs.fastspeech2 import FastSpeech2Config from tensorflow_tts.configs.melgan import ( MelGANDiscriminatorConfig, MelGANGeneratorConfig, ) from tensorflow_tts.configs.mb...
753
38.684211
86
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/fastspeech2.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
1,416
35.333333
84
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/configs/fastspeech.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
6,082
37.745223
80
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/optimizers/gradient_accumulate.py
"""Gradient Accummlate for training TF2 custom training loop. Copy from https://github.com/OpenNMT/OpenNMT-tf/blob/master/opennmt/optimizers/utils.py. """ import re import tensorflow as tf class GradientAccumulator(object): """Gradient accumulation utility. When used with a distribution strategy, the accum...
3,193
34.88764
88
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/optimizers/adamweightdecay.py
# -*- coding: utf-8 -*- # Copyright 2019 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 # # Un...
6,854
37.511236
88
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/optimizers/__init__.py
from tensorflow_tts.optimizers.adamweightdecay import AdamWeightDecay, WarmUp from tensorflow_tts.optimizers.gradient_accumulate import GradientAccumulator
156
51.333333
77
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/number_norm.py
# -*- coding: utf-8 -*- # Copyright (c) 2017 Keith Ito # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
3,408
34.884211
79
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/korean.py
# -*- coding: utf-8 -*- # Copyright 2020 TensorFlowTTS Team, Jaehyoung Kim(@crux153) and Taehoon Kim(@carpedm20) # # 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...
12,706
22.975472
89
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/cleaners.py
# -*- coding: utf-8 -*- # Copyright (c) 2017 Keith Ito # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
3,815
30.278689
109
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/utils.py
# -*- coding: utf-8 -*- # Copyright 2019 Tomoki Hayashi # MIT License (https://opensource.org/licenses/MIT) """Utility functions.""" import fnmatch import os import re import tempfile from pathlib import Path import tensorflow as tf MODEL_FILE_NAME = "model.h5" CONFIG_FILE_NAME = "config.yml" PROCESSOR_FILE_NAME =...
3,053
30.163265
80
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/strategy.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
2,766
34.474359
83
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/decoder.py
# -*- coding: utf-8 -*- # Copyright 2020 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...
12,732
40.340909
93
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/outliers.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
1,293
30.560976
74
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/group_conv.py
# -*- coding: utf-8 -*- # This code is copy from https://github.com/tensorflow/tensorflow/pull/36773. """Group Convolution Modules.""" from tensorflow.python.framework import tensor_shape from tensorflow.python.keras import activations, constraints, initializers, regularizers from tensorflow.python.keras.engine.base_l...
23,944
41.989228
88
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/__init__.py
from tensorflow_tts.utils.cleaners import ( basic_cleaners, collapse_whitespace, convert_to_ascii, english_cleaners, expand_abbreviations, expand_numbers, lowercase, transliteration_cleaners, ) from tensorflow_tts.utils.decoder import dynamic_decode from tensorflow_tts.utils.griffin_lim ...
847
35.869565
136
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/griffin_lim.py
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
6,824
39.868263
88
py
TensorFlowTTS
TensorFlowTTS-master/tensorflow_tts/utils/weight_norm.py
# -*- coding: utf-8 -*- # Copyright 2019 The TensorFlow Probability Authors and Minh Nguyen (@dathudeptrai) # # 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/licen...
7,216
38.010811
102
py