Skip to content

Commit 656f639

Browse files
authored
Merge pull request #1767 from roboflow/fix/loosing_data_during_detection_filtering
fix loosing data during detection filtering
2 parents 3248723 + 663522b commit 656f639

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "supervision"
33
description = "A set of easy-to-use utils that will come in handy in any Computer Vision project"
44
license = { text = "MIT" }
5-
version = "0.26.0rc2"
5+
version = "0.26.0rc3"
66
readme = "README.md"
77
requires-python = ">=3.8"
88
authors = [

supervision/detection/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ def __getitem__(
12031203
if isinstance(index, str):
12041204
return self.data.get(index)
12051205
if self.is_empty():
1206-
return Detections.empty()
1206+
return self
12071207
if isinstance(index, int):
12081208
index = [index]
12091209
return Detections(

0 commit comments

Comments
 (0)