Skip to content

Commit

Permalink
add warning to load_mask of dataset class
Browse files Browse the repository at this point in the history
use logging.warning() instead of print()
  • Loading branch information
xelmirage authored and waleedka committed Feb 10, 2019
1 parent fb76624 commit 4f440de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrcnn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def load_mask(self, image_id):
"""
# Override this function to load a mask from your dataset.
# Otherwise, it returns an empty mask.
logging.warning("You are using the default load_mask(), maybe you need to define your own one.")
mask = np.empty([0, 0, 0])
class_ids = np.empty([0], np.int32)
return mask, class_ids
Expand Down

0 comments on commit 4f440de

Please sign in to comment.