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
96e31bcc
Commit
96e31bcc
authored
Jul 08, 2021
by
zhiyang.zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
a70a18ea
Hide 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 @
96e31bcc
...
...
@@ -77,11 +77,11 @@ def get_model(model_name):
elif
model_name
==
'vgg19_bn'
:
model
=
models
.
vgg19_bn
(
pretrained
=
True
)
model
.
classifier
[
6
]
=
torch
.
nn
.
Linear
(
in_features
=
4096
,
out_features
=
NUM_CLASSES
,
bias
=
True
)
return
model
s
.
to
(
device
)
return
model
.
to
(
device
)
elif
model_name
==
'inception_v3'
:
model
=
models
.
inception_v3
(
pretrained
=
True
)
model
.
fc
=
torch
.
nn
.
Linear
(
in_features
=
2048
,
out_features
=
1000
,
bias
=
True
)
return
model
s
.
to
(
device
)
return
model
.
to
(
device
)
else
:
raise
ValueError
(
'Unsupport model: {0}'
,
model_name
)
...
...
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