Skip to content

Commit

Permalink
Additional comments for the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedka committed Sep 21, 2018
1 parent 2ab84e1 commit 9add121
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mrcnn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ class Config(object):
# the width and height, or more, even if MIN_IMAGE_DIM doesn't require it.
# Howver, in 'square' mode, it can be overruled by IMAGE_MAX_DIM.
IMAGE_MIN_SCALE = 0
# IMAGE_CHANNEL_COUNT refers to number of channels per image, which can
# be overridden by a subclass. RGB = 3, grayscale = 1, RGB-D = 4
# Number of color channels per image. RGB = 3, grayscale = 1, RGB-D = 4
# Changing this requires other changes in the code. See the WIKI for more
# details: https://github.com/matterport/Mask_RCNN/wiki
IMAGE_CHANNEL_COUNT = 3

# Image mean (RGB)
Expand Down Expand Up @@ -217,10 +218,10 @@ def __init__(self):
# Input image size
if self.IMAGE_RESIZE_MODE == "crop":
self.IMAGE_SHAPE = np.array([self.IMAGE_MIN_DIM, self.IMAGE_MIN_DIM,
self.__class__.IMAGE_CHANNEL_COUNT])
self.IMAGE_CHANNEL_COUNT])
else:
self.IMAGE_SHAPE = np.array([self.IMAGE_MAX_DIM, self.IMAGE_MAX_DIM,
self.__class__.IMAGE_CHANNEL_COUNT])
self.IMAGE_CHANNEL_COUNT])

# Image meta data length
# See compose_image_meta() for details
Expand Down

0 comments on commit 9add121

Please sign in to comment.