Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony Larcher
sidekit
Commits
176f4337
Commit
176f4337
authored
Apr 20, 2021
by
Anthony Larcher
Browse files
Merge branch 'dev_al' of
https://git-lium.univ-lemans.fr/Larcher/sidekit
into dev_al
parents
6a35ac35
31911a3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xsets.py
View file @
176f4337
...
...
@@ -507,14 +507,14 @@ class IdMapSetPerSpeaker(Dataset):
self
.
transform_number
=
transform_number
self
.
noise_df
=
None
if
"add_noise"
in
self
.
transform
:
if
"add_noise"
in
self
.
transform
ation
:
# Load the noise dataset, filter according to the duration
noise_df
=
pandas
.
read_csv
(
self
.
transformation
[
"add_noise"
][
"noise_db_csv"
])
tmp_df
=
noise_df
.
loc
[
noise_df
[
'duration'
]
>
self
.
duration
]
self
.
noise_df
=
tmp_df
[
'file_id'
].
tolist
()
self
.
rir_df
=
None
if
"add_reverb"
in
self
.
transform
:
if
"add_reverb"
in
self
.
transform
ation
:
# load the RIR database
tmp_rir_df
=
pandas
.
read_csv
(
self
.
transformation
[
"add_reverb"
][
"rir_db_csv"
])
self
.
rir_df
=
zip
(
tmp_rir_df
[
'file_id'
].
tolist
(),
tmp_rir_df
[
'channel'
].
tolist
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment