argus-cv 1.5.1__py3-none-any.whl → 1.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
argus/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Argus - Vision AI dataset toolkit."""
2
2
 
3
- __version__ = "1.5.1"
3
+ __version__ = "1.5.2"
argus/core/coco.py CHANGED
@@ -65,22 +65,22 @@ class COCODataset(Dataset):
65
65
  Returns:
66
66
  List of annotation file paths.
67
67
  """
68
- annotation_files = []
68
+ annotation_files: set[Path] = set()
69
69
 
70
70
  # Check annotations/ directory first
71
71
  annotations_dir = path / "annotations"
72
72
  if annotations_dir.is_dir():
73
- annotation_files.extend(annotations_dir.glob("*.json"))
73
+ annotation_files.update(annotations_dir.glob("*.json"))
74
74
 
75
75
  # Also check root directory for single annotation file
76
- annotation_files.extend(path.glob("*.json"))
76
+ annotation_files.update(path.glob("*.json"))
77
77
 
78
78
  # Check split directories for Roboflow COCO format
79
79
  for split_name in ["train", "valid", "val", "test"]:
80
80
  split_dir = path / split_name
81
81
  if split_dir.is_dir():
82
- annotation_files.extend(split_dir.glob("*annotations*.json"))
83
- annotation_files.extend(split_dir.glob("*coco*.json"))
82
+ annotation_files.update(split_dir.glob("*annotations*.json"))
83
+ annotation_files.update(split_dir.glob("*coco*.json"))
84
84
 
85
85
  # Filter to only include files that might be COCO annotations
86
86
  # (exclude package.json, tsconfig.json, etc.)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: argus-cv
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: CLI tool for working with vision AI datasets
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: numpy>=1.24.0
@@ -1,16 +1,16 @@
1
- argus/__init__.py,sha256=Yo7UDKujDodxid1b2g022IqmD1bwc9POtFSl8iolq5c,64
1
+ argus/__init__.py,sha256=hnocnpAaAbeIoR5OqhisKxpgUkUdll_ZTvgyFHULdg4,64
2
2
  argus/__main__.py,sha256=63ezHx8eL_lCMoZrCbKhmpao0fmdvYVw1chbknGg-oI,104
3
3
  argus/cli.py,sha256=Xri1KFVOMS-YhbwkRE0eB5HOf49kfQuftu0IJU4gAjA,59605
4
4
  argus/commands/__init__.py,sha256=i2oor9hpVpF-_1qZWCGDLwwi1pZGJfZnUKJZ_NMBG18,30
5
5
  argus/core/__init__.py,sha256=L5Onny8UjJtok5hOBKftqwnOhPvgQS5MZT_kgLpes1o,928
6
6
  argus/core/base.py,sha256=WBrB7XWz125YZ1UQfHQwsYAuIFY_XGEhG_0ybgPhn6s,3696
7
- argus/core/coco.py,sha256=V3Ifh6KUbifBTLefUuMxQkejgkwsPZNfKLn0newDZJ4,17539
7
+ argus/core/coco.py,sha256=35dp4GN9_-C4MDEebMnV4A6qhXIldnOZzmpse57Ss9U,17553
8
8
  argus/core/convert.py,sha256=cHuw1E9B4vyozpikS2PJnFfiJ_eRMPIHblizyeZz1Ps,8471
9
9
  argus/core/filter.py,sha256=7BRefzYcKIxU0GkFNHiJJAijc9UIhrvNKdYgXE_22ig,21945
10
10
  argus/core/mask.py,sha256=m7Ztf4lAZx5ITpk3F3mETcvCC6hGydlxK0-2nCjeTfU,21835
11
11
  argus/core/split.py,sha256=kEWtbdg6bH-WiNFf83HkqZD90EL4gsavw6JiefuAETs,10776
12
12
  argus/core/yolo.py,sha256=Vtw2sga40VooaRE8bmjKtr_aYhfoV7ZcVijFjg1DVwo,29644
13
- argus_cv-1.5.1.dist-info/METADATA,sha256=71pcUGzx6s0uCiJjZNUh-4p-z50xCL5xqQC8-JXhNaI,1353
14
- argus_cv-1.5.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
15
- argus_cv-1.5.1.dist-info/entry_points.txt,sha256=dvJFH7BkrOxJnifSjPhwq1YCafPaqdngWyBuFYE73yY,43
16
- argus_cv-1.5.1.dist-info/RECORD,,
13
+ argus_cv-1.5.2.dist-info/METADATA,sha256=Ry_EHKVMvUOFxzJhEqpMR9W9xpeZ8i477cZCE9A339I,1353
14
+ argus_cv-1.5.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
15
+ argus_cv-1.5.2.dist-info/entry_points.txt,sha256=dvJFH7BkrOxJnifSjPhwq1YCafPaqdngWyBuFYE73yY,43
16
+ argus_cv-1.5.2.dist-info/RECORD,,