Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
sjjsmuel
caries_classifier
Commits
09b9fbad
Commit
09b9fbad
authored
May 06, 2020
by
sjjsmuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test GAP instead of flatten
the network becomes to large
parent
5b78432f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
network/VGG_16.py
network/VGG_16.py
+1
-1
No files found.
network/VGG_16.py
View file @
09b9fbad
...
...
@@ -31,7 +31,7 @@ class VGG_16(NetworkBase):
if
shouldSave
:
base_model
.
save
(
'input/vgg_base_model.h5'
)
x
=
Flatten
()(
base_model
.
output
)
x
=
GlobalAveragePooling2D
()(
base_model
.
output
)
x
=
Dense
(
4096
,
activation
=
'relu'
)(
x
)
x
=
Dense
(
4096
,
activation
=
'relu'
)(
x
)
out
=
Dense
(
self
.
NUM_CLASSES
,
activation
=
'softmax'
,
name
=
'probs'
)(
x
)
...
...
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