Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
11655faf
Unverified
Commit
11655faf
authored
Mar 01, 2021
by
Patrick von Platen
Committed by
GitHub
Mar 01, 2021
Browse files
remove feature extraction config (#10457)
parent
0234de84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
src/transformers/models/wav2vec2/configuration_wav2vec2.py
src/transformers/models/wav2vec2/configuration_wav2vec2.py
+0
-4
No files found.
src/transformers/models/wav2vec2/configuration_wav2vec2.py
View file @
11655faf
...
@@ -92,8 +92,6 @@ class Wav2Vec2Config(PretrainedConfig):
...
@@ -92,8 +92,6 @@ class Wav2Vec2Config(PretrainedConfig):
Whether do apply `stable` layer norm architecture of the Transformer encoder. ``do_stable_layer_norm is
Whether do apply `stable` layer norm architecture of the Transformer encoder. ``do_stable_layer_norm is
True`` corresponds to applying layer norm before the attention layer, whereas ``do_stable_layer_norm is
True`` corresponds to applying layer norm before the attention layer, whereas ``do_stable_layer_norm is
False`` corresponds to applying layer norm after the attention layer.
False`` corresponds to applying layer norm after the attention layer.
freeze_feat_extract_train (:obj:`bool`, `optional`, defaults to :obj:`True`):
Whether to freeze the weights of the feature extractor when training.
apply_spec_augment (:obj:`bool`, `optional`, defaults to :obj:`True`):
apply_spec_augment (:obj:`bool`, `optional`, defaults to :obj:`True`):
Whether to apply *SpecAugment* data augmentation to the outputs of the feature extractor. For reference see
Whether to apply *SpecAugment* data augmentation to the outputs of the feature extractor. For reference see
`SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition
`SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition
...
@@ -160,7 +158,6 @@ class Wav2Vec2Config(PretrainedConfig):
...
@@ -160,7 +158,6 @@ class Wav2Vec2Config(PretrainedConfig):
num_conv_pos_embeddings
=
128
,
num_conv_pos_embeddings
=
128
,
num_conv_pos_embedding_groups
=
16
,
num_conv_pos_embedding_groups
=
16
,
do_stable_layer_norm
=
False
,
do_stable_layer_norm
=
False
,
freeze_feat_extract_train
=
True
,
apply_spec_augment
=
True
,
apply_spec_augment
=
True
,
mask_time_prob
=
0.05
,
mask_time_prob
=
0.05
,
mask_time_length
=
10
,
mask_time_length
=
10
,
...
@@ -199,7 +196,6 @@ class Wav2Vec2Config(PretrainedConfig):
...
@@ -199,7 +196,6 @@ class Wav2Vec2Config(PretrainedConfig):
self
.
initializer_range
=
initializer_range
self
.
initializer_range
=
initializer_range
self
.
vocab_size
=
vocab_size
self
.
vocab_size
=
vocab_size
self
.
do_stable_layer_norm
=
do_stable_layer_norm
self
.
do_stable_layer_norm
=
do_stable_layer_norm
self
.
freeze_feat_extract_train
=
freeze_feat_extract_train
self
.
gradient_checkpointing
=
gradient_checkpointing
self
.
gradient_checkpointing
=
gradient_checkpointing
if
(
if
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment