jayzen33
commited on
Commit
·
91c35de
1
Parent(s):
59f59a2
add v1 model
Browse files- autoencoder_music_dsp1920.ckpt +3 -0
- yingsinger.dev.pt → beta/yingsinger.dev.pt +0 -0
- op.py +25 -0
- rmvpe.pt +3 -0
- singer.v1.pt +3 -0
- some.pt +3 -0
- stable_audio_1920_vae.json +122 -0
autoencoder_music_dsp1920.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10ccb6c83613781ad32e998a90597ba7eb9292911a224598da1fd53728eb4cd3
|
| 3 |
+
size 674920616
|
yingsinger.dev.pt → beta/yingsinger.dev.pt
RENAMED
|
File without changes
|
op.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
|
| 3 |
+
# state_dict = torch.load("model_485000.pt", map_location="cpu")
|
| 4 |
+
|
| 5 |
+
# new_state_dict = state_dict.copy()["ema_model_state_dict"]
|
| 6 |
+
# print(state_dict.keys())
|
| 7 |
+
# print(new_state_dict.keys())
|
| 8 |
+
|
| 9 |
+
# torch.save(new_state_dict, "model_485000_ema.pt")
|
| 10 |
+
|
| 11 |
+
ema_state_dict = torch.load("model_485000_ema.pt", map_location="cpu")
|
| 12 |
+
print(ema_state_dict.keys())
|
| 13 |
+
|
| 14 |
+
for k in list(ema_state_dict.keys()):
|
| 15 |
+
if "initted" in k or "step" in k or "melody_mel_spec.mel_basis" in k:
|
| 16 |
+
ema_state_dict.pop(k)
|
| 17 |
+
continue
|
| 18 |
+
|
| 19 |
+
if k.startswith("ema_model."):
|
| 20 |
+
new_k = k.replace("ema_model.", "")
|
| 21 |
+
ema_state_dict[new_k] = ema_state_dict.pop(k)
|
| 22 |
+
|
| 23 |
+
# remove "initted", "step", "melody_mel_spec.mel_basis".
|
| 24 |
+
|
| 25 |
+
torch.save(ema_state_dict, "model_485000_ema_fixed.pt")
|
rmvpe.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19dc1809cf4cdb0a18db93441816bc327e14e5644b72eeaae5220560c6736fe2
|
| 3 |
+
size 368492925
|
singer.v1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b7f2e939af6e1bac06e1f14bf1e9a66628eb748c3a62420213983f6c08fe3a1
|
| 3 |
+
size 1316346039
|
some.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa710fce920b4dae281b0e6cc2acba83345d82ee62d51f7bafeb29636f28f97c
|
| 3 |
+
size 470801253
|
stable_audio_1920_vae.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "autoencoder",
|
| 3 |
+
"sample_size": 403200,
|
| 4 |
+
"sample_rate": 48000,
|
| 5 |
+
"audio_channels": 2,
|
| 6 |
+
"model": {
|
| 7 |
+
"encoder": {
|
| 8 |
+
"type": "oobleck",
|
| 9 |
+
"config": {
|
| 10 |
+
"in_channels": 2,
|
| 11 |
+
"channels": 128,
|
| 12 |
+
"c_mults": [1, 2, 4, 8, 16],
|
| 13 |
+
"strides": [2, 4, 4, 6, 10],
|
| 14 |
+
"latent_dim": 128,
|
| 15 |
+
"use_snake": true
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"decoder": {
|
| 19 |
+
"type": "oobleck",
|
| 20 |
+
"config": {
|
| 21 |
+
"out_channels": 2,
|
| 22 |
+
"channels": 128,
|
| 23 |
+
"c_mults": [1, 2, 4, 8, 16],
|
| 24 |
+
"strides": [2, 4, 4, 6, 10],
|
| 25 |
+
"latent_dim": 64,
|
| 26 |
+
"use_snake": true,
|
| 27 |
+
"final_tanh": false
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"bottleneck": {
|
| 31 |
+
"type": "vae"
|
| 32 |
+
},
|
| 33 |
+
"latent_dim": 64,
|
| 34 |
+
"downsampling_ratio": 1920,
|
| 35 |
+
"io_channels": 2
|
| 36 |
+
},
|
| 37 |
+
"training": {
|
| 38 |
+
"learning_rate": 1.5e-4,
|
| 39 |
+
"warmup_steps": 0,
|
| 40 |
+
"use_ema": true,
|
| 41 |
+
"optimizer_configs": {
|
| 42 |
+
"autoencoder": {
|
| 43 |
+
"optimizer": {
|
| 44 |
+
"type": "AdamW",
|
| 45 |
+
"config": {
|
| 46 |
+
"betas": [0.8, 0.99],
|
| 47 |
+
"lr": 1.5e-4,
|
| 48 |
+
"weight_decay": 1e-3
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"scheduler": {
|
| 52 |
+
"type": "InverseLR",
|
| 53 |
+
"config": {
|
| 54 |
+
"inv_gamma": 200000,
|
| 55 |
+
"power": 0.5,
|
| 56 |
+
"warmup": 0.999
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"discriminator": {
|
| 61 |
+
"optimizer": {
|
| 62 |
+
"type": "AdamW",
|
| 63 |
+
"config": {
|
| 64 |
+
"betas": [0.8, 0.99],
|
| 65 |
+
"lr": 3e-4,
|
| 66 |
+
"weight_decay": 1e-3
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"scheduler": {
|
| 70 |
+
"type": "InverseLR",
|
| 71 |
+
"config": {
|
| 72 |
+
"inv_gamma": 200000,
|
| 73 |
+
"power": 0.5,
|
| 74 |
+
"warmup": 0.999
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
"loss_configs": {
|
| 80 |
+
"discriminator": {
|
| 81 |
+
"type": "encodec",
|
| 82 |
+
"config": {
|
| 83 |
+
"filters": 64,
|
| 84 |
+
"n_ffts": [2048, 1024, 512, 256, 128],
|
| 85 |
+
"hop_lengths": [512, 256, 128, 64, 32],
|
| 86 |
+
"win_lengths": [2048, 1024, 512, 256, 128]
|
| 87 |
+
},
|
| 88 |
+
"weights": {
|
| 89 |
+
"adversarial": 0.1,
|
| 90 |
+
"feature_matching": 5.0
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
"spectral": {
|
| 94 |
+
"type": "mrstft",
|
| 95 |
+
"config": {
|
| 96 |
+
"fft_sizes": [2048, 1024, 512, 256, 128, 64, 32],
|
| 97 |
+
"hop_sizes": [512, 256, 128, 64, 32, 16, 8],
|
| 98 |
+
"win_lengths": [2048, 1024, 512, 256, 128, 64, 32],
|
| 99 |
+
"perceptual_weighting": true
|
| 100 |
+
},
|
| 101 |
+
"weights": {
|
| 102 |
+
"mrstft": 1.0
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
"time": {
|
| 106 |
+
"type": "l1",
|
| 107 |
+
"weights": {
|
| 108 |
+
"l1": 0.0
|
| 109 |
+
}
|
| 110 |
+
},
|
| 111 |
+
"bottleneck": {
|
| 112 |
+
"type": "kl",
|
| 113 |
+
"weights": {
|
| 114 |
+
"kl": 1e-4
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
},
|
| 118 |
+
"demo": {
|
| 119 |
+
"demo_every": 2000
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
}
|