Sin2pi commited on
Commit
4926b2d
1 Parent(s): cf4e3ca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -3
README.md CHANGED
@@ -1,3 +1,34 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - automatic-speech-recognition
5
+ tags:
6
+ - collator
7
+ ---
8
+ #### Adaptive Context-Aware Noise Injection
9
+
10
+ Our preprocessing pipeline includes adaptive context-aware noise injection to enhance model robustness. This method dynamically adjusts noise intensity based on the amplitude of the audio signal, ensuring realistic and effective augmentation.
11
+
12
+ - **Types of Noise**: White, pink, and environmental noise.
13
+ - **Dynamic Adjustment**: Noise intensity is scaled based on the amplitude of the audio signal.
14
+ - **Integration**: The noise injection process is seamlessly integrated into our existing log-Mel spectrogram calculation pipeline, adding minimal overhead.
15
+
16
+ ##### Key Benefits
17
+
18
+ - **Improved Generalization**: Models become more resilient to noise and diverse audio conditions.
19
+ - **Low Overhead**: The augmentation process leverages the existing pipeline, ensuring efficient computation without significant additional cost.
20
+
21
+ ##### Example Usage
22
+
23
+ ```python
24
+ data_collator = DataCollatorSpeechSeq2SeqWithPadding(
25
+ processor=processor,
26
+ decoder_start_token_id=model.config.decoder_start_token_id,
27
+ apply_augmentation=True,
28
+ apply_noise_injection=True # Enable adaptive noise injection
29
+ )
30
+
31
+ dataloader = torch.utils.data.DataLoader(dataset, batch_size=2, shuffle=True, collate_fn=data_collator)
32
+
33
+ for batch in dataloader:
34
+ outputs = model(batch)