Upload MyPipeline
Browse files- feature_extractor/preprocessor_config.json +22 -0
- model_index.json +24 -0
- scheduler/scheduler_config.json +19 -0
- unet/config.json +66 -0
- unet/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +29 -0
- vae/diffusion_pytorch_model.safetensors +3 -0
- vocoder/config.json +51 -0
- vocoder/model.safetensors +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,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "MyPipeline",
|
3 |
+
"_diffusers_version": "0.25.1",
|
4 |
+
"feature_extractor": [
|
5 |
+
"transformers",
|
6 |
+
"ClapFeatureExtractor"
|
7 |
+
],
|
8 |
+
"scheduler": [
|
9 |
+
"diffusers",
|
10 |
+
"DDIMScheduler"
|
11 |
+
],
|
12 |
+
"unet": [
|
13 |
+
"audioldm2",
|
14 |
+
"AudioLDM2UNet2DConditionModel"
|
15 |
+
],
|
16 |
+
"vae": [
|
17 |
+
"diffusers",
|
18 |
+
"AutoencoderKL"
|
19 |
+
],
|
20 |
+
"vocoder": [
|
21 |
+
"transformers",
|
22 |
+
"SpeechT5HifiGan"
|
23 |
+
]
|
24 |
+
}
|
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "DDIMScheduler",
|
3 |
+
"_diffusers_version": "0.25.1",
|
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 |
+
}
|
unet/config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AudioLDM2UNet2DConditionModel",
|
3 |
+
"_diffusers_version": "0.25.1",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"attention_head_dim": 8,
|
6 |
+
"block_out_channels": [
|
7 |
+
128,
|
8 |
+
256,
|
9 |
+
384,
|
10 |
+
640
|
11 |
+
],
|
12 |
+
"class_embed_type": null,
|
13 |
+
"class_embeddings_concat": false,
|
14 |
+
"conv_in_kernel": 3,
|
15 |
+
"conv_out_kernel": 3,
|
16 |
+
"cross_attention_dim": [
|
17 |
+
[
|
18 |
+
null
|
19 |
+
],
|
20 |
+
[
|
21 |
+
null
|
22 |
+
],
|
23 |
+
[
|
24 |
+
null
|
25 |
+
],
|
26 |
+
[
|
27 |
+
null
|
28 |
+
]
|
29 |
+
],
|
30 |
+
"down_block_types": [
|
31 |
+
"DownBlock2D",
|
32 |
+
"CrossAttnDownBlock2D",
|
33 |
+
"CrossAttnDownBlock2D",
|
34 |
+
"CrossAttnDownBlock2D"
|
35 |
+
],
|
36 |
+
"downsample_padding": 1,
|
37 |
+
"flip_sin_to_cos": true,
|
38 |
+
"freq_shift": 0,
|
39 |
+
"in_channels": 8,
|
40 |
+
"layers_per_block": 2,
|
41 |
+
"mid_block_scale_factor": 1,
|
42 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
43 |
+
"norm_eps": 1e-05,
|
44 |
+
"norm_num_groups": 32,
|
45 |
+
"num_attention_heads": null,
|
46 |
+
"num_class_embeds": null,
|
47 |
+
"only_cross_attention": false,
|
48 |
+
"out_channels": 8,
|
49 |
+
"projection_class_embeddings_input_dim": null,
|
50 |
+
"resnet_time_scale_shift": "default",
|
51 |
+
"sample_size": 256,
|
52 |
+
"time_cond_proj_dim": null,
|
53 |
+
"time_embedding_act_fn": null,
|
54 |
+
"time_embedding_dim": null,
|
55 |
+
"time_embedding_type": "positional",
|
56 |
+
"timestep_post_act": null,
|
57 |
+
"transformer_layers_per_block": 1,
|
58 |
+
"up_block_types": [
|
59 |
+
"CrossAttnUpBlock2D",
|
60 |
+
"CrossAttnUpBlock2D",
|
61 |
+
"CrossAttnUpBlock2D",
|
62 |
+
"UpBlock2D"
|
63 |
+
],
|
64 |
+
"upcast_attention": false,
|
65 |
+
"use_linear_projection": false
|
66 |
+
}
|
unet/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce93eb3f047f0c8ae073c376a26af48746d26c33c1390edaca338ca10f214e8c
|
3 |
+
size 722138672
|
vae/config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AutoencoderKL",
|
3 |
+
"_diffusers_version": "0.25.1",
|
4 |
+
"_name_or_path": "/Users/mac/.cache/huggingface/hub/models--ucsd-reach--musicldm/snapshots/b8135e32e6b85e752c513d2e2ad44269e46024f7/vae",
|
5 |
+
"act_fn": "silu",
|
6 |
+
"block_out_channels": [
|
7 |
+
128,
|
8 |
+
256,
|
9 |
+
512
|
10 |
+
],
|
11 |
+
"down_block_types": [
|
12 |
+
"DownEncoderBlock2D",
|
13 |
+
"DownEncoderBlock2D",
|
14 |
+
"DownEncoderBlock2D"
|
15 |
+
],
|
16 |
+
"force_upcast": true,
|
17 |
+
"in_channels": 1,
|
18 |
+
"latent_channels": 8,
|
19 |
+
"layers_per_block": 2,
|
20 |
+
"norm_num_groups": 32,
|
21 |
+
"out_channels": 1,
|
22 |
+
"sample_size": 1024,
|
23 |
+
"scaling_factor": 1.075324296951294,
|
24 |
+
"up_block_types": [
|
25 |
+
"UpDecoderBlock2D",
|
26 |
+
"UpDecoderBlock2D",
|
27 |
+
"UpDecoderBlock2D"
|
28 |
+
]
|
29 |
+
}
|
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,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/Users/mac/.cache/huggingface/hub/models--ucsd-reach--musicldm/snapshots/b8135e32e6b85e752c513d2e2ad44269e46024f7/vocoder",
|
3 |
+
"architectures": [
|
4 |
+
"SpeechT5HifiGan"
|
5 |
+
],
|
6 |
+
"initializer_range": 0.01,
|
7 |
+
"leaky_relu_slope": 0.1,
|
8 |
+
"model_in_dim": 64,
|
9 |
+
"model_type": "hifigan",
|
10 |
+
"normalize_before": false,
|
11 |
+
"resblock_dilation_sizes": [
|
12 |
+
[
|
13 |
+
1,
|
14 |
+
3,
|
15 |
+
5
|
16 |
+
],
|
17 |
+
[
|
18 |
+
1,
|
19 |
+
3,
|
20 |
+
5
|
21 |
+
],
|
22 |
+
[
|
23 |
+
1,
|
24 |
+
3,
|
25 |
+
5
|
26 |
+
]
|
27 |
+
],
|
28 |
+
"resblock_kernel_sizes": [
|
29 |
+
3,
|
30 |
+
7,
|
31 |
+
11
|
32 |
+
],
|
33 |
+
"sampling_rate": 16000,
|
34 |
+
"torch_dtype": "float32",
|
35 |
+
"transformers_version": "4.36.2",
|
36 |
+
"upsample_initial_channel": 1024,
|
37 |
+
"upsample_kernel_sizes": [
|
38 |
+
16,
|
39 |
+
16,
|
40 |
+
8,
|
41 |
+
4,
|
42 |
+
4
|
43 |
+
],
|
44 |
+
"upsample_rates": [
|
45 |
+
5,
|
46 |
+
4,
|
47 |
+
2,
|
48 |
+
2,
|
49 |
+
2
|
50 |
+
]
|
51 |
+
}
|
vocoder/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96d71d2d13cb853f00f4f382fc1b338649ff458ee791c862443842a2223e7547
|
3 |
+
size 221079092
|