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
9faf23b6
Commit
9faf23b6
authored
Apr 21, 2021
by
Anthony Larcher
Browse files
minor bug
parent
176f4337
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
9faf23b6
...
...
@@ -1803,7 +1803,7 @@ def extract_embeddings_per_speaker(idmap_name,
for
idx
,
(
data
,
mod
,
seg
,
start
,
stop
)
in
enumerate
(
tqdm
.
tqdm
(
dataloader
,
desc
=
'xvector extraction'
,
mininterval
=
1
)):
if
data
.
shape
[
1
]
>
20000000
:
data
=
data
[...,
:
20000000
]
vec
=
model
(
data
.
to
(
device
),
is_eval
=
True
)
_
,
vec
=
model
(
x
=
data
.
to
(
device
),
is_eval
=
True
,
norm_embedding
=
True
)
embeddings
.
stat1
[
idx
,
:]
=
vec
.
detach
().
cpu
()
return
embeddings
...
...
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