Skip to content

Commit

Permalink
remove masks requirements (intel-analytics#2959)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxiaoli73 committed Nov 18, 2019
1 parent 0c04895 commit 14bcf67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ case class RoiLabel(classes: Tensor[Float], bboxes: Tensor[Float],
def toTable: Table = {
val table = T()
if (masks != null) {
require(masks.length > 0, "The masks can either be null or a non-empty array")
// masks may be empty array
table(RoiImageInfo.MASKS) = masks.map(_.toRLE)
}
table(RoiImageInfo.CLASSES) = classes
Expand Down

0 comments on commit 14bcf67

Please sign in to comment.