Instructions to use mlx-community/DialogueSidon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/DialogueSidon with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir DialogueSidon mlx-community/DialogueSidon
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Upload 3 files
Browse files- README.md +32 -0
- config.json +170 -0
- model.safetensors +3 -0
README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
+
library_name: mlx-audio
|
| 4 |
+
tags:
|
| 5 |
+
- mlx
|
| 6 |
+
- audio
|
| 7 |
+
- audio-source-separation
|
| 8 |
+
base_model: sarulab-speech/DialogueSidon
|
| 9 |
---
|
| 10 |
+
|
| 11 |
+
# DialogueSidon
|
| 12 |
+
|
| 13 |
+
Two-speaker dialogue separation and restoration, with 24 kHz mono stems.
|
| 14 |
+
Converted from [sarulab-speech/DialogueSidon](https://huggingface.co/sarulab-speech/DialogueSidon/tree/d43d7478402a5527136c6733c3f4359c37b312ab) for use with [mlx-audio](https://github.com/Blaizzy/mlx-audio).
|
| 15 |
+
|
| 16 |
+
```python
|
| 17 |
+
from mlx_audio.sts import load
|
| 18 |
+
from mlx_audio.audio_io import write
|
| 19 |
+
|
| 20 |
+
model = load("mlx-community/DialogueSidon")
|
| 21 |
+
result = model.separate("dialogue.wav", num_steps=30, seed=0)
|
| 22 |
+
for i, speaker in enumerate(result.speakers, 1):
|
| 23 |
+
write(f"speaker_{i}.wav", speaker, result.sample_rate)
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
The two channels are anonymous speaker slots. Long recordings use overlapping
|
| 27 |
+
chunks and waveform correlation to maintain channel assignment. Consistency
|
| 28 |
+
across silence is not guaranteed. This is an offline generative model, so the
|
| 29 |
+
stems need not sum to the mixture. The default chunk and overlap are 20 and 5
|
| 30 |
+
seconds; use `chunk_seconds=None` for whole-file inference when memory permits.
|
| 31 |
+
|
| 32 |
+
The checkpoint retains **CC-BY-NC-4.0**. Original model by Wataru Nakata,
|
| 33 |
+
Yuki Saito, Kazuki Yamauchi, Emiru Tsunoo, and Hiroshi Saruwatari (SaruLab).
|
| 34 |
+
See the [original model card](https://huggingface.co/sarulab-speech/DialogueSidon) and
|
| 35 |
+
[Sidon implementation](https://github.com/sarulab-speech/Sidon).
|
config.json
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "dialogue_sidon",
|
| 3 |
+
"sample_rate": 24000,
|
| 4 |
+
"latent_dim": 32,
|
| 5 |
+
"encoder": {
|
| 6 |
+
"hidden_size": 1024,
|
| 7 |
+
"intermediate_size": 4096,
|
| 8 |
+
"num_hidden_layers": 13,
|
| 9 |
+
"num_attention_heads": 16,
|
| 10 |
+
"feature_projection_input_dim": 160,
|
| 11 |
+
"conv_depthwise_kernel_size": 31,
|
| 12 |
+
"left_max_position_embeddings": 64,
|
| 13 |
+
"right_max_position_embeddings": 8,
|
| 14 |
+
"layer_norm_eps": 1e-05
|
| 15 |
+
},
|
| 16 |
+
"diffusion": {
|
| 17 |
+
"hidden_size": 768,
|
| 18 |
+
"num_layers": 8,
|
| 19 |
+
"num_heads": 12,
|
| 20 |
+
"ffn_ratio": 4.0,
|
| 21 |
+
"frequency_embedding_size": 256,
|
| 22 |
+
"num_train_timesteps": 1000,
|
| 23 |
+
"beta_start": 0.0001,
|
| 24 |
+
"beta_end": 0.02,
|
| 25 |
+
"prediction_type": "v_prediction"
|
| 26 |
+
},
|
| 27 |
+
"decoder_channels": 1536,
|
| 28 |
+
"decoder_rates": [
|
| 29 |
+
8,
|
| 30 |
+
5,
|
| 31 |
+
4,
|
| 32 |
+
3
|
| 33 |
+
],
|
| 34 |
+
"latent_norm_initialized": true,
|
| 35 |
+
"latent_norm_mean": [
|
| 36 |
+
0.1416097730398178,
|
| 37 |
+
0.07175948470830917,
|
| 38 |
+
0.16445186734199524,
|
| 39 |
+
-0.0158994160592556,
|
| 40 |
+
-0.03792296350002289,
|
| 41 |
+
0.1739553064107895,
|
| 42 |
+
0.20609763264656067,
|
| 43 |
+
-0.0773492380976677,
|
| 44 |
+
-0.0958249643445015,
|
| 45 |
+
-0.14557723701000214,
|
| 46 |
+
-0.38258203864097595,
|
| 47 |
+
0.08845309168100357,
|
| 48 |
+
-0.029827825725078583,
|
| 49 |
+
0.04720787703990936,
|
| 50 |
+
-0.20060305297374725,
|
| 51 |
+
0.11549390852451324,
|
| 52 |
+
0.06303639709949493,
|
| 53 |
+
0.024705005809664726,
|
| 54 |
+
-0.0034871164243668318,
|
| 55 |
+
-0.09642789512872696,
|
| 56 |
+
0.21524178981781006,
|
| 57 |
+
0.13936381042003632,
|
| 58 |
+
0.24526667594909668,
|
| 59 |
+
0.2592932879924774,
|
| 60 |
+
-0.3074306547641754,
|
| 61 |
+
0.14334627985954285,
|
| 62 |
+
0.07093678414821625,
|
| 63 |
+
0.5708937048912048,
|
| 64 |
+
0.006343616638332605,
|
| 65 |
+
0.09566544741392136,
|
| 66 |
+
0.5273311734199524,
|
| 67 |
+
0.1451909840106964,
|
| 68 |
+
-0.006651828996837139,
|
| 69 |
+
0.10430128127336502,
|
| 70 |
+
0.11032214015722275,
|
| 71 |
+
0.012842725962400436,
|
| 72 |
+
-0.024605553597211838,
|
| 73 |
+
0.12466253340244293,
|
| 74 |
+
0.12605680525302887,
|
| 75 |
+
-0.02444394864141941,
|
| 76 |
+
-0.1059999093413353,
|
| 77 |
+
-0.1217033863067627,
|
| 78 |
+
-0.3549865186214447,
|
| 79 |
+
0.09900717437267303,
|
| 80 |
+
0.01073773019015789,
|
| 81 |
+
0.10321037471294403,
|
| 82 |
+
-0.11944245547056198,
|
| 83 |
+
0.09993556141853333,
|
| 84 |
+
0.01015459280461073,
|
| 85 |
+
0.03638560324907303,
|
| 86 |
+
-0.0326518714427948,
|
| 87 |
+
-0.13041582703590393,
|
| 88 |
+
0.12432265281677246,
|
| 89 |
+
0.09911591559648514,
|
| 90 |
+
0.16202199459075928,
|
| 91 |
+
0.20371796190738678,
|
| 92 |
+
-0.2879335582256317,
|
| 93 |
+
0.067603699862957,
|
| 94 |
+
0.010356826707720757,
|
| 95 |
+
0.45639586448669434,
|
| 96 |
+
0.05465073511004448,
|
| 97 |
+
0.014600546099245548,
|
| 98 |
+
0.4818445146083832,
|
| 99 |
+
0.09414693713188171
|
| 100 |
+
],
|
| 101 |
+
"latent_norm_std": [
|
| 102 |
+
0.4863946735858917,
|
| 103 |
+
0.39176884293556213,
|
| 104 |
+
0.5244080424308777,
|
| 105 |
+
0.31121498346328735,
|
| 106 |
+
0.38742581009864807,
|
| 107 |
+
0.39328351616859436,
|
| 108 |
+
0.353639155626297,
|
| 109 |
+
0.43606036901474,
|
| 110 |
+
0.40308451652526855,
|
| 111 |
+
0.45672574639320374,
|
| 112 |
+
0.43666139245033264,
|
| 113 |
+
0.31756022572517395,
|
| 114 |
+
0.44575342535972595,
|
| 115 |
+
0.3706947863101959,
|
| 116 |
+
0.5126213431358337,
|
| 117 |
+
0.3701273798942566,
|
| 118 |
+
0.4332931637763977,
|
| 119 |
+
0.34073886275291443,
|
| 120 |
+
0.36883777379989624,
|
| 121 |
+
0.3678142726421356,
|
| 122 |
+
0.421845406293869,
|
| 123 |
+
0.4466390907764435,
|
| 124 |
+
0.4708837568759918,
|
| 125 |
+
0.41468745470046997,
|
| 126 |
+
0.5738605856895447,
|
| 127 |
+
0.4226427376270294,
|
| 128 |
+
0.3899722695350647,
|
| 129 |
+
0.7289687395095825,
|
| 130 |
+
0.4073668420314789,
|
| 131 |
+
0.4150795340538025,
|
| 132 |
+
0.5346329212188721,
|
| 133 |
+
0.3559742569923401,
|
| 134 |
+
0.5018235445022583,
|
| 135 |
+
0.40256914496421814,
|
| 136 |
+
0.5634673833847046,
|
| 137 |
+
0.3569527864456177,
|
| 138 |
+
0.39661917090415955,
|
| 139 |
+
0.4181853234767914,
|
| 140 |
+
0.40074092149734497,
|
| 141 |
+
0.4378126561641693,
|
| 142 |
+
0.45497414469718933,
|
| 143 |
+
0.5129145383834839,
|
| 144 |
+
0.4792986810207367,
|
| 145 |
+
0.3506719768047333,
|
| 146 |
+
0.4913414418697357,
|
| 147 |
+
0.4084736704826355,
|
| 148 |
+
0.5545224547386169,
|
| 149 |
+
0.3966507315635681,
|
| 150 |
+
0.47008392214775085,
|
| 151 |
+
0.3715076744556427,
|
| 152 |
+
0.40553003549575806,
|
| 153 |
+
0.368908166885376,
|
| 154 |
+
0.4457831382751465,
|
| 155 |
+
0.4751212000846863,
|
| 156 |
+
0.4867909550666809,
|
| 157 |
+
0.4290574789047241,
|
| 158 |
+
0.5897377729415894,
|
| 159 |
+
0.4735560417175293,
|
| 160 |
+
0.44096100330352783,
|
| 161 |
+
0.790938675403595,
|
| 162 |
+
0.4382975697517395,
|
| 163 |
+
0.4624195098876953,
|
| 164 |
+
0.5593090057373047,
|
| 165 |
+
0.3772125244140625
|
| 166 |
+
],
|
| 167 |
+
"source_repo": "sarulab-speech/DialogueSidon",
|
| 168 |
+
"source_revision": "d43d7478402a5527136c6733c3f4359c37b312ab",
|
| 169 |
+
"torch_dtype": "float32"
|
| 170 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:196bf68cd7539da55f7f798467e566bd2c11415c3f3a9925e322c265eeac5e96
|
| 3 |
+
size 1776912148
|