fix: load script
Browse files- .gitattributes +1 -0
- dogs-video-object-tracking-dataset.py +4 -2
.gitattributes
CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
data filter=lfs diff=lfs merge=lfs -text
|
dogs-video-object-tracking-dataset.py
CHANGED
@@ -80,11 +80,13 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
82 |
data = dl_manager.download_and_extract(self.config.data_dir)
|
|
|
83 |
return [
|
84 |
datasets.SplitGenerator(
|
85 |
name=datasets.Split.TRAIN,
|
86 |
gen_kwargs={
|
87 |
"data": data,
|
|
|
88 |
},
|
89 |
),
|
90 |
]
|
@@ -149,8 +151,8 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
149 |
|
150 |
return shape_data
|
151 |
|
152 |
-
def _generate_examples(self, data):
|
153 |
-
tree = ET.parse(
|
154 |
root = tree.getroot()
|
155 |
|
156 |
for idx, file in enumerate(sorted(os.listdir(f"{data}/images"))):
|
|
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
82 |
data = dl_manager.download_and_extract(self.config.data_dir)
|
83 |
+
annotations = dl_manager.download(f"{self.config.name}.xml")
|
84 |
return [
|
85 |
datasets.SplitGenerator(
|
86 |
name=datasets.Split.TRAIN,
|
87 |
gen_kwargs={
|
88 |
"data": data,
|
89 |
+
"annotations": annotations,
|
90 |
},
|
91 |
),
|
92 |
]
|
|
|
151 |
|
152 |
return shape_data
|
153 |
|
154 |
+
def _generate_examples(self, data, annotations):
|
155 |
+
tree = ET.parse(annotations)
|
156 |
root = tree.getroot()
|
157 |
|
158 |
for idx, file in enumerate(sorted(os.listdir(f"{data}/images"))):
|