fix
Browse files- README.md +6 -6
- dogs-video-object-tracking-dataset.py +2 -2
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: 313328015
|
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: 67354761
|
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: 148412090
|
131 |
-
dataset_size:
|
132 |
---
|
133 |
|
134 |
# Dogs Video Object Tracking Dataset
|
|
|
45 |
dtype: string
|
46 |
splits:
|
47 |
- name: train
|
48 |
+
num_bytes: 14990
|
49 |
num_examples: 52
|
50 |
download_size: 313328015
|
51 |
+
dataset_size: 14990
|
52 |
- config_name: video_02
|
53 |
features:
|
54 |
- name: id
|
|
|
85 |
dtype: string
|
86 |
splits:
|
87 |
- name: train
|
88 |
+
num_bytes: 19600
|
89 |
num_examples: 58
|
90 |
download_size: 67354761
|
91 |
+
dataset_size: 19600
|
92 |
- config_name: video_03
|
93 |
features:
|
94 |
- name: id
|
|
|
125 |
dtype: string
|
126 |
splits:
|
127 |
- name: train
|
128 |
+
num_bytes: 14126
|
129 |
num_examples: 49
|
130 |
download_size: 148412090
|
131 |
+
dataset_size: 14126
|
132 |
---
|
133 |
|
134 |
# Dogs Video Object Tracking Dataset
|
dogs-video-object-tracking-dataset.py
CHANGED
@@ -153,7 +153,7 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
153 |
tree = ET.parse(os.path.join(data, "annotations.xml"))
|
154 |
root = tree.getroot()
|
155 |
|
156 |
-
for idx, file in enumerate(sorted(os.listdir(
|
157 |
img = self.extract_shapes_from_tracks(root, file, idx)
|
158 |
|
159 |
image_id = img.get("id")
|
@@ -164,7 +164,7 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
164 |
yield idx, {
|
165 |
"id": image_id,
|
166 |
"name": name,
|
167 |
-
"image":
|
168 |
"mask": f"{data}/masks/{file}",
|
169 |
"shapes": shapes,
|
170 |
}
|
|
|
153 |
tree = ET.parse(os.path.join(data, "annotations.xml"))
|
154 |
root = tree.getroot()
|
155 |
|
156 |
+
for idx, file in enumerate(sorted(os.listdir(os.path.join(data, "images")))):
|
157 |
img = self.extract_shapes_from_tracks(root, file, idx)
|
158 |
|
159 |
image_id = img.get("id")
|
|
|
164 |
yield idx, {
|
165 |
"id": image_id,
|
166 |
"name": name,
|
167 |
+
"image": file,
|
168 |
"mask": f"{data}/masks/{file}",
|
169 |
"shapes": shapes,
|
170 |
}
|