Skip to content

Commit

Permalink
fix coco config
Browse files Browse the repository at this point in the history
  • Loading branch information
bendangnuksung authored Oct 8, 2020
1 parent 49ea5cd commit 21e4fb3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class mask_config():
def __init__(self, NUMBER_OF_CLASSES):
def __init__(self, NUMBER_OF_CLASSES=80):
self.NAME = "tags"
self.IMAGES_PER_GPU = 2
self.NUM_CLASSES = 1 + NUMBER_OF_CLASSES # Background + tags
Expand Down Expand Up @@ -65,3 +65,12 @@ def __init__(self, NUMBER_OF_CLASSES):
# Image meta data length
# See compose_image_meta() for details
self.IMAGE_META_SIZE = 1 + 3 + 3 + 4 + 1 + self.NUM_CLASSES


class CocoConfig(mask_config):
"""Configuration for training on MS COCO.
Derives from the base Config class and overrides values specific
to the COCO dataset.
"""
# Give the configuration a recognizable name
NAME = "coco"

0 comments on commit 21e4fb3

Please sign in to comment.