-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtool_datasets.py
190 lines (160 loc) · 5.89 KB
/
tool_datasets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
from .combined_dataset import CombinedImageDataset
class KTH_ReID_v1(CombinedImageDataset):
"""
ReiD tool dataset created from KTH dataset.
Evaluation Only!
# identities: 9
# images train: 0
# images test: 108
# images query: 27
"""
def __init__(self, root='./toDataset', verbose=True):
super(KTH_ReID_v1, self).__init__(
train_splits=[],
query_splits=["kth_reid_v1"],
name="kth_reid_v1", root=root, verbose=verbose
)
class WorkingHands_ReID_v1(CombinedImageDataset):
"""
ReiD tool dataset created from WorkingHands dataset.
Evaluation Only!
# identities: 11
# images train: 0
# images test: 132
# images query: 33
"""
def __init__(self, root='./toDataset', verbose=True):
super(WorkingHands_ReID_v1, self).__init__(
train_splits=[],
query_splits=["workinghands_reid_v1"],
name="workinghands_reid_v1", root=root, verbose=verbose
)
class WorkingHands_ReID_v2(CombinedImageDataset):
"""
Improved (but smaller) version of WorkingHands_ReID_v1.
Evaluation Only!
# identities: 5
# images train: 0
# images test: 60
# images query: 15
"""
def __init__(self, root='./toDataset', verbose=True):
super(WorkingHands_ReID_v2, self).__init__(
train_splits=[],
query_splits=["workinghands_reid_v2"],
name="workinghands_reid_v2", root=root, verbose=verbose
)
class Attach_ReID_v1(CombinedImageDataset):
"""
ReiD tool dataset created from E4SM Attach dataset.
Evaluation Only!
# identities: 3
# images train: 0
# images test: 36
# images query: 9
"""
def __init__(self, root='./toDataset', verbose=True):
super(Attach_ReID_v1, self).__init__(
train_splits=[],
query_splits=["attach_reid_v1"],
name="attach_reid_v1", root=root, verbose=verbose
)
class Attach_ReID_v2(CombinedImageDataset):
"""
Improved version of Attach_ReID_v1.
Evaluation Only!
# identities: 3
# images train: 0
# images test: 36
# images query: 9
"""
def __init__(self, root='./toDataset', verbose=True):
super(Attach_ReID_v2, self).__init__(
train_splits=[],
query_splits=["attach_reid_v2"],
name="attach_reid_v2", root=root, verbose=verbose
)
class CombinedTools_v1(CombinedImageDataset):
"""
Combined ReID tool dataset created from KTH, WorkingHands and E4SM Attach datasets.
Evaluation Only!
# identities: 23
# images train: 0
# images test: 276
# images query: 69
"""
def __init__(self, root='./toDataset', verbose=True):
super(CombinedTools_v1, self).__init__(
train_splits=[],
query_splits=["kth_reid_v1", "workinghands_reid_v1", "attach_reid_v1"],
name="combined_tools_reid_v1", root=root, verbose=verbose
)
class CombinedTools_v2(CombinedImageDataset):
"""
Improved (but smaller) ReID tool dataset created from KTH, WorkingHands and E4SM Attach datasets.
Evaluation Only!
# identities: 17
# images train: 0
# images test: 204
# images query: 51
"""
def __init__(self, root='./toDataset', verbose=True):
super(CombinedTools_v2, self).__init__(
train_splits=[],
query_splits=["kth_reid_v1", "workinghands_reid_v2", "attach_reid_v2"],
name="combined_tools_reid_v2", root=root, verbose=verbose
)
class CombinedToolsCO3D_v1(CombinedImageDataset):
"""
Combined ReID tool dataset created from KTH, WorkingHands and E4SM Attach datasets.
Includes all CO3D gallery samples to increase evaluation difficulty.
Also includes CO3D train split for convenience.
Evaluation Only!
# identities: 23
# images train: 0 + 161255
# images test: 276 + 134681
# images query: 68
"""
def __init__(self, root='./toDataset', verbose=True):
super(CombinedToolsCO3D_v1, self).__init__(
train_splits=["co3d_reid_v1"],
query_splits=["kth_reid_v1", "workinghands_reid_v1", "attach_reid_v1"],
add_gallery_splits=["co3d_reid_v1"],
name="combined_tools_co3d_reid_v1", root=root, verbose=verbose
)
class CombinedToolsCO3D_v2(CombinedImageDataset):
"""
Improved ReID tool dataset created from KTH, WorkingHands and E4SM Attach datasets.
Includes all CO3D gallery samples to increase evaluation difficulty.
Also includes CO3D train split for convenience.
Evaluation Only!
# identities: 17
# images train: 0 + 161255
# images test: 204 + 134681
# images query: 51
"""
def __init__(self, root='./toDataset', verbose=True):
super(CombinedToolsCO3D_v2, self).__init__(
train_splits=["co3d_reid_v1"],
query_splits=["kth_reid_v1", "workinghands_reid_v2", "attach_reid_v2"],
add_gallery_splits=["co3d_reid_v1"],
name="combined_tools_co3d_reid_v2", root=root, verbose=verbose
)
class CombinedToolsRedwood_v1(CombinedImageDataset):
"""
Improved ReID tool dataset created from KTH, WorkingHands and E4SM Attach datasets.
Includes all Redwood gallery samples to increase evaluation difficulty.
Also includes Redwood train split for convenience.
Evaluation Only!
# identities: 17
# images train: 0 + 111045
# images test: 204 + 85746
# images query: 51
"""
def __init__(self, root='./toDataset', verbose=True):
super(CombinedToolsRedwood_v1, self).__init__(
train_splits=["redwood_reid_v1"],
query_splits=["kth_reid_v1", "workinghands_reid_v2", "attach_reid_v2"],
add_gallery_splits=["redwood_reid_v1"],
name="combined_tools_redwood_reid_v1", root=root, verbose=verbose
)