Skip to content

Commit

Permalink
fix s3dis preprocessing (open-mmlab#1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
filaPro authored Aug 1, 2022
1 parent fe8f9d4 commit f070d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/en/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Before mmdet3d version 1.0.0rc4 we sampled 50000 points following VoteNet prepro

Please refer to the SUN RGB-D [README.md](https://github.com/open-mmlab/mmdetection3d/blob/master/data/sunrgbd/README.md/) for more details.

### Fix a small amount of missing objects during S3DIS preprocessing

We fixed a bug in `tools/data_converter/s3dis_data_utils.py` leading to miss not more than one object per scene. Users need to regenerate the annotations with `tools/create_data.py`.

## v1.0.0rc1

### Operators Migration
Expand Down
2 changes: 1 addition & 1 deletion tools/data_converter/s3dis_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_bboxes(self, points, pts_instance_mask, pts_semantic_mask):
- gt_num (int): Number of boxes.
"""
bboxes, labels = [], []
for i in range(1, pts_instance_mask.max()):
for i in range(1, pts_instance_mask.max() + 1):
ids = pts_instance_mask == i
# check if all instance points have same semantic label
assert pts_semantic_mask[ids].min() == pts_semantic_mask[ids].max()
Expand Down

0 comments on commit f070d55

Please sign in to comment.