Upload folder using huggingface_hub
Browse files- README.md +34 -0
- config.json +13 -0
- preprocessor_config.json +10 -0
- pytorch_model.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
tags:
|
| 4 |
+
- audio
|
| 5 |
+
- encodec
|
| 6 |
+
- audio-compression
|
| 7 |
+
license: mit
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# alitair/birdconv_encodec_24khz_1
|
| 11 |
+
|
| 12 |
+
This is an EnCodec model fine-tuned for audio compression.
|
| 13 |
+
|
| 14 |
+
## Model Description
|
| 15 |
+
|
| 16 |
+
- **Model type:** EnCodec
|
| 17 |
+
- **Sample rate:** 24kHz
|
| 18 |
+
- **Channels:** 1 (mono)
|
| 19 |
+
- **Base model:** facebook/encodec_24khz
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
from transformers import AutoProcessor, AutoModel
|
| 25 |
+
import torch
|
| 26 |
+
|
| 27 |
+
# Load model and processor
|
| 28 |
+
model = AutoModel.from_pretrained("alitair/birdconv_encodec_24khz_1")
|
| 29 |
+
processor = AutoProcessor.from_pretrained("alitair/birdconv_encodec_24khz_1")
|
| 30 |
+
|
| 31 |
+
# Process audio
|
| 32 |
+
inputs = processor(audio, sampling_rate=24000, return_tensors="pt")
|
| 33 |
+
outputs = model(**inputs)
|
| 34 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "encodec",
|
| 3 |
+
"sample_rate": 24000,
|
| 4 |
+
"channels": 1,
|
| 5 |
+
"hidden_size": 128,
|
| 6 |
+
"num_filters": 32,
|
| 7 |
+
"kernel_size": 7,
|
| 8 |
+
"stride": 2,
|
| 9 |
+
"num_residual_layers": 1,
|
| 10 |
+
"num_embeddings": 1024,
|
| 11 |
+
"embedding_dim": 128,
|
| 12 |
+
"use_conv_shortcut": true
|
| 13 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chunk_length_s": null,
|
| 3 |
+
"feature_extractor_type": "EncodecFeatureExtractor",
|
| 4 |
+
"feature_size": 1,
|
| 5 |
+
"overlap": null,
|
| 6 |
+
"padding_side": "right",
|
| 7 |
+
"padding_value": 0.0,
|
| 8 |
+
"return_attention_mask": true,
|
| 9 |
+
"sampling_rate": 24000
|
| 10 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a842d3362114bd9a619050a287219660407494c957b343c3aff67d514dabf37f
|
| 3 |
+
size 93195002
|