fix
Browse files
dogs-video-object-tracking-dataset.py
CHANGED
@@ -32,9 +32,9 @@ _LABELS = ["dog"]
|
|
32 |
|
33 |
class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
34 |
BUILDER_CONFIGS = [
|
35 |
-
datasets.BuilderConfig(name="video_01"),
|
36 |
-
datasets.BuilderConfig(name="video_02"),
|
37 |
-
datasets.BuilderConfig(name="video_03"),
|
38 |
]
|
39 |
|
40 |
DEFAULT_CONFIG_NAME = "video_01"
|
@@ -79,7 +79,9 @@ class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
|
79 |
)
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
82 |
-
images = dl_manager.download_and_extract(
|
|
|
|
|
83 |
annotations = dl_manager.download(f"{_DATA}{self.config.name}.xml")
|
84 |
# images = dl_manager.iter_files(images)
|
85 |
return [
|
|
|
32 |
|
33 |
class DogsVideoObjectTrackingDataset(datasets.GeneratorBasedBuilder):
|
34 |
BUILDER_CONFIGS = [
|
35 |
+
datasets.BuilderConfig(name="video_01", data_dir=f"{_DATA}"),
|
36 |
+
datasets.BuilderConfig(name="video_02", data_dir=f"{_DATA}"),
|
37 |
+
datasets.BuilderConfig(name="video_03", data_dir=f"{_DATA}"),
|
38 |
]
|
39 |
|
40 |
DEFAULT_CONFIG_NAME = "video_01"
|
|
|
79 |
)
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
82 |
+
images = dl_manager.download_and_extract(
|
83 |
+
f"{self.config.data_dir}{self.config.name}.zip"
|
84 |
+
)
|
85 |
annotations = dl_manager.download(f"{_DATA}{self.config.name}.xml")
|
86 |
# images = dl_manager.iter_files(images)
|
87 |
return [
|