labelr 0.5.0__tar.gz → 0.6.0__tar.gz

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.
Files changed (26) hide show
  1. {labelr-0.5.0/src/labelr.egg-info → labelr-0.6.0}/PKG-INFO +1 -1
  2. {labelr-0.5.0 → labelr-0.6.0}/pyproject.toml +1 -1
  3. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/train.py +1 -1
  4. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/export.py +10 -1
  5. {labelr-0.5.0 → labelr-0.6.0/src/labelr.egg-info}/PKG-INFO +1 -1
  6. {labelr-0.5.0 → labelr-0.6.0}/LICENSE +0 -0
  7. {labelr-0.5.0 → labelr-0.6.0}/README.md +0 -0
  8. {labelr-0.5.0 → labelr-0.6.0}/setup.cfg +0 -0
  9. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/__init__.py +0 -0
  10. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/__main__.py +0 -0
  11. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/annotate.py +0 -0
  12. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/__init__.py +0 -0
  13. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/datasets.py +0 -0
  14. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/projects.py +0 -0
  15. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/users.py +0 -0
  16. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/check.py +0 -0
  17. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/config.py +0 -0
  18. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/main.py +0 -0
  19. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/project_config.py +0 -0
  20. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/sample.py +0 -0
  21. {labelr-0.5.0 → labelr-0.6.0}/src/labelr/types.py +0 -0
  22. {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/SOURCES.txt +0 -0
  23. {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/dependency_links.txt +0 -0
  24. {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/entry_points.txt +0 -0
  25. {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/requires.txt +0 -0
  26. {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: labelr
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: A command-line tool to manage labeling tasks with Label Studio.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "labelr"
3
- version = "0.5.0"
3
+ version = "0.6.0"
4
4
  description = "A command-line tool to manage labeling tasks with Label Studio."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -128,7 +128,7 @@ def launch_job(
128
128
  # will run on.
129
129
  policy = batch_v1.AllocationPolicy.InstancePolicy()
130
130
  # See list of machine types here:
131
- # https://docs.cloud.google.com/compute/docs/gpus#l4-gpus
131
+ # https://docs.cloud.google.com/compute/docs/gpus#t4-gpus
132
132
  policy.machine_type = machine_type
133
133
 
134
134
  accelerator = batch_v1.AllocationPolicy.Accelerator()
@@ -240,13 +240,22 @@ def export_from_hf_to_ultralytics_object_detection(
240
240
  data_dir.mkdir(parents=True, exist_ok=True)
241
241
  category_id_to_name = {}
242
242
 
243
+ split_map = {
244
+ "train": "train",
245
+ "val": "val",
246
+ }
247
+ if "val" not in ds and "test" in ds:
248
+ logger.info("val split not found, using test split instead as val")
249
+ split_map["val"] = "test"
250
+
243
251
  for split in ["train", "val"]:
252
+ split_target = split_map[split]
244
253
  split_labels_dir = data_dir / "labels" / split
245
254
  split_labels_dir.mkdir(parents=True, exist_ok=True)
246
255
  split_images_dir = data_dir / "images" / split
247
256
  split_images_dir.mkdir(parents=True, exist_ok=True)
248
257
 
249
- for sample in tqdm.tqdm(ds[split], desc="samples"):
258
+ for sample in tqdm.tqdm(ds[split_target], desc="samples"):
250
259
  image_id = sample["image_id"]
251
260
 
252
261
  if download_images:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: labelr
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: A command-line tool to manage labeling tasks with Label Studio.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes