Vadzim Kashko
commited on
Commit
•
54e6873
1
Parent(s):
e2ff229
fix: script, docs: readme
Browse files- README.md +18 -2
- parking-space-detection-dataset.py +3 -1
README.md
CHANGED
@@ -1,12 +1,28 @@
|
|
1 |
---
|
|
|
|
|
2 |
license: cc-by-nc-nd-4.0
|
3 |
task_categories:
|
4 |
- image-classification
|
5 |
- image-to-image
|
6 |
-
language:
|
7 |
-
- en
|
8 |
tags:
|
9 |
- code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
# Parking Space Detection & Classification Dataset
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
license: cc-by-nc-nd-4.0
|
5 |
task_categories:
|
6 |
- image-classification
|
7 |
- image-to-image
|
|
|
|
|
8 |
tags:
|
9 |
- code
|
10 |
+
dataset_info:
|
11 |
+
features:
|
12 |
+
- name: id
|
13 |
+
dtype: int32
|
14 |
+
- name: image
|
15 |
+
dtype: image
|
16 |
+
- name: mask
|
17 |
+
dtype: image
|
18 |
+
- name: bboxes
|
19 |
+
dtype: string
|
20 |
+
splits:
|
21 |
+
- name: train
|
22 |
+
num_bytes: 44610347
|
23 |
+
num_examples: 30
|
24 |
+
download_size: 44532683
|
25 |
+
dataset_size: 44610347
|
26 |
---
|
27 |
|
28 |
# Parking Space Detection & Classification Dataset
|
parking-space-detection-dataset.py
CHANGED
@@ -76,5 +76,7 @@ class ParkingSpaceDetectionDataset(datasets.GeneratorBasedBuilder):
|
|
76 |
].values[0],
|
77 |
"image": {"path": image_path, "bytes": image.read()},
|
78 |
"mask": {"path": mask_path, "bytes": mask.read()},
|
79 |
-
"bboxes": annotations_df
|
|
|
|
|
80 |
}
|
|
|
76 |
].values[0],
|
77 |
"image": {"path": image_path, "bytes": image.read()},
|
78 |
"mask": {"path": mask_path, "bytes": mask.read()},
|
79 |
+
"bboxes": annotations_df.loc[
|
80 |
+
annotations_df["image_name"] == image_path
|
81 |
+
]["annotations"].values[0],
|
82 |
}
|