sanchit-gandhi
commited on
Commit
·
9a01010
1
Parent(s):
ad38f45
Add weights and configs
Browse files- feature_extractor/preprocessor_config.json +22 -0
- model_index.json +32 -0
- scheduler/scheduler_config.json +19 -0
- text_encoder/config.json +35 -0
- text_encoder/model.safetensors +3 -0
- text_encoder/pytorch_model.bin +3 -0
- tokenizer/merges.txt +0 -0
- tokenizer/special_tokens_map.json +15 -0
- tokenizer/tokenizer.json +0 -0
- tokenizer/tokenizer_config.json +20 -0
- tokenizer/vocab.json +0 -0
- unet/config.json +69 -0
- unet/diffusion_pytorch_model.bin +3 -0
- unet/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +28 -0
- vae/diffusion_pytorch_model.bin +3 -0
- vae/diffusion_pytorch_model.safetensors +3 -0
- vocoder/config.json +50 -0
- vocoder/model.safetensors +3 -0
- vocoder/pytorch_model.bin +3 -0
feature_extractor/preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chunk_length_s": 10,
|
3 |
+
"feature_extractor_type": "ClapFeatureExtractor",
|
4 |
+
"feature_size": 64,
|
5 |
+
"fft_window_size": 1024,
|
6 |
+
"frequency_max": 14000,
|
7 |
+
"frequency_min": 50,
|
8 |
+
"hop_length": 480,
|
9 |
+
"max_length_s": 10,
|
10 |
+
"n_fft": 1024,
|
11 |
+
"nb_frequency_bins": 513,
|
12 |
+
"nb_max_frames": 1000,
|
13 |
+
"nb_max_samples": 480000,
|
14 |
+
"padding": "repeatpad",
|
15 |
+
"padding_side": "right",
|
16 |
+
"padding_value": 0.0,
|
17 |
+
"processor_class": "ClapProcessor",
|
18 |
+
"return_attention_mask": false,
|
19 |
+
"sampling_rate": 48000,
|
20 |
+
"top_db": null,
|
21 |
+
"truncation": "rand_trunc"
|
22 |
+
}
|
model_index.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "MusicLDMPipeline",
|
3 |
+
"_diffusers_version": "0.20.0.dev0",
|
4 |
+
"feature_extractor": [
|
5 |
+
"transformers",
|
6 |
+
"ClapFeatureExtractor"
|
7 |
+
],
|
8 |
+
"scheduler": [
|
9 |
+
"diffusers",
|
10 |
+
"DDIMScheduler"
|
11 |
+
],
|
12 |
+
"text_encoder": [
|
13 |
+
"transformers",
|
14 |
+
"ClapModel"
|
15 |
+
],
|
16 |
+
"tokenizer": [
|
17 |
+
"transformers",
|
18 |
+
"RobertaTokenizerFast"
|
19 |
+
],
|
20 |
+
"unet": [
|
21 |
+
"diffusers",
|
22 |
+
"UNet2DConditionModel"
|
23 |
+
],
|
24 |
+
"vae": [
|
25 |
+
"diffusers",
|
26 |
+
"AutoencoderKL"
|
27 |
+
],
|
28 |
+
"vocoder": [
|
29 |
+
"transformers",
|
30 |
+
"SpeechT5HifiGan"
|
31 |
+
]
|
32 |
+
}
|
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "DDIMScheduler",
|
3 |
+
"_diffusers_version": "0.20.0.dev0",
|
4 |
+
"beta_end": 0.0195,
|
5 |
+
"beta_schedule": "scaled_linear",
|
6 |
+
"beta_start": 0.0015,
|
7 |
+
"clip_sample": false,
|
8 |
+
"clip_sample_range": 1.0,
|
9 |
+
"dynamic_thresholding_ratio": 0.995,
|
10 |
+
"num_train_timesteps": 1000,
|
11 |
+
"prediction_type": "epsilon",
|
12 |
+
"rescale_betas_zero_snr": false,
|
13 |
+
"sample_max_value": 1.0,
|
14 |
+
"set_alpha_to_one": false,
|
15 |
+
"steps_offset": 1,
|
16 |
+
"thresholding": false,
|
17 |
+
"timestep_spacing": "leading",
|
18 |
+
"trained_betas": null
|
19 |
+
}
|
text_encoder/config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"ClapModel"
|
4 |
+
],
|
5 |
+
"audio_config": {
|
6 |
+
"depths": [
|
7 |
+
2,
|
8 |
+
2,
|
9 |
+
12,
|
10 |
+
2
|
11 |
+
],
|
12 |
+
"fusion_num_hidden_layers": 2,
|
13 |
+
"hidden_size": 1024,
|
14 |
+
"model_type": "clap_audio_model",
|
15 |
+
"patch_embeds_hidden_size": 128,
|
16 |
+
"projection_hidden_size": 768
|
17 |
+
},
|
18 |
+
"hidden_size": 768,
|
19 |
+
"initializer_factor": 1.0,
|
20 |
+
"logit_scale_init_value": 14.285714285714285,
|
21 |
+
"model_type": "clap",
|
22 |
+
"num_hidden_layers": 16,
|
23 |
+
"projection_dim": 512,
|
24 |
+
"projection_hidden_act": "relu",
|
25 |
+
"text_config": {
|
26 |
+
"classifier_dropout": null,
|
27 |
+
"fusion_hidden_size": 768,
|
28 |
+
"fusion_num_hidden_layers": 2,
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"model_type": "clap_text_model",
|
31 |
+
"projection_hidden_size": 768
|
32 |
+
},
|
33 |
+
"torch_dtype": "float64",
|
34 |
+
"transformers_version": "4.32.0.dev0"
|
35 |
+
}
|
text_encoder/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae69f555e7f1a2333b8e684c9fa8233f44a47bbadf76d484f941b74f74d2753d
|
3 |
+
size 776327432
|
text_encoder/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc6221ac36a06e7545660f45fd4ecfc0c8662b63f27c5c64e7bfded3f1df89e5
|
3 |
+
size 776444665
|
tokenizer/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer/special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer/tokenizer_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": "<s>",
|
4 |
+
"clean_up_tokenization_spaces": true,
|
5 |
+
"cls_token": "<s>",
|
6 |
+
"eos_token": "</s>",
|
7 |
+
"errors": "replace",
|
8 |
+
"mask_token": "<mask>",
|
9 |
+
"max_length": null,
|
10 |
+
"model_max_length": 512,
|
11 |
+
"pad_to_multiple_of": null,
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"pad_token_type_id": 0,
|
14 |
+
"padding_side": "right",
|
15 |
+
"processor_class": "ClapProcessor",
|
16 |
+
"sep_token": "</s>",
|
17 |
+
"tokenizer_class": "RobertaTokenizer",
|
18 |
+
"trim_offsets": true,
|
19 |
+
"unk_token": "<unk>"
|
20 |
+
}
|
tokenizer/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
unet/config.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UNet2DConditionModel",
|
3 |
+
"_diffusers_version": "0.20.0.dev0",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"addition_embed_type": null,
|
6 |
+
"addition_embed_type_num_heads": 64,
|
7 |
+
"addition_time_embed_dim": null,
|
8 |
+
"attention_head_dim": 8,
|
9 |
+
"block_out_channels": [
|
10 |
+
128,
|
11 |
+
256,
|
12 |
+
384,
|
13 |
+
640
|
14 |
+
],
|
15 |
+
"center_input_sample": false,
|
16 |
+
"class_embed_type": "simple_projection",
|
17 |
+
"class_embeddings_concat": true,
|
18 |
+
"conv_in_kernel": 3,
|
19 |
+
"conv_out_kernel": 3,
|
20 |
+
"cross_attention_dim": [
|
21 |
+
128,
|
22 |
+
256,
|
23 |
+
384,
|
24 |
+
640
|
25 |
+
],
|
26 |
+
"cross_attention_norm": null,
|
27 |
+
"down_block_types": [
|
28 |
+
"DownBlock2D",
|
29 |
+
"CrossAttnDownBlock2D",
|
30 |
+
"CrossAttnDownBlock2D",
|
31 |
+
"CrossAttnDownBlock2D"
|
32 |
+
],
|
33 |
+
"downsample_padding": 1,
|
34 |
+
"dual_cross_attention": false,
|
35 |
+
"encoder_hid_dim": null,
|
36 |
+
"encoder_hid_dim_type": null,
|
37 |
+
"flip_sin_to_cos": true,
|
38 |
+
"freq_shift": 0,
|
39 |
+
"in_channels": 8,
|
40 |
+
"layers_per_block": 2,
|
41 |
+
"mid_block_only_cross_attention": null,
|
42 |
+
"mid_block_scale_factor": 1,
|
43 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
44 |
+
"norm_eps": 1e-05,
|
45 |
+
"norm_num_groups": 32,
|
46 |
+
"num_attention_heads": null,
|
47 |
+
"num_class_embeds": null,
|
48 |
+
"only_cross_attention": false,
|
49 |
+
"out_channels": 8,
|
50 |
+
"projection_class_embeddings_input_dim": 512,
|
51 |
+
"resnet_out_scale_factor": 1.0,
|
52 |
+
"resnet_skip_time_act": false,
|
53 |
+
"resnet_time_scale_shift": "default",
|
54 |
+
"sample_size": 256,
|
55 |
+
"time_cond_proj_dim": null,
|
56 |
+
"time_embedding_act_fn": null,
|
57 |
+
"time_embedding_dim": null,
|
58 |
+
"time_embedding_type": "positional",
|
59 |
+
"timestep_post_act": null,
|
60 |
+
"transformer_layers_per_block": 1,
|
61 |
+
"up_block_types": [
|
62 |
+
"CrossAttnUpBlock2D",
|
63 |
+
"CrossAttnUpBlock2D",
|
64 |
+
"CrossAttnUpBlock2D",
|
65 |
+
"UpBlock2D"
|
66 |
+
],
|
67 |
+
"upcast_attention": false,
|
68 |
+
"use_linear_projection": false
|
69 |
+
}
|
unet/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1fd5e9a9d486930a969d0d09dcbbf9ac73756b9ffb3f4f0a59ab8a68fcd8934f
|
3 |
+
size 740429981
|
unet/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:853d0ef1d61cbf5d682872322ea8b761ba3d2f85bfbccd58363bd6b2f837268f
|
3 |
+
size 740228912
|
vae/config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AutoencoderKL",
|
3 |
+
"_diffusers_version": "0.20.0.dev0",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"block_out_channels": [
|
6 |
+
128,
|
7 |
+
256,
|
8 |
+
512
|
9 |
+
],
|
10 |
+
"down_block_types": [
|
11 |
+
"DownEncoderBlock2D",
|
12 |
+
"DownEncoderBlock2D",
|
13 |
+
"DownEncoderBlock2D"
|
14 |
+
],
|
15 |
+
"force_upcast": true,
|
16 |
+
"in_channels": 1,
|
17 |
+
"latent_channels": 8,
|
18 |
+
"layers_per_block": 2,
|
19 |
+
"norm_num_groups": 32,
|
20 |
+
"out_channels": 1,
|
21 |
+
"sample_size": 1024,
|
22 |
+
"scaling_factor": 1.075324296951294,
|
23 |
+
"up_block_types": [
|
24 |
+
"UpDecoderBlock2D",
|
25 |
+
"UpDecoderBlock2D",
|
26 |
+
"UpDecoderBlock2D"
|
27 |
+
]
|
28 |
+
}
|
vae/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4ecc34b08d65bc63becf9738fa3c2ee0c3837c6aa42128ff274004d705eb02d6
|
3 |
+
size 221586761
|
vae/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16e0c6c7c34e459c19500cc15cf538e6331db14969ea15917caa9b0966e44fd4
|
3 |
+
size 221530308
|
vocoder/config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"SpeechT5HifiGan"
|
4 |
+
],
|
5 |
+
"initializer_range": 0.01,
|
6 |
+
"leaky_relu_slope": 0.1,
|
7 |
+
"model_in_dim": 64,
|
8 |
+
"model_type": "hifigan",
|
9 |
+
"normalize_before": false,
|
10 |
+
"resblock_dilation_sizes": [
|
11 |
+
[
|
12 |
+
1,
|
13 |
+
3,
|
14 |
+
5
|
15 |
+
],
|
16 |
+
[
|
17 |
+
1,
|
18 |
+
3,
|
19 |
+
5
|
20 |
+
],
|
21 |
+
[
|
22 |
+
1,
|
23 |
+
3,
|
24 |
+
5
|
25 |
+
]
|
26 |
+
],
|
27 |
+
"resblock_kernel_sizes": [
|
28 |
+
3,
|
29 |
+
7,
|
30 |
+
11
|
31 |
+
],
|
32 |
+
"sampling_rate": 16000,
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.32.0.dev0",
|
35 |
+
"upsample_initial_channel": 1024,
|
36 |
+
"upsample_kernel_sizes": [
|
37 |
+
16,
|
38 |
+
16,
|
39 |
+
8,
|
40 |
+
4,
|
41 |
+
4
|
42 |
+
],
|
43 |
+
"upsample_rates": [
|
44 |
+
5,
|
45 |
+
4,
|
46 |
+
2,
|
47 |
+
2,
|
48 |
+
2
|
49 |
+
]
|
50 |
+
}
|
vocoder/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96d71d2d13cb853f00f4f382fc1b338649ff458ee791c862443842a2223e7547
|
3 |
+
size 221079092
|
vocoder/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1f835cc6409503d443eb01a461afa653f1ddf2703c5b43aeb74d64894a2a23d
|
3 |
+
size 221120349
|