JusperLee commited on
Commit
ded3fb7
·
verified ·
1 Parent(s): 8225528

Add config.yaml so the Hub counts downloads

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. config.yaml +166 -0
README.md CHANGED
@@ -24,7 +24,7 @@ Code, training and evaluation: <https://github.com/JusperLee/Falcon>. Paper: *Ef
24
  |---|---|---|---|
25
  | `falcon-big.pt` | `studio/configs/FalconBig.yml` | `SpeakerContrastiveV2` | 12.35 M |
26
 
27
- Total parameters include the frozen 11.2 M-parameter FRCNN lip-reading encoder. The file holds only `state_dict` (`audio_model.*`, `video_model.*`), the architecture name and the training epoch; load it with `torch.load(..., weights_only=True)`.
28
 
29
  ## Usage
30
 
 
24
  |---|---|---|---|
25
  | `falcon-big.pt` | `studio/configs/FalconBig.yml` | `SpeakerContrastiveV2` | 12.35 M |
26
 
27
+ Total parameters include the frozen 11.2 M-parameter FRCNN lip-reading encoder. The file holds only `state_dict` (`audio_model.*`, `video_model.*`), the architecture name and the training epoch; load it with `torch.load(..., weights_only=True)`. `config.yaml` is a copy of `studio/configs/FalconBig.yml` from the code repo; the Hub counts downloads by this file, and `FalconRuntime` requests it on every load.
28
 
29
  ## Usage
30
 
config.yaml ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ audionet:
2
+ audionet_config:
3
+ audio_bn_params:
4
+ is2d: true
5
+ kernel_size: 1
6
+ out_chan: 256
7
+ pre_act_type: ReLU
8
+ pre_norm_type: cLNhw
9
+ audio_params:
10
+ act_type: PReLU
11
+ causal: true
12
+ hid_chan: 96
13
+ is2d: true
14
+ kernel_size: 5
15
+ layers:
16
+ layer_1:
17
+ bidirectional: true
18
+ dim: 4
19
+ hid_chan: 48
20
+ kernel_size: 8
21
+ num_layers: 1
22
+ rnn_type: LSTM
23
+ stride: 1
24
+ layer_2:
25
+ bidirectional: false
26
+ dim: 3
27
+ hid_chan: 96
28
+ kernel_size: 8
29
+ num_layers: 1
30
+ rnn_type: LSTM
31
+ stride: 1
32
+ layer_3:
33
+ act_type: PReLU
34
+ causal: true
35
+ dim: 3
36
+ hid_chan: 4
37
+ n_head: 4
38
+ norm_type: LayerNormalization4D
39
+ n_freqs: 129
40
+ norm_type: cLNhw
41
+ repeats: 2
42
+ shared: true
43
+ stride: 2
44
+ upsampling_depth: 4
45
+ causal: true
46
+ enc_dec_params:
47
+ act_type: null
48
+ bias: false
49
+ causal: true
50
+ hop_length: 128
51
+ kernel_size: 3
52
+ norm_type: null
53
+ out_chan: 256
54
+ stride: 1
55
+ win: 256
56
+ fusion_params:
57
+ fusion_shared: true
58
+ fusion_type: NeuroSCNetFusion
59
+ is2d: true
60
+ kernel_size: 4
61
+ mask_generation_params:
62
+ RI_split: true
63
+ is2d: true
64
+ mask_act: ReLU
65
+ mask_generator_type: MaskGenerator
66
+ n_src: 1
67
+ pretrained_vout_chan: 512
68
+ spk_embed_dim: 128
69
+ video_bn_params:
70
+ kernel_size: -1
71
+ video_params:
72
+ act_type: PReLU
73
+ causal: true
74
+ hid_chan: 64
75
+ is2d: false
76
+ kernel_size: 3
77
+ layers:
78
+ layer_1:
79
+ causal: true
80
+ dropout: 0.1
81
+ kernel_size: 3
82
+ n_head: 8
83
+ norm_type: cLN
84
+ norm_type: BatchNorm1d
85
+ repeats: 1
86
+ shared: true
87
+ stride: 2
88
+ audionet_name: SpeakerContrastiveV2
89
+ datamodule:
90
+ data_config:
91
+ batch_size: 4
92
+ n_src: 1
93
+ normalize_audio: false
94
+ num_workers: 8
95
+ persistent_workers: true
96
+ pin_memory: true
97
+ sample_rate: 16000
98
+ segment: 2.0
99
+ test_dir: ${DATA_ROOT}/tt
100
+ train_dir: ${DATA_ROOT}/tr
101
+ use_near: true
102
+ valid_dir: ${DATA_ROOT}/cv
103
+ data_name: AVSpeechDataModuleWithNear
104
+ exp:
105
+ exp_name: big_1_1000_imgswd
106
+ loss:
107
+ train:
108
+ config:
109
+ pit_from: pw_mtx
110
+ threshold_byloss: true
111
+ loss_func: PITLossWrapper
112
+ sdr_type: pairwise_neg_snr
113
+ val:
114
+ config:
115
+ pit_from: pw_mtx
116
+ threshold_byloss: false
117
+ loss_func: PITLossWrapper
118
+ sdr_type: pairwise_neg_sisdr
119
+ main_args:
120
+ exp_dir: ${ROOT}/Experiments/checkpoint/big_1_1000_imgswd
121
+ optimizer:
122
+ lr: 0.001
123
+ optim_name: adamw
124
+ weight_decay: 0.01
125
+ options:
126
+ ckpt_path: ''
127
+ conf_dir: configs/FalconBig.yml
128
+ help: null
129
+ scheduler:
130
+ sche_config:
131
+ factor: 0.5
132
+ patience: 15
133
+ sche_name: ReduceLROnPlateau
134
+ spk_contrast:
135
+ alpha_neg: 1.0
136
+ alpha_pos: 1.0
137
+ beta_anneal_epochs: 200
138
+ beta_final: 1.0
139
+ beta_init: 0.0
140
+ loss_weight: 1.0
141
+ margin: 0.5
142
+ training:
143
+ early_stop:
144
+ mode: min
145
+ monitor: val_loss/dataloader_idx_0
146
+ patience: 30
147
+ verbose: true
148
+ epochs: 1000
149
+ gpus:
150
+ - 0
151
+ - 1
152
+ - 2
153
+ - 3
154
+ - 4
155
+ - 5
156
+ - 6
157
+ - 7
158
+ parallel: ddp
159
+ system: AudioVisualLightningModuleNASSv2
160
+ videonet:
161
+ videonet_config:
162
+ backbone_type: resnet
163
+ pretrain: pretrain_zoo/frcnn_128_512.backbone.pth.tar
164
+ relu_type: prelu
165
+ width_mult: 1.0
166
+ videonet_name: FRCNNVideoModel