Datasets:
fix: script docs: readme
Browse files- README.md +5 -5
- basketball_tracking.py +2 -3
README.md
CHANGED
|
@@ -8,20 +8,20 @@ tags:
|
|
| 8 |
- code
|
| 9 |
dataset_info:
|
| 10 |
features:
|
| 11 |
-
- name:
|
| 12 |
dtype: int32
|
| 13 |
- name: image
|
| 14 |
dtype: image
|
| 15 |
- name: mask
|
| 16 |
dtype: image
|
| 17 |
-
- name:
|
| 18 |
dtype: string
|
| 19 |
splits:
|
| 20 |
- name: train
|
| 21 |
-
num_bytes:
|
| 22 |
num_examples: 70
|
| 23 |
-
download_size:
|
| 24 |
-
dataset_size:
|
| 25 |
---
|
| 26 |
|
| 27 |
# Basketball Tracking
|
|
|
|
| 8 |
- code
|
| 9 |
dataset_info:
|
| 10 |
features:
|
| 11 |
+
- name: image_id
|
| 12 |
dtype: int32
|
| 13 |
- name: image
|
| 14 |
dtype: image
|
| 15 |
- name: mask
|
| 16 |
dtype: image
|
| 17 |
+
- name: shapes
|
| 18 |
dtype: string
|
| 19 |
splits:
|
| 20 |
- name: train
|
| 21 |
+
num_bytes: 191244976
|
| 22 |
num_examples: 70
|
| 23 |
+
download_size: 191271989
|
| 24 |
+
dataset_size: 191244976
|
| 25 |
---
|
| 26 |
|
| 27 |
# Basketball Tracking
|
basketball_tracking.py
CHANGED
|
@@ -62,11 +62,10 @@ class BasketballTracking(datasets.GeneratorBasedBuilder):
|
|
| 62 |
|
| 63 |
for idx, ((image_path, image),
|
| 64 |
(mask_path, mask)) in enumerate(zip(images, masks)):
|
| 65 |
-
file_name = '/'.join(image_path.split('/')[-2:])
|
| 66 |
yield idx, {
|
| 67 |
'image_id':
|
| 68 |
annotations_df.loc[
|
| 69 |
-
annotations_df['image_name'] ==
|
| 70 |
['image_id'].values[0],
|
| 71 |
"image": {
|
| 72 |
"path": image_path,
|
|
@@ -78,6 +77,6 @@ class BasketballTracking(datasets.GeneratorBasedBuilder):
|
|
| 78 |
},
|
| 79 |
'shapes':
|
| 80 |
annotations_df.loc[
|
| 81 |
-
annotations_df['image_name'] ==
|
| 82 |
['shapes'].values[0]
|
| 83 |
}
|
|
|
|
| 62 |
|
| 63 |
for idx, ((image_path, image),
|
| 64 |
(mask_path, mask)) in enumerate(zip(images, masks)):
|
|
|
|
| 65 |
yield idx, {
|
| 66 |
'image_id':
|
| 67 |
annotations_df.loc[
|
| 68 |
+
annotations_df['image_name'] == image_path]
|
| 69 |
['image_id'].values[0],
|
| 70 |
"image": {
|
| 71 |
"path": image_path,
|
|
|
|
| 77 |
},
|
| 78 |
'shapes':
|
| 79 |
annotations_df.loc[
|
| 80 |
+
annotations_df['image_name'] == image_path]
|
| 81 |
['shapes'].values[0]
|
| 82 |
}
|