Commit 75c04257 authored by Neal Wu's avatar Neal Wu
Browse files

Further clarification on num_classes comment

parent 3d166f95
...@@ -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)
......
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment