charge-benchmark commited on
Commit
1d51e64
·
verified ·
1 Parent(s): 55a0155

Full release

Browse files
Files changed (1) hide show
  1. downloader.py +96 -1
downloader.py CHANGED
@@ -53,6 +53,101 @@ def main(args):
53
  for scene in args.scenes:
54
  if scene == "050_0130":
55
  repo_id = "charge-benchmark/Charge-050_0130"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  snapshot_download(
57
  repo_id=repo_id,
58
  repo_type=repo_type,
@@ -61,7 +156,7 @@ def main(args):
61
  local_dir=args.output_dir
62
  )
63
  else:
64
- print(f"Scene {scene} not available yet.")
65
 
66
 
67
  if __name__ == "__main__":
 
53
  for scene in args.scenes:
54
  if scene == "050_0130":
55
  repo_id = "charge-benchmark/Charge-050_0130"
56
+ snapshot_download(
57
+ repo_id=repo_id,
58
+ repo_type=repo_type,
59
+ allow_patterns=allow_patterns,
60
+ ignore_patterns=exclude_patterns,
61
+ local_dir=args.output_dir
62
+ )
63
+ elif scene == "010_0050":
64
+ repo_id = "charge-benchmark/Charge-010_0050-Dense"
65
+ snapshot_download(
66
+ repo_id=repo_id,
67
+ repo_type=repo_type,
68
+ allow_patterns=allow_patterns,
69
+ ignore_patterns=exclude_patterns,
70
+ local_dir=args.output_dir
71
+ )
72
+ repo_id = "charge-benchmark/Charge-010_0050-Sparse_Mono"
73
+ snapshot_download(
74
+ repo_id=repo_id,
75
+ repo_type=repo_type,
76
+ allow_patterns=allow_patterns,
77
+ ignore_patterns=exclude_patterns,
78
+ local_dir=args.output_dir
79
+ )
80
+ elif scene == "020_0020":
81
+ repo_id = "charge-benchmark/Charge-020_0020-Dense"
82
+ snapshot_download(
83
+ repo_id=repo_id,
84
+ repo_type=repo_type,
85
+ allow_patterns=allow_patterns,
86
+ ignore_patterns=exclude_patterns,
87
+ local_dir=args.output_dir
88
+ )
89
+ repo_id = "charge-benchmark/Charge-020_0020-Sparse_Mono"
90
+ snapshot_download(
91
+ repo_id=repo_id,
92
+ repo_type=repo_type,
93
+ allow_patterns=allow_patterns,
94
+ ignore_patterns=exclude_patterns,
95
+ local_dir=args.output_dir
96
+ )
97
+ elif scene == "040_0040":
98
+ repo_id = "charge-benchmark/Charge-040_0040-DenseTrain"
99
+ snapshot_download(
100
+ repo_id=repo_id,
101
+ repo_type=repo_type,
102
+ allow_patterns=allow_patterns,
103
+ ignore_patterns=exclude_patterns,
104
+ local_dir=args.output_dir
105
+ )
106
+ repo_id = "charge-benchmark/Charge-040_0040-DenseTest"
107
+ snapshot_download(
108
+ repo_id=repo_id,
109
+ repo_type=repo_type,
110
+ allow_patterns=allow_patterns,
111
+ ignore_patterns=exclude_patterns,
112
+ local_dir=args.output_dir
113
+ )
114
+ repo_id = "charge-benchmark/Charge-040_0040-Sparse_Mono"
115
+ snapshot_download(
116
+ repo_id=repo_id,
117
+ repo_type=repo_type,
118
+ allow_patterns=allow_patterns,
119
+ ignore_patterns=exclude_patterns,
120
+ local_dir=args.output_dir
121
+ )
122
+ elif scene == "050_0160":
123
+ repo_id = "charge-benchmark/Charge-050_0160"
124
+ snapshot_download(
125
+ repo_id=repo_id,
126
+ repo_type=repo_type,
127
+ allow_patterns=allow_patterns,
128
+ ignore_patterns=exclude_patterns,
129
+ local_dir=args.output_dir
130
+ )
131
+ elif scene == "060_0100":
132
+ repo_id = "charge-benchmark/Charge-060_0100"
133
+ snapshot_download(
134
+ repo_id=repo_id,
135
+ repo_type=repo_type,
136
+ allow_patterns=allow_patterns,
137
+ ignore_patterns=exclude_patterns,
138
+ local_dir=args.output_dir
139
+ )
140
+ elif scene == "060_0130":
141
+ repo_id = "charge-benchmark/Charge-060_0130"
142
+ snapshot_download(
143
+ repo_id=repo_id,
144
+ repo_type=repo_type,
145
+ allow_patterns=allow_patterns,
146
+ ignore_patterns=exclude_patterns,
147
+ local_dir=args.output_dir
148
+ )
149
+ elif scene == "070_0123":
150
+ repo_id = "charge-benchmark/Charge-070_0123"
151
  snapshot_download(
152
  repo_id=repo_id,
153
  repo_type=repo_type,
 
156
  local_dir=args.output_dir
157
  )
158
  else:
159
+ print(f"Incorrect scene {scene}.")
160
 
161
 
162
  if __name__ == "__main__":