Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Matt Harvey
five-video-classification-methods
Commits
f2688f01
Commit
f2688f01
authored
7 years ago
by
Matt Harvey
Browse files
Options
Download
Email Patches
Plain Diff
Migrate Models to K2.
parent
17d2c940
master
add-demo-script
github/fork/Anner-deJong/patch-2
github/fork/ideaRunner/edit_move_file
github/fork/ikvision/master
github/fork/mertia-himanshu/master
github/fork/prabindh/master
github/fork/sanshibayuan/master
playground
playground-add-synthetic
v1.0
1 merge request
!6
Keras 2 upgrade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
train_cnn.py
+1
-1
train_cnn.py
with
1 addition
and
1 deletion
+1
-1
train_cnn.py
+
1
-
1
View file @
f2688f01
...
...
@@ -69,7 +69,7 @@ def get_model(weights='imagenet'):
predictions
=
Dense
(
len
(
data
.
classes
),
activation
=
'softmax'
)(
x
)
# this is the model we will train
model
=
Model
(
input
=
base_model
.
input
,
output
=
predictions
)
model
=
Model
(
input
s
=
base_model
.
input
,
output
s
=
predictions
)
return
model
def
get_top_layer_model
(
base_model
):
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets