Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
75c04257
Commit
75c04257
authored
Feb 08, 2018
by
Neal Wu
Browse files
Further clarification on num_classes comment
parent
3d166f95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
official/resnet/cifar10_main.py
official/resnet/cifar10_main.py
+1
-1
official/resnet/imagenet_main.py
official/resnet/imagenet_main.py
+1
-1
No files found.
official/resnet/cifar10_main.py
View file @
75c04257
...
@@ -138,7 +138,7 @@ class Cifar10Model(resnet.Model):
...
@@ -138,7 +138,7 @@ class Cifar10Model(resnet.Model):
data_format: Either 'channels_first' or 'channels_last', specifying which
data_format: Either 'channels_first' or 'channels_last', specifying which
data format to use when setting up the model.
data format to use when setting up the model.
num_classes: The number of output classes needed from the model. This
num_classes: The number of output classes needed from the model. This
enables users to extend the same model to
different
datasets.
enables users to extend the same model to
their own
datasets.
"""
"""
if
resnet_size
%
6
!=
2
:
if
resnet_size
%
6
!=
2
:
raise
ValueError
(
'resnet_size must be 6n + 2:'
,
resnet_size
)
raise
ValueError
(
'resnet_size must be 6n + 2:'
,
resnet_size
)
...
...
official/resnet/imagenet_main.py
View file @
75c04257
...
@@ -141,7 +141,7 @@ class ImagenetModel(resnet.Model):
...
@@ -141,7 +141,7 @@ class ImagenetModel(resnet.Model):
data_format: Either 'channels_first' or 'channels_last', specifying which
data_format: Either 'channels_first' or 'channels_last', specifying which
data format to use when setting up the model.
data format to use when setting up the model.
num_classes: The number of output classes needed from the model. This
num_classes: The number of output classes needed from the model. This
enables users to extend the same model to
different
datasets.
enables users to extend the same model to
their own
datasets.
"""
"""
# For bigger models, we want to use "bottleneck" layers
# For bigger models, we want to use "bottleneck" layers
...
...
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