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
623d57c6
Commit
623d57c6
authored
Jul 08, 2021
by
zhiyang.zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
ad22348f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
train_tongue_diagnosis.py
train_tongue_diagnosis.py
+5
-3
No files found.
train_tongue_diagnosis.py
View file @
623d57c6
...
...
@@ -33,12 +33,14 @@ parser.add_argument('--log_interval', type=int, default=10, metavar='N',
args
=
parser
.
parse_args
()
NUM_CLASSES
=
8
use_cuda
=
not
args
.
no_cuda
and
torch
.
cuda
.
is_available
()
# GPU settings
GPUID
=
args
.
gpuid
os
.
environ
[
"CUDA_VISIBLE_DEVICES"
]
=
str
(
GPUID
)
use_cuda
=
not
args
.
no_cuda
and
torch
.
cuda
.
is_available
()
torch
.
manual_seed
(
args
.
seed
)
device
=
torch
.
device
(
"cuda"
if
use_cuda
else
"cpu"
)
torch
.
manual_seed
(
1
)
#
settings
#
model-saving dir setting
model_dir
=
args
.
model_dir
if
not
os
.
path
.
exists
(
model_dir
):
os
.
makedirs
(
model_dir
)
...
...
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