fix: load script
Browse files- README.md +6 -6
- dogs-video-object-tracking-dataset.py +2 -1
README.md
CHANGED
@@ -45,10 +45,10 @@ dataset_info:
|
|
45 |
dtype: string
|
46 |
splits:
|
47 |
- name: train
|
48 |
-
num_bytes:
|
49 |
num_examples: 52
|
50 |
download_size: 313764780
|
51 |
-
dataset_size:
|
52 |
- config_name: video_02
|
53 |
features:
|
54 |
- name: id
|
@@ -85,10 +85,10 @@ dataset_info:
|
|
85 |
dtype: string
|
86 |
splits:
|
87 |
- name: train
|
88 |
-
num_bytes:
|
89 |
num_examples: 58
|
90 |
download_size: 67449223
|
91 |
-
dataset_size:
|
92 |
- config_name: video_03
|
93 |
features:
|
94 |
- name: id
|
@@ -125,10 +125,10 @@ dataset_info:
|
|
125 |
dtype: string
|
126 |
splits:
|
127 |
- name: train
|
128 |
-
num_bytes:
|
129 |
num_examples: 49
|
130 |
download_size: 148631560
|
131 |
-
dataset_size:
|
132 |
---
|
133 |
|
134 |
# Dogs Video Object Tracking Dataset
|
|
|
45 |
dtype: string
|
46 |
splits:
|
47 |
- name: train
|
48 |
+
num_bytes: 153078627
|
49 |
num_examples: 52
|
50 |
download_size: 313764780
|
51 |
+
dataset_size: 153078627
|
52 |
- config_name: video_02
|
53 |
features:
|
54 |
- name: id
|
|
|
85 |
dtype: string
|
86 |
splits:
|
87 |
- name: train
|
88 |
+
num_bytes: 33878332
|
89 |
num_examples: 58
|
90 |
download_size: 67449223
|
91 |
+
dataset_size: 33878332
|
92 |
- config_name: video_03
|
93 |
features:
|
94 |
- name: id
|
|
|
125 |
dtype: string
|
126 |
splits:
|
127 |
- name: train
|
128 |
+
num_bytes: 72588079
|
129 |
num_examples: 49
|
130 |
download_size: 148631560
|
131 |
+
dataset_size: 72588079
|
132 |
---
|
133 |
|
134 |
# Dogs Video Object Tracking Dataset
|
dogs-video-object-tracking-dataset.py
CHANGED
@@ -157,6 +157,7 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
157 |
root = tree.getroot()
|
158 |
|
159 |
for idx, (image_path, image) in enumerate(data):
|
|
|
160 |
if "images" in image_path:
|
161 |
i = image_path.split("_")[-1][:2]
|
162 |
img = self.extract_shapes_from_tracks(root, image_path, i)
|
@@ -168,7 +169,7 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
168 |
yield idx, {
|
169 |
"id": image_id,
|
170 |
"name": name,
|
171 |
-
"image": image_path,
|
172 |
"mask": f"{image_path.replace('images', 'boxes')}",
|
173 |
"shapes": shapes,
|
174 |
}
|
|
|
157 |
root = tree.getroot()
|
158 |
|
159 |
for idx, (image_path, image) in enumerate(data):
|
160 |
+
print(image_path)
|
161 |
if "images" in image_path:
|
162 |
i = image_path.split("_")[-1][:2]
|
163 |
img = self.extract_shapes_from_tracks(root, image_path, i)
|
|
|
169 |
yield idx, {
|
170 |
"id": image_id,
|
171 |
"name": name,
|
172 |
+
"image": {"path": image_path, "bytes": image.read()},
|
173 |
"mask": f"{image_path.replace('images', 'boxes')}",
|
174 |
"shapes": shapes,
|
175 |
}
|