Add files using upload-large-folder tool
Browse files
hyperparams.yaml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HyperPyYAML for the WavLM/FocalCodec hybrid codec.
|
| 2 |
+
# Checkpoint variant: scratch at 6.25 Hz.
|
| 3 |
+
|
| 4 |
+
codec_sample_rate: 16000
|
| 5 |
+
codec_frequency_hz: 6.25
|
| 6 |
+
|
| 7 |
+
# The trained encoder and decoder are provided by the upstream FocalCodec model.
|
| 8 |
+
focalcodec_source: lucadellalib/focalcodec
|
| 9 |
+
focalcodec_model: focalcodec
|
| 10 |
+
focalcodec_config: lucadellalib/focalcodec_50hz
|
| 11 |
+
focalcodec: !apply:torch.hub.load
|
| 12 |
+
repo_or_dir: !ref <focalcodec_source>
|
| 13 |
+
model: !ref <focalcodec_model>
|
| 14 |
+
config: !ref <focalcodec_config>
|
| 15 |
+
trust_repo: True
|
| 16 |
+
pretrained: True
|
| 17 |
+
|
| 18 |
+
encoder: !new:hybridcodec.model.FocalCodecEncoder
|
| 19 |
+
model: !ref <focalcodec.encoder>
|
| 20 |
+
|
| 21 |
+
quantizer: !new:hybridcodec.model.SingleLayerResidualQuantizer
|
| 22 |
+
input_dim: 1024
|
| 23 |
+
bottleneck_dim: 32
|
| 24 |
+
codebook_size: 8192
|
| 25 |
+
semantic_hidden_sizes: [1024, 512, 256]
|
| 26 |
+
semantic_downscale_factors: [2, 2, 2]
|
| 27 |
+
residual_hidden_sizes: [512, 256]
|
| 28 |
+
residual_downscale_factors: [1, 1]
|
| 29 |
+
continuous_dropout: 0.2
|
| 30 |
+
use_post_norm: False
|
| 31 |
+
|
| 32 |
+
vocoder: !ref <focalcodec.decoder>
|
| 33 |
+
|
| 34 |
+
codec: !new:hybridcodec.model.HybridCodec
|
| 35 |
+
encoder: !ref <encoder>
|
| 36 |
+
quantizer: !ref <quantizer>
|
| 37 |
+
vocoder: !ref <vocoder>
|
| 38 |
+
|
| 39 |
+
modules:
|
| 40 |
+
codec: !ref <codec>
|
| 41 |
+
|
| 42 |
+
# Pretrainer uses this key as the relative filename under the source repo.
|
| 43 |
+
pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
|
| 44 |
+
loadables:
|
| 45 |
+
"weights/quantizer_scratch_6_25hz": !ref <quantizer>
|
weights/quantizer_scratch_6_25hz.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e77928333169086e358c322ed85167374accf35e464c8060a678248ac7d21e3
|
| 3 |
+
size 196949684
|