Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request facebookresearch#881 from Sekunde/master
Browse files Browse the repository at this point in the history
Update segmentation_mask.py
  • Loading branch information
botcs authored Sep 11, 2019
2 parents 69563da + a341e4f commit c28dc84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maskrcnn_benchmark/structures/segmentation_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, masks, size):
if len(masks) == 0:
masks = torch.empty([0, size[1], size[0]]) # num_instances = 0!
elif isinstance(masks[0], torch.Tensor):
masks = torch.stack(masks, dim=2).clone()
masks = torch.stack(masks, dim=0).clone()
elif isinstance(masks[0], dict) and "counts" in masks[0]:
# RLE interpretation
rle_sizes = [tuple(inst["size"]) for inst in masks]
Expand Down

0 comments on commit c28dc84

Please sign in to comment.