Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IFE_raw_base
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
IFE
IFE_raw_base
Commits
480ae1fb
Commit
480ae1fb
authored
2 years ago
by
Damian Karaś
Browse files
Options
Downloads
Patches
Plain Diff
add logging instance in test_AFE.py
Signed-off-by:
Damian Karaś
<
s176030@student.pg.edu.pl
>
parent
a4f768b4
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+7
-1
7 additions, 1 deletion
.gitignore
test_AFE.py
+5
-1
5 additions, 1 deletion
test_AFE.py
utils/AFE/process_audio.py
+1
-1
1 addition, 1 deletion
utils/AFE/process_audio.py
with
13 additions
and
3 deletions
.gitignore
+
7
−
1
View file @
480ae1fb
CQFB_F_min=50_FB_smooth=delay_CMPO_smooth=none_FB2CMPO_sr=1.00_F_max=1050_K=20_q=2.00_Fs=8000.mat
test_results/
requirements.txt.bak
requirements.txt.old
run_IFE_infer_call.bat.bak
run_train_model_call.bat.bak
*.pyc
*.log
\ No newline at end of file
*.log
*.wav
*.dat
*.mat
*.asv
*.entropy
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test_AFE.py
+
5
−
1
View file @
480ae1fb
...
...
@@ -2,6 +2,7 @@ from timeit import default_timer as timer
import
logging
from
data_processor.dataset.ife_dataset
import
IFEDataset
from
utils.log_config
import
LogConfig
from
vowel_synthesis.vowels_synthesizer
import
vowels_synthesizer
from
utils.AFE.process_audio
import
process_audio
...
...
@@ -19,7 +20,10 @@ def test_AFE():
# filename_out = None
# filename_wav = "d:/M_Blok/GitHub/HSI_data/training/Interspeech_2021/15000events_50-400Hz_length500ms_gaps0ms.wav"
filename_wav
=
"
d:/M_Blok/GitHub/HSI_data/training/testowe/15000events_50-400Hz_length500ms_gaps0ms.wav
"
filename_wav
=
"
test2_snr_40.wav
"
log_cfg
=
LogConfig
()
log_cfg
.
init_logging
(
"
AFE_test
"
)
logging
.
info
(
'
START:
'
)
# start = timer()
...
...
This diff is collapsed.
Click to expand it.
utils/AFE/process_audio.py
+
1
−
1
View file @
480ae1fb
...
...
@@ -95,7 +95,7 @@ def process_audio(filename_in = None, x = None, no_of_filters = 20, AFE_cfg = N
"
filter_bank_smoothing_mode
"
:
"
delay
"
,
"
CMPO_smoothing_mode
"
:
"
none
"
,
"
FB_to_CMPO_smoothing_factor
"
:
1.0
}
# full FB smoothing/delay
raise
Exception
(
"
please provide AFE_cfg param
"
)
logging
.
info
(
"
WARNING:
please provide AFE_cfg param
"
)
else
:
if
"
FB_to_CMPO_smoothing_factor
"
not
in
AFE_cfg
:
AFE_cfg
[
"
FB_to_CMPO_smoothing_factor
"
]
=
1.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment