cemsubakan commited on
Commit
8593354
1 Parent(s): 046e116

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +84 -2
README.md CHANGED
@@ -1,3 +1,85 @@
 
 
 
 
 
 
 
 
 
1
  ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ language: "en"
2
+ thumbnail:
3
+ tags:
4
+ - Sound Classification
5
+ - CNN14
6
+ license: "apache-2.0"
7
+ datasets:
8
+ - ESC50
9
+
10
  ---
11
+
12
+ <iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
13
+ <br/><br/>
14
+
15
+ # PIQ Posthoc Interpreter trained on ESC50
16
+
17
+ This repository provides all the necessary tools to perform audio posthoc interpretations using the [PIQ](https://arxiv.org/abs/2303.12659) method on a conv-2d classifier.
18
+
19
+ | Release | Classification Accuracy Valid | Classification Accuracy Test |
20
+ |:-------------:|:--------------:|:--------------:|
21
+ | 15-07-23 | 80% | 75% |
22
+
23
+
24
+
25
+ ## Install SpeechBrain
26
+
27
+ First of all, please install SpeechBrain with the following command:
28
+
29
+ ```
30
+ pip install speechbrain
31
+ ```
32
+
33
+ Please notice that we encourage you to read our tutorials and learn more about
34
+ [SpeechBrain](https://speechbrain.github.io).
35
+
36
+
37
+ ### Perform Interpretable Classification on your own file
38
+
39
+ ```python
40
+ from speechbrain.pretrained import PIQAudioInterpreter
41
+ import torchaudio
42
+
43
+ model = PIQAudioInterpreter.from_hparams(source="speechbrain/PIQ-ESC50", savedir='pretrained_models/PIQ-ESC50')
44
+ x_int_sound_domain, text_lab, fs_model = model.interpret_file('speechbrain/PIQ-ESC50/mix.wav')
45
+
46
+ print('Classification is {}'.format(text_lab))
47
+ torchaudio.save("interpretation.wav", x_int_sound_domain.data.cpu(), fs_model)
48
+ ```
49
+
50
+
51
+ ### Limitations
52
+ The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
53
+
54
+ #### Referencing SpeechBrain
55
+
56
+ ```bibtex
57
+ @misc{speechbrain,
58
+ title={{SpeechBrain}: A General-Purpose Speech Toolkit},
59
+ author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
60
+ year={2021},
61
+ eprint={2106.04624},
62
+ archivePrefix={arXiv},
63
+ primaryClass={eess.AS},
64
+ note={arXiv:2106.04624}
65
+ }
66
+ ```
67
+
68
+
69
+ #### Referencing PIQ
70
+ If you use this model for your research, please use the following Bibtex to cite it:
71
+ ```bibtex
72
+ @misc{paissan2023posthoc,
73
+ title={Posthoc Interpretation via Quantization},
74
+ author={Francesco Paissan and Cem Subakan and Mirco Ravanelli},
75
+ year={2023},
76
+ eprint={2303.12659},
77
+ archivePrefix={arXiv},
78
+ primaryClass={cs.AI}
79
+ }
80
+ ```
81
+
82
+ # **About SpeechBrain**
83
+ - Website: https://speechbrain.github.io/
84
+ - Code: https://github.com/speechbrain/speechbrain/
85
+ - HuggingFace: https://huggingface.co/speechbrain/