Skip to content

Commit

Permalink
Merge pull request #1767 from roboflow/fix/loosing_data_during_detect…
Browse files Browse the repository at this point in the history
…ion_filtering

fix loosing data during detection filtering
  • Loading branch information
SkalskiP authored Jan 8, 2025
2 parents 3248723 + 663522b commit 656f639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "supervision"
description = "A set of easy-to-use utils that will come in handy in any Computer Vision project"
license = { text = "MIT" }
version = "0.26.0rc2"
version = "0.26.0rc3"
readme = "README.md"
requires-python = ">=3.8"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion supervision/detection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ def __getitem__(
if isinstance(index, str):
return self.data.get(index)
if self.is_empty():
return Detections.empty()
return self
if isinstance(index, int):
index = [index]
return Detections(
Expand Down

0 comments on commit 656f639

Please sign in to comment.