abhishtagatya
commited on
Commit
•
4a89b1d
1
Parent(s):
10208b0
End of training
Browse files- README.md +71 -0
- config.json +131 -0
- model.safetensors +3 -0
- preprocessor_config.json +9 -0
- runs/Jan25_21-04-19_38073bf969c7/events.out.tfevents.1706216660.38073bf969c7.71742.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/wavlm-base
|
3 |
+
tags:
|
4 |
+
- audio-classification
|
5 |
+
- deepfake
|
6 |
+
- audio-spoof
|
7 |
+
- generated_from_trainer
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: wavlm-base-960h-itw-deepfake
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# wavlm-base-960h-itw-deepfake
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [microsoft/wavlm-base](https://huggingface.co/microsoft/wavlm-base) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.0593
|
23 |
+
- Accuracy: 0.9896
|
24 |
+
- Far: 0.0080
|
25 |
+
- Frr: 0.0144
|
26 |
+
- Eer: 0.0112
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 1e-06
|
46 |
+
- train_batch_size: 2
|
47 |
+
- eval_batch_size: 2
|
48 |
+
- seed: 42
|
49 |
+
- gradient_accumulation_steps: 2
|
50 |
+
- total_train_batch_size: 4
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- num_epochs: 2.0
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Far | Frr | Eer |
|
58 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|:------:|:------:|
|
59 |
+
| 0.3205 | 0.39 | 2500 | 0.1223 | 0.9699 | 0.0343 | 0.0229 | 0.0286 |
|
60 |
+
| 0.0752 | 0.79 | 5000 | 0.0822 | 0.9843 | 0.0145 | 0.0178 | 0.0161 |
|
61 |
+
| 0.0666 | 1.18 | 7500 | 0.0825 | 0.9849 | 0.0158 | 0.0140 | 0.0149 |
|
62 |
+
| 0.0569 | 1.57 | 10000 | 0.0674 | 0.9884 | 0.0103 | 0.0140 | 0.0121 |
|
63 |
+
| 0.0567 | 1.97 | 12500 | 0.0593 | 0.9896 | 0.0080 | 0.0144 | 0.0112 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.38.0.dev0
|
69 |
+
- Pytorch 2.1.2+cu121
|
70 |
+
- Datasets 2.16.2.dev0
|
71 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/wavlm-base",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"adapter_kernel_size": 3,
|
5 |
+
"adapter_stride": 2,
|
6 |
+
"add_adapter": false,
|
7 |
+
"apply_spec_augment": true,
|
8 |
+
"architectures": [
|
9 |
+
"WavLMForSequenceClassification"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.1,
|
12 |
+
"bos_token_id": 1,
|
13 |
+
"classifier_proj_size": 256,
|
14 |
+
"codevector_dim": 256,
|
15 |
+
"contrastive_logits_temperature": 0.1,
|
16 |
+
"conv_bias": false,
|
17 |
+
"conv_dim": [
|
18 |
+
512,
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512,
|
22 |
+
512,
|
23 |
+
512,
|
24 |
+
512
|
25 |
+
],
|
26 |
+
"conv_kernel": [
|
27 |
+
10,
|
28 |
+
3,
|
29 |
+
3,
|
30 |
+
3,
|
31 |
+
3,
|
32 |
+
2,
|
33 |
+
2
|
34 |
+
],
|
35 |
+
"conv_stride": [
|
36 |
+
5,
|
37 |
+
2,
|
38 |
+
2,
|
39 |
+
2,
|
40 |
+
2,
|
41 |
+
2,
|
42 |
+
2
|
43 |
+
],
|
44 |
+
"ctc_loss_reduction": "sum",
|
45 |
+
"ctc_zero_infinity": false,
|
46 |
+
"diversity_loss_weight": 0.1,
|
47 |
+
"do_stable_layer_norm": false,
|
48 |
+
"eos_token_id": 2,
|
49 |
+
"feat_extract_activation": "gelu",
|
50 |
+
"feat_extract_norm": "group",
|
51 |
+
"feat_proj_dropout": 0.1,
|
52 |
+
"feat_quantizer_dropout": 0.0,
|
53 |
+
"final_dropout": 0.0,
|
54 |
+
"finetuning_task": "wavlm_clf",
|
55 |
+
"freeze_feat_extract_train": true,
|
56 |
+
"hidden_act": "gelu",
|
57 |
+
"hidden_dropout": 0.1,
|
58 |
+
"hidden_size": 768,
|
59 |
+
"id2label": {
|
60 |
+
"0": "bona-fide",
|
61 |
+
"1": "spoof"
|
62 |
+
},
|
63 |
+
"initializer_range": 0.02,
|
64 |
+
"intermediate_size": 3072,
|
65 |
+
"label2id": {
|
66 |
+
"bona-fide": 0,
|
67 |
+
"spoof": 1
|
68 |
+
},
|
69 |
+
"layer_norm_eps": 1e-05,
|
70 |
+
"layerdrop": 0.05,
|
71 |
+
"mask_channel_length": 10,
|
72 |
+
"mask_channel_min_space": 1,
|
73 |
+
"mask_channel_other": 0.0,
|
74 |
+
"mask_channel_prob": 0.0,
|
75 |
+
"mask_channel_selection": "static",
|
76 |
+
"mask_feature_length": 10,
|
77 |
+
"mask_feature_min_masks": 0,
|
78 |
+
"mask_feature_prob": 0.0,
|
79 |
+
"mask_time_length": 10,
|
80 |
+
"mask_time_min_masks": 2,
|
81 |
+
"mask_time_min_space": 1,
|
82 |
+
"mask_time_other": 0.0,
|
83 |
+
"mask_time_prob": 0.05,
|
84 |
+
"mask_time_selection": "static",
|
85 |
+
"max_bucket_distance": 800,
|
86 |
+
"model_type": "wavlm",
|
87 |
+
"no_mask_channel_overlap": false,
|
88 |
+
"no_mask_time_overlap": false,
|
89 |
+
"num_adapter_layers": 3,
|
90 |
+
"num_attention_heads": 12,
|
91 |
+
"num_buckets": 320,
|
92 |
+
"num_codevector_groups": 2,
|
93 |
+
"num_codevectors_per_group": 320,
|
94 |
+
"num_conv_pos_embedding_groups": 16,
|
95 |
+
"num_conv_pos_embeddings": 128,
|
96 |
+
"num_ctc_classes": 80,
|
97 |
+
"num_feat_extract_layers": 7,
|
98 |
+
"num_hidden_layers": 12,
|
99 |
+
"num_negatives": 100,
|
100 |
+
"output_hidden_size": 768,
|
101 |
+
"pad_token_id": 0,
|
102 |
+
"pooling_mode": "mean",
|
103 |
+
"proj_codevector_dim": 256,
|
104 |
+
"tdnn_dilation": [
|
105 |
+
1,
|
106 |
+
2,
|
107 |
+
3,
|
108 |
+
1,
|
109 |
+
1
|
110 |
+
],
|
111 |
+
"tdnn_dim": [
|
112 |
+
512,
|
113 |
+
512,
|
114 |
+
512,
|
115 |
+
512,
|
116 |
+
1500
|
117 |
+
],
|
118 |
+
"tdnn_kernel": [
|
119 |
+
5,
|
120 |
+
3,
|
121 |
+
3,
|
122 |
+
1,
|
123 |
+
1
|
124 |
+
],
|
125 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
126 |
+
"torch_dtype": "float32",
|
127 |
+
"transformers_version": "4.38.0.dev0",
|
128 |
+
"use_weighted_layer_sum": false,
|
129 |
+
"vocab_size": 32,
|
130 |
+
"xvector_output_dim": 512
|
131 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8325fa87740e8c04f1243424235a0c90cadb72c7790fe91765105b424ae67834
|
3 |
+
size 378347256
|
preprocessor_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": false,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0.0,
|
7 |
+
"return_attention_mask": true,
|
8 |
+
"sampling_rate": 16000
|
9 |
+
}
|
runs/Jan25_21-04-19_38073bf969c7/events.out.tfevents.1706216660.38073bf969c7.71742.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4377a5f14a3191ca7fef14e9e0bf47600fb43d31e5e17fcafb478cacb8ea5b6
|
3 |
+
size 9894
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2ed6e8fe83660de28d04b41dcfa5dee09a8cf41fa60772aa9016edb3b7b5d8dc
|
3 |
+
size 4792
|