01Yassine commited on
Commit
7120c9c
·
verified ·
1 Parent(s): b4a6528

Upload config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.yaml +82 -0
config.yaml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ exp_name: CodecFake_hubert_MLP_NoAug_seed2
2
+ output_dir: ./outputs/batch_CodecFake/
3
+ seed: 2
4
+ data:
5
+ sampling_rate: 16000
6
+ label_map:
7
+ bonafide: 1
8
+ spoof: 0
9
+ train:
10
+ dataset_type: StandardDataset
11
+ parquet_files:
12
+ - /netscratch/yelkheir/DeepFense/DeepFense/deepfense/config/parquets/CodecFake/codecfake_train.parquet
13
+ dataset_names:
14
+ - CodecFake_Train
15
+ batch_size: 32
16
+ shuffle: true
17
+ num_workers: 4
18
+ base_transform:
19
+ - type: pad
20
+ max_len: 64000
21
+ random_pad: true
22
+ pad_type: repeat
23
+ augment_transform: []
24
+ val:
25
+ dataset_type: StandardDataset
26
+ parquet_files:
27
+ - /netscratch/yelkheir/DeepFense/DeepFense/deepfense/config/parquets/CodecFake/codecfake_dev.parquet
28
+ dataset_names:
29
+ - CodecFake_Val
30
+ batch_size: 1
31
+ shuffle: false
32
+ num_workers: 4
33
+ base_transform:
34
+ - type: pad
35
+ max_len: 64000
36
+ pad_type: repeat
37
+ test:
38
+ dataset_type: StandardDataset
39
+ parquet_files:
40
+ - /netscratch/yelkheir/DeepFense/DeepFense/deepfense/config/parquets/CodecFake/codecfake_eval.parquet
41
+ dataset_names:
42
+ - CodecFake_Eval
43
+ batch_size: 1
44
+ shuffle: false
45
+ num_workers: 4
46
+ base_transform:
47
+ - type: pad
48
+ max_len: 64000
49
+ pad_type: repeat
50
+ model:
51
+ type: StandardDetector
52
+ frontend:
53
+ type: hubert
54
+ args:
55
+ ckpt_path: /netscratch/yelkheir/ssl_models/hubert_large_ll60k.pt
56
+ freeze: false
57
+ source: fairseq
58
+ backend:
59
+ type: MLP
60
+ args:
61
+ input_dim: 1024
62
+ projection:
63
+ - 128
64
+ pooling_type: mean
65
+ loss:
66
+ - type: CrossEntropy
67
+ embedding_dim: 128
68
+ n_classes: 2
69
+ weight: 1.0
70
+ training:
71
+ trainer: StandardTrainer
72
+ epochs: 100
73
+ early_stopping_patience: 7
74
+ optimizer:
75
+ type: adam
76
+ lr: 1.0e-06
77
+ metrics:
78
+ ACC: {}
79
+ EER: {}
80
+ eval_every_epochs: 1
81
+ device: cuda
82
+ output_dir: ./outputs/batch_CodecFake/CodecFake_hubert_MLP_NoAug_seed2_20260205_051317