Spaces:
Runtime error
Runtime error
Commit
·
c6ddef2
1
Parent(s):
77c6c52
ignore staff
Browse files- .gitignore +4 -3
- README.md +9 -5
- metrics.py +1 -5
.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
-
.idea
|
2 |
-
.ipynb_checkpoints
|
3 |
-
nohup.out
|
|
|
|
1 |
+
.idea/**
|
2 |
+
.ipynb_checkpoints/**
|
3 |
+
nohup.out
|
4 |
+
__pycache__/**
|
README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
-
| Attempt | #1 | #2 |
|
2 |
-
| :---: | :---: | :---: |
|
3 |
-
| Seconds | 301 | 283 |
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
+
|
3 |
+
|
4 |
+
# Testing
|
5 |
+
| | valentini_PESQ | valentini_STOI |
|
6 |
+
|:---------------:|:--------------------:|:--------------:|
|
7 |
+
| ideal denoising | 1.9709 | 0.9211 |
|
8 |
+
| baseline | 1.5693 | 0.9504 |
|
9 |
+
|
10 |
+
|
metrics.py
CHANGED
@@ -5,17 +5,13 @@ import torchaudio
|
|
5 |
|
6 |
|
7 |
|
8 |
-
|
9 |
class Metrics:
|
10 |
def __init__(self, rate=16000):
|
11 |
self.nb_pesq = PerceptualEvaluationSpeechQuality(rate, 'wb')
|
12 |
self.stoi = ShortTimeObjectiveIntelligibility(rate, False)
|
13 |
|
14 |
def calculate(self, preds, target):
|
15 |
-
return {'PESQ': self.nb_pesq(preds, target),
|
16 |
'STOI': self.stoi(preds, target)}
|
17 |
|
18 |
-
|
19 |
|
20 |
-
|
21 |
-
|
|
|
5 |
|
6 |
|
7 |
|
|
|
8 |
class Metrics:
|
9 |
def __init__(self, rate=16000):
|
10 |
self.nb_pesq = PerceptualEvaluationSpeechQuality(rate, 'wb')
|
11 |
self.stoi = ShortTimeObjectiveIntelligibility(rate, False)
|
12 |
|
13 |
def calculate(self, preds, target):
|
14 |
+
return {'PESQ': self.nb_pesq(preds, target),
|
15 |
'STOI': self.stoi(preds, target)}
|
16 |
|
|
|
17 |
|
|
|
|