INeedNZT commited on
Commit
8f52740
1 Parent(s): 76ba023

Abandon using datasets, use git download instead

Browse files
Files changed (1) hide show
  1. kitti.py +0 -80
kitti.py DELETED
@@ -1,80 +0,0 @@
1
- # MIT License
2
- #
3
- # Copyright (c) 2024 Jingming Xia.
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
22
-
23
- """KITTI raw and depth map dataset."""
24
-
25
-
26
- import datasets
27
-
28
-
29
- _DESCRIPTION = """\
30
- This dataset contains over 93 thousand annotated depth maps aligned with the "raw data" of the KITTI dataset.
31
- """
32
-
33
- _HOMEPAGE = "https://www.cvlibs.net/datasets/kitti/eval_depth_all.php"
34
-
35
- _LICENSE = "MIT License"
36
-
37
- DIR_LIST = ["2011_09_26", "2011_09_28",
38
- "2011_09_29", "2011_09_30", "2011_10_03"]
39
-
40
- _URLS = {
41
- "rgb": [f"rgb/{dir}.tar" for dir in DIR_LIST],
42
- "depth": [f"depth/{dir}.tar" for dir in DIR_LIST]
43
- }
44
-
45
-
46
- class KITTI(datasets.GeneratorBasedBuilder):
47
- """KITTI raw and depth map dataset."""
48
-
49
- VERSION = datasets.Version("1.1.0")
50
-
51
- def _info(self):
52
- features = datasets.Features(
53
- {"path": datasets.Value("string")}
54
- )
55
- return datasets.DatasetInfo(
56
- description=_DESCRIPTION,
57
- features=features,
58
- homepage=_HOMEPAGE,
59
- license=_LICENSE
60
- )
61
-
62
- def _split_generators(self, dl_manager):
63
- return [
64
- datasets.SplitGenerator(
65
- name="rgb",
66
- gen_kwargs={
67
- "path": dl_manager.download_and_extract(_URLS["rgb"]),
68
- },
69
- ),
70
- datasets.SplitGenerator(
71
- name="depth",
72
- gen_kwargs={
73
- "path": dl_manager.download_and_extract(_URLS["depth"]),
74
- },
75
- )
76
- ]
77
-
78
- def _generate_examples(self, path):
79
- # We only return the extract path
80
- yield 0, {"path": path}