Skip to content
GitLab
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
c5253816
Commit
c5253816
authored
Mar 14, 2021
by
Anthony Larcher
Browse files
debug
parent
9bf46eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
c5253816
...
...
@@ -952,7 +952,7 @@ def xtrain(speaker_number,
logging
.
critical
(
f
"Use
{
num_thread
}
cpus"
)
logging
.
critical
(
f
"Start process at
{
time
.
strftime
(
'%H
:
%
M
:
%
S
', time.localtime())
}
"
)
device
=
torch
.
device
(
"cuda
:0
"
if
torch
.
cuda
.
is_available
()
else
"cpu"
)
device
=
torch
.
device
(
"cuda"
if
torch
.
cuda
.
is_available
()
else
"cpu"
)
# Start from scratch
if
model_name
is
None
and
model_yaml
in
[
"xvector"
,
"rawnet2"
,
"resnet34"
,
"fastresnet34"
]:
# Initialize a first model
...
...
@@ -1521,7 +1521,7 @@ def xtraintop(model_filename,
:param num_thread:
:return:
"""
device
=
torch
.
device
(
"cuda
:0
"
if
torch
.
cuda
.
is_available
()
else
"cpu"
)
device
=
torch
.
device
(
"cuda"
if
torch
.
cuda
.
is_available
()
else
"cpu"
)
# Load the model
if
isinstance
(
model_filename
,
str
):
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment