Skip to content

Commit

Permalink
[Bug fix] tf.boolean_mask cannot accept name=None
Browse files Browse the repository at this point in the history
pass name=None to tf.boolean_mask will lead to ValueError: At least one of name (None) and default_name (None) must be provided.
  • Loading branch information
keineahnung2345 authored and waleedka committed Oct 27, 2018
1 parent 1aca439 commit b62df99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrcnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2812,7 +2812,7 @@ def unmold_image(normalized_images, config):
# Miscellenous Graph Functions
############################################################

def trim_zeros_graph(boxes, name=None):
def trim_zeros_graph(boxes, name='trim_zeros'):
"""Often boxes are represented with matrices of shape [N, 4] and
are padded with zeros. This removes zero boxes.
Expand Down

0 comments on commit b62df99

Please sign in to comment.