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.
- {labelr-0.5.0/src/labelr.egg-info → labelr-0.6.0}/PKG-INFO +1 -1
- {labelr-0.5.0 → labelr-0.6.0}/pyproject.toml +1 -1
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/train.py +1 -1
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/export.py +10 -1
- {labelr-0.5.0 → labelr-0.6.0/src/labelr.egg-info}/PKG-INFO +1 -1
- {labelr-0.5.0 → labelr-0.6.0}/LICENSE +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/README.md +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/setup.cfg +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/__init__.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/__main__.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/annotate.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/__init__.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/datasets.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/projects.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/apps/users.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/check.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/config.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/main.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/project_config.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/sample.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr/types.py +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/SOURCES.txt +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/dependency_links.txt +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/entry_points.txt +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/requires.txt +0 -0
- {labelr-0.5.0 → labelr-0.6.0}/src/labelr.egg-info/top_level.txt +0 -0
|
@@ -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#
|
|
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[
|
|
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:
|
|
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
|
|
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
|