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
evALLIES
Commits
00ca52c6
Commit
00ca52c6
authored
May 25, 2021
by
Anthony Larcher
Browse files
add loggings
parent
e203ae64
Changes
1
Hide whitespace changes
Inline
Side-by-side
lium_baseline/system.py
View file @
00ca52c6
...
...
@@ -85,7 +85,7 @@ def init_clustering(init_diar, cep, model_cfg):
"""
# Bic_lin is only applied when starting from a VAD segmentation or from UEM
if
'init_mode'
in
model_cfg
[
'first_seg'
]
and
not
model_cfg
[
'first_seg'
][
'init_mode'
]
=
=
"reference"
:
if
model_cfg
[
"model"
][
"vad"
][
"type"
]
!
=
"reference"
:
output_diar
=
bic_linear_segmentation
(
init_diar
,
cep
,
model_cfg
)
else
:
output_diar
=
init_diar
...
...
@@ -95,7 +95,7 @@ def init_clustering(init_diar, cep, model_cfg):
output_diar
=
cluster
.
perform
()
# Viterbi devoding is only applied when starting from a VAD segmentation or from scratch
if
'init_mode'
in
model_cfg
[
'first_seg'
]
and
not
model_cfg
[
'first_seg'
][
'init_mode'
]
=
=
"reference"
:
if
model_cfg
[
"model"
][
"vad"
][
"type"
]
!
=
"reference"
:
output_diar
=
s4d
.
viterbi
.
viterbi_decoding
(
cep
,
output_diar
,
model_cfg
[
'first_seg'
][
'thr_vit'
])
return
output_diar
...
...
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