Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
clmpng authored Oct 22, 2020
1 parent 848bf45 commit 49e4e5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrcnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,7 @@ def hook(images, augmenter, parents, default):
_idx = np.sum(mask, axis=(0, 1)) > 0
mask = mask[:, :, _idx]
class_ids = class_ids[_idx]
print(class_ids)
# Bounding boxes. Note that some boxes might be all zeros
# if the corresponding mask got cropped out.
# bbox: [num_instances, (y1, x1, y2, x2)]
Expand Down

0 comments on commit 49e4e5c

Please sign in to comment.