Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
tongue-diagnosis
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiyang.zhou
tongue-diagnosis
Commits
699be5ec
Commit
699be5ec
authored
Jul 08, 2021
by
zhiyang.zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
ad2619dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
train_tongue_diagnosis.py
train_tongue_diagnosis.py
+2
-2
No files found.
train_tongue_diagnosis.py
View file @
699be5ec
...
@@ -21,8 +21,8 @@ parser.add_argument('-b', '--batch_size', default=32, type=int, help='mini-batch
...
@@ -21,8 +21,8 @@ parser.add_argument('-b', '--batch_size', default=32, type=int, help='mini-batch
parser
.
add_argument
(
'--lr'
,
type
=
float
,
default
=
0.001
,
metavar
=
'LR'
,
help
=
'learning rate'
)
parser
.
add_argument
(
'--lr'
,
type
=
float
,
default
=
0.001
,
metavar
=
'LR'
,
help
=
'learning rate'
)
parser
.
add_argument
(
'--momentum'
,
type
=
float
,
default
=
0.9
,
metavar
=
'M'
,
help
=
'SGD momentum'
)
parser
.
add_argument
(
'--momentum'
,
type
=
float
,
default
=
0.9
,
metavar
=
'M'
,
help
=
'SGD momentum'
)
parser
.
add_argument
(
'--weight_decay'
,
'--wd'
,
default
=
0
,
type
=
float
,
metavar
=
'W'
)
parser
.
add_argument
(
'--weight_decay'
,
'--wd'
,
default
=
0
,
type
=
float
,
metavar
=
'W'
)
parser
.
add_argument
(
'--epochs'
,
type
=
int
,
default
=
2
0
,
metavar
=
'N'
,
help
=
'number of epochs to train'
)
parser
.
add_argument
(
'--epochs'
,
type
=
int
,
default
=
4
0
,
metavar
=
'N'
,
help
=
'number of epochs to train'
)
parser
.
add_argument
(
'--schedule'
,
type
=
int
,
nargs
=
'+'
,
default
=
[
10
,
1
5
],
parser
.
add_argument
(
'--schedule'
,
type
=
int
,
nargs
=
'+'
,
default
=
[
25
,
30
,
3
5
],
help
=
'Decrease learning rate at these epochs.'
)
help
=
'Decrease learning rate at these epochs.'
)
parser
.
add_argument
(
'--gamma'
,
type
=
float
,
default
=
0.2
,
help
=
'LR is multiplied by gamma on schedule.'
)
parser
.
add_argument
(
'--gamma'
,
type
=
float
,
default
=
0.2
,
help
=
'LR is multiplied by gamma on schedule.'
)
parser
.
add_argument
(
'--model_dir'
,
default
=
'dnn_models/tongue_modes/'
,
help
=
'directory of model for saving checkpoint'
)
parser
.
add_argument
(
'--model_dir'
,
default
=
'dnn_models/tongue_modes/'
,
help
=
'directory of model for saving checkpoint'
)
...
...
Write
Preview
Markdown
is supported
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