Skip to content

Commit

Permalink
in detect function,length of images must be equal to BATCH_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
彭冲 authored and waleedka committed Nov 10, 2017
1 parent 85d574c commit 181a0d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,7 @@ def detect(self, images, verbose=0):
masks: [H, W, N] instance binary masks
"""
assert self.mode == "inference", "Create model in inference mode."
assert len(images) == self.config.BATCH_SIZE, "len(images) must be equal to BATCH_SIZE"

if verbose:
log("Processing {} images".format(len(images)))
Expand Down

0 comments on commit 181a0d3

Please sign in to comment.