repo
stringlengths
1
99
file
stringlengths
13
215
code
stringlengths
12
59.2M
file_length
int64
12
59.2M
avg_line_length
float64
3.82
1.48M
max_line_length
int64
12
2.51M
extension_type
stringclasses
1 value
SpeechT5
SpeechT5-main/SpeechUT/speechut/modules/transformer_encoder.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- import math from typing import Dict...
15,939
38.651741
154
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/modules/transformer_layer.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- """ Modified from https://githu...
13,447
39.628399
137
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/criterions/speechut_criterion.py
# ---------------------------------------------------------------------------- # SpeechUT: Bridging Speech and Text with Hidden-Unit for Encoder-Decoder Based Speech-Text Pre-training (https://arxiv.org/abs/2210.03730) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechUT # Code based on fairseq: ht...
16,798
42.633766
165
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/criterions/ctc_ce.py
# ---------------------------------------------------------------------------- # SpeechUT: Bridging Speech and Text with Hidden-Unit for Encoder-Decoder Based Speech-Text Pre-training (https://arxiv.org/abs/2210.03730) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechUT # Code based on fairseq: ht...
16,818
39.527711
139
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/models/t5_transformer_lm.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
1,221
46
120
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/models/speechut_st.py
# ---------------------------------------------------------------------------- # SpeechUT: Bridging Speech and Text with Hidden-Unit for Encoder-Decoder Based Speech-Text Pre-training (https://arxiv.org/abs/2210.03730) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechUT # Code based on fairseq: ht...
8,484
37.220721
139
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/models/speechut_asr.py
# ---------------------------------------------------------------------------- # SpeechUT: Bridging Speech and Text with Hidden-Unit for Encoder-Decoder Based Speech-Text Pre-training (https://arxiv.org/abs/2210.03730) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechUT # Code based on fairseq: ht...
6,148
36.042169
139
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/models/speechut.py
# ---------------------------------------------------------------------------- # SpeechUT: Bridging Speech and Text with Hidden-Unit for Encoder-Decoder Based Speech-Text Pre-training (https://arxiv.org/abs/2210.03730) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechUT # Code based on fairseq: ht...
30,137
37.343511
156
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/data/hubert_dataset.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- import itertools import logging imp...
23,530
38.349498
218
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/data/concat_dataset.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- import bisect import numpy as np f...
4,937
36.984615
86
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/data/language_trible_dataset.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- import logging import numpy as np i...
25,659
37.298507
115
py
SpeechT5
SpeechT5-main/SpeechUT/speechut/tasks/joint_sc2t_pretrain.py
# ---------------------------------------------------------------------------- # SpeechUT: Bridging Speech and Text with Hidden-Unit for Encoder-Decoder Based Speech-Text Pre-training (https://arxiv.org/abs/2210.03730) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechUT # Code based on fairseq: ht...
40,295
39.095522
156
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/sequence_generator.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
45,330
40.93432
143
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/criterions/text_pretrain_criterion.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
6,099
41.068966
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/criterions/speech_to_text_loss.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
17,789
36.37395
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/criterions/speech_pretrain_criterion.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
11,168
40.675373
131
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/criterions/text_to_speech_loss.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
18,153
41.415888
141
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/criterions/speecht5_criterion.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
22,049
48.439462
142
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/t5_transformer_lm.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
1,266
47.730769
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/speecht5.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
64,615
43.624309
266
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/text_encoder_prenet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
1,735
36.73913
129
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/text_decoder_postnet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
3,653
37.87234
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/speech_decoder_postnet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
2,779
35.103896
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/multihead_attention.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
21,269
39.669216
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/speech_decoder_prenet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
4,679
41.162162
155
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/encoder.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
15,169
38.816273
143
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/speech_encoder_prenet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
13,801
35.805333
137
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/transformer_layer.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
15,992
37.817961
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/decoder.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
12,578
37.704615
143
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/speech_encoder_postnet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
4,765
37.128
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/text_decoder_prenet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
4,458
33.565891
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/models/modules/speaker_decoder_postnet.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
7,133
35.030303
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/text_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
17,637
35.976939
151
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/speech_to_class_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
8,885
32.787072
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/speech_to_speech_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
10,528
36.204947
160
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/text_to_speech_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
11,956
35.01506
160
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/multitask_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
10,822
39.68797
169
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/speech_to_text_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
9,259
33.169742
120
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/data/speech_dataset.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
17,870
36.465409
160
py
SpeechT5
SpeechT5-main/SpeechT5/speecht5/tasks/speecht5.py
# -------------------------------------------------------- # SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing (https://arxiv.org/abs/2110.07205) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechT5 # Copyright (c) 2021 Microsoft # Licensed under The MIT License [s...
27,929
38.843081
158
py
SpeechT5
SpeechT5-main/SpeechT5/scripts/generate_class.py
import ast import logging import os import sys from argparse import Namespace import numpy as np import torch from fairseq import checkpoint_utils, options, tasks, utils from fairseq.dataclass.utils import convert_namespace_to_omegaconf from fairseq.logging import progress_bar from omegaconf import DictConfig def ma...
5,398
34.058442
116
py
SpeechT5
SpeechT5-main/SpeechT5/scripts/generate_speech.py
import ast import logging import os import os.path as op import sys from argparse import Namespace import numpy as np import torch from fairseq import checkpoint_utils, options, tasks, utils from fairseq.dataclass.utils import convert_namespace_to_omegaconf from fairseq.logging import progress_bar from omegaconf impor...
7,407
36.04
183
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/squence_generator.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
43,081
40.867833
143
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/criterions/ctc_ce.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
16,148
38.874074
127
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/criterions/speech2c_criterion.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
11,769
43.923664
185
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/speech2c_asr.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
10,732
37.747292
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/t5_transformer_lm.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
1,221
46
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/speech2c.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
11,627
35.111801
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/modules/multihead_attention.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
13,608
38.792398
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/modules/relative_pos_enc.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
1,328
35.916667
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/modules/transformer_decoder.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
18,438
36.940329
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/modules/transformer_encoder.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
9,739
33.910394
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/models/modules/transformer_decoder_layer.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
8,912
40.263889
120
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/data/speech2c_dataset.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
5,370
35.787671
140
py
SpeechT5
SpeechT5-main/Speech2C/speech2c/tasks/speech2c_pretraining.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
3,412
36.097826
120
py
SpeechT5
SpeechT5-main/SpeechLM/modules.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
81,313
37.157672
161
py
SpeechT5
SpeechT5-main/SpeechLM/SpeechLM.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
26,781
39.092814
234
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/generate_unit.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
15,124
35.622276
180
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/unit_generator.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
2,589
37.656716
134
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/infer.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
17,255
34.433265
145
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/learned_positional_embedding.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- """ Modified from https://github...
2,654
37.478261
119
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/multihead_attention.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
13,917
38.879656
120
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/relative_pos_enc.py
# -------------------------------------------------------- # Pre-Training Transformer Decoder for End-to-End ASR Model with Unpaired Speech Data (https://arxiv.org/abs/2203.17113) # Github source: https://github.com/microsoft/SpeechT5/tree/main/Speech2C # Copyright (c) 2022 Microsoft # Licensed under The MIT License [s...
1,328
35.916667
120
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/transformer_decoder.py
# -------------------------------------------------------- # The YiTrans End-to-End Speech Translation System for IWSLT 2022 Offline Shared Task (https://arxiv.org/abs/2206.05777) # Github source: https://github.com/microsoft/SpeechT5/tree/main/YiTrans # Copyright (c) 2022 Microsoft # Licensed under The MIT License [se...
20,499
36.614679
133
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/w2v_encoder.py
# -------------------------------------------------------- # The YiTrans End-to-End Speech Translation System for IWSLT 2022 Offline Shared Task (https://arxiv.org/abs/2206.05777) # Github source: https://github.com/microsoft/SpeechT5/tree/main/YiTrans # Copyright (c) 2022 Microsoft # Licensed under The MIT License [se...
10,032
34.327465
120
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/transformer_encoder.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
16,215
39.138614
154
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/modules/transformer_layer.py
# -------------------------------------------------------- # Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] # Based on fairseq code bases # https://github.com/facebookresearch/fairseq # -------------------------------------------------------- """ Modified from https://github...
13,466
39.809091
137
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/criterions/speechlm_criterion.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
14,876
41.144476
143
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/criterions/fasttext2unit_loss.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
7,248
38.82967
114
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/models/fasttext2unit.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
9,903
42.629956
114
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/models/speechlm.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
27,019
36.475728
150
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/models/speechlm_st.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
10,635
38.539033
114
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data_process/get_t2u_manifest.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
4,933
40.116667
114
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data_process/covost2/prepare_covost_data.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
10,117
33.182432
148
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data_process/covost2/mp3_to_wav.py
import argparse from tqdm import tqdm from pydub import AudioSegment import torchaudio import os def mp3_convert_wav(mp3_file, wav_file): try: sound = AudioSegment.from_mp3(mp3_file) sound=sound.set_frame_rate(16000) sound=sound.set_channels(1) sound=sound.set_sample_width(2) ...
1,319
29.697674
79
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data/text_to_unit_dataset.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
10,859
35.938776
114
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data/hubert_dataset.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
23,789
38.65
218
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data/concat_dataset.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
5,196
38.371212
114
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/data/language_trible_dataset.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
25,918
37.56994
115
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/tasks/joint_sc2t_pretrain.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
39,126
39.048106
156
py
SpeechT5
SpeechT5-main/SpeechLM/speechlm/tasks/fast_text_to_unit.py
# ---------------------------------------------------------------------------- # SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data (https://arxiv.org/abs/2209.15329) # Github source: https://github.com/microsoft/SpeechT5/tree/main/SpeechLM # Code based on fairseq: https://github.com/facebookresearch/fai...
7,313
40.794286
138
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/utils.py
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import cv2 import torch import random import numpy as np from typing import Dict, List, Optional, Tuple def load_video(pat...
10,068
32.675585
143
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/sequence_generator.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
39,760
39.203236
129
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/infer_s2s.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
12,213
36.931677
129
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/criterions/vathubert_criterion.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
19,530
46.753056
170
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/models/resnet.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
6,509
36.630058
129
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/models/utils.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
10,431
33.543046
143
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/models/vathubert.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
34,915
39.981221
234
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/models/decoder.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
8,589
33.777328
129
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/models/vathubert_asr.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
17,027
34.327801
129
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/data/texthubert_dataset.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
9,995
32.209302
174
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/data/audiohubert_dataset.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
19,714
37.656863
209
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/data/onlyaudiohubert_dataset.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
16,493
36.743707
209
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/data/utils.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
10,430
33.654485
143
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/data/vathubert_dataset.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
22,045
40.517891
216
py
SpeechT5
SpeechT5-main/VATLM/vat_hubert/vathubert/tasks/vathubert_pretraining.py
# ---------------------------------------------------------------------------- # VatLM: Visual-Audio-Text Pre-Training with Unified Masked Prediction for Speech Representation Learning # Github source: https://github.com/microsoft/SpeechT5/tree/main/VATLM # Code based on fairseq: https://github.com/facebookresearch/fa...
35,753
40.381944
188
py
tagan
tagan-master/test.py
import os import argparse import fastText from PIL import Image import cv2 import numpy as np import torch import torchvision.transforms as transforms from torchvision.utils import save_image from model import Generator from data import split_sentence_into_words parser = argparse.ArgumentParser() parser.add_argumen...
3,277
35.831461
159
py
tagan
tagan-master/model.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def init_weights(m): if isinstance(m, nn.Conv2d) or isinstance(m, nn.Linear): if m.weight.requires_grad: m.weight.data.normal_(std=0.02) if m.bias is not None and m.bias.requires_grad: m....
8,931
32.961977
103
py
tagan
tagan-master/data.py
import os import numpy as np from PIL import Image import nltk from nltk.tokenize import RegexpTokenizer import torch import torch.utils.data as data import torchvision.transforms as transforms import torchfile def split_sentence_into_words(sentence): tokenizer = RegexpTokenizer(r'\w+') return tokenizer.tok...
5,850
36.748387
107
py
tagan
tagan-master/train.py
import os import argparse import visdom import torch import torch.nn.functional as F from torch.utils.data import DataLoader import torch.optim.lr_scheduler as lr_scheduler import torchvision.transforms as transforms from model import Generator, Discriminator from data import ConvertCapVec, ReadFromVec parser = arg...
8,210
39.648515
159
py