Upload audio/DF_Arena_1B_V_1/configuration_antispoofing.py with huggingface_hub
Browse files
audio/DF_Arena_1B_V_1/configuration_antispoofing.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import PretrainedConfig
|
| 2 |
+
|
| 3 |
+
class DF_Arena_1B_Config(PretrainedConfig):
|
| 4 |
+
model_type = "antispoofing"
|
| 5 |
+
def __init__(self, num_labels=2, sample_rate=16000, **kwargs):
|
| 6 |
+
super().__init__(**kwargs)
|
| 7 |
+
self.num_labels = num_labels
|
| 8 |
+
self.sample_rate = sample_rate
|
| 9 |
+
self.out_dim = 1024
|