Skip to content

Commit

Permalink
Merge pull request #64 from roboflow/feature/small_housekeeping_befor…
Browse files Browse the repository at this point in the history
…e_release

🧹 Small housekeeping before release
  • Loading branch information
SkalskiP authored Apr 13, 2023
2 parents e9649ac + b34ecd5 commit 7497f8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.5.2 <small>April 13, 2023</small>

- Fixed [[#63](https://github.com/roboflow/supervision/pull/63)]: `LineZone.trigger` function expects 4 values instead of 5.

### 0.5.1 <small>April 12, 2023</small>

- Fixed `Detections.__getitem__` method did not return mask for selected item.
Expand Down
2 changes: 1 addition & 1 deletion supervision/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.5.1"
__version__ = "0.5.2"

from supervision.annotation.voc import detections_to_voc_xml
from supervision.detection.annotate import BoxAnnotator, MaskAnnotator
Expand Down
4 changes: 1 addition & 3 deletions supervision/detection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ def __getitem__(self, index: np.ndarray) -> Detections:
):
return Detections(
xyxy=self.xyxy[index],
mask=self.mask[index]
if self.mask is not None
else None,
mask=self.mask[index] if self.mask is not None else None,
confidence=self.confidence[index]
if self.confidence is not None
else None,
Expand Down

0 comments on commit 7497f8d

Please sign in to comment.