fix: file names
Browse files- .gitattributes +0 -139
- hand-gesture-recognition-dataset.py +5 -6
.gitattributes
CHANGED
@@ -53,143 +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
|
56 |
-
files/0/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
57 |
-
files/0/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
-
files/0/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
59 |
-
files/0/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
60 |
-
files/0/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
61 |
-
files/1/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
62 |
-
files/1/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
63 |
-
files/1/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
64 |
-
files/1/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
65 |
-
files/1/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
66 |
-
files/10/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
67 |
-
files/10/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
68 |
-
files/10/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
69 |
-
files/10/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
70 |
-
files/10/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
71 |
-
files/11/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
72 |
-
files/11/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
73 |
-
files/11/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
74 |
-
files/11/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
75 |
-
files/11/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
76 |
-
files/12/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
77 |
-
files/12/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
78 |
-
files/12/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
79 |
-
files/12/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
80 |
-
files/12/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
81 |
-
files/13/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
82 |
-
files/13/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
83 |
-
files/13/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
84 |
-
files/13/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
85 |
-
files/13/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
86 |
-
files/14/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
87 |
-
files/14/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
88 |
-
files/14/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
89 |
-
files/14/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
90 |
-
files/14/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
91 |
-
files/15/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
92 |
-
files/15/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
93 |
-
files/15/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
94 |
-
files/15/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
95 |
-
files/15/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
96 |
-
files/16/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
97 |
-
files/16/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
98 |
-
files/16/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
99 |
-
files/16/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
100 |
-
files/16/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
101 |
-
files/17/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
102 |
-
files/17/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
103 |
-
files/17/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
104 |
-
files/17/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
105 |
-
files/17/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
106 |
-
files/18/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
107 |
-
files/18/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
108 |
-
files/18/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
109 |
-
files/18/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
110 |
-
files/18/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
111 |
-
files/19/fist.MOV filter=lfs diff=lfs merge=lfs -text
|
112 |
-
files/19/four.MOV filter=lfs diff=lfs merge=lfs -text
|
113 |
-
files/19/me.MOV filter=lfs diff=lfs merge=lfs -text
|
114 |
-
files/19/one.mov filter=lfs diff=lfs merge=lfs -text
|
115 |
-
files/19/small.MOV filter=lfs diff=lfs merge=lfs -text
|
116 |
-
files/2/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
117 |
-
files/2/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
118 |
-
files/2/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
119 |
-
files/2/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
120 |
-
files/2/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
121 |
-
files/20/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
122 |
-
files/20/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
123 |
-
files/20/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
124 |
-
files/20/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
125 |
-
files/21/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
126 |
-
files/21/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
127 |
-
files/21/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
128 |
-
files/21/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
129 |
-
files/21/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
130 |
-
files/22/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
131 |
-
files/22/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
132 |
-
files/22/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
133 |
-
files/22/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
134 |
-
files/22/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
135 |
-
files/23/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
136 |
-
files/23/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
137 |
-
files/23/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
138 |
-
files/23/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
139 |
-
files/23/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
140 |
-
files/24/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
141 |
-
files/24/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
142 |
-
files/24/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
143 |
-
files/24/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
144 |
-
files/24/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
145 |
-
files/25/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
146 |
-
files/25/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
147 |
-
files/25/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
148 |
-
files/25/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
149 |
-
files/25/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
150 |
-
files/26/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
151 |
-
files/26/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
152 |
-
files/26/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
153 |
-
files/26/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
154 |
-
files/26/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
155 |
-
files/27/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
156 |
-
files/27/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
157 |
-
files/27/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
158 |
-
files/27/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
159 |
-
files/27/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
160 |
-
files/3/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
161 |
-
files/3/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
162 |
-
files/3/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
163 |
-
files/3/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
164 |
-
files/3/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
165 |
-
files/4/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
166 |
-
files/4/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
167 |
-
files/4/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
168 |
-
files/4/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
169 |
-
files/4/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
170 |
-
files/5/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
171 |
-
files/5/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
172 |
-
files/5/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
173 |
-
files/5/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
174 |
-
files/5/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
175 |
-
files/6/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
176 |
-
files/6/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
177 |
-
files/6/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
178 |
-
files/6/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
179 |
-
files/6/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
180 |
-
files/7/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
181 |
-
files/7/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
182 |
-
files/7/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
183 |
-
files/7/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
184 |
-
files/7/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
185 |
-
files/8/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
186 |
-
files/8/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
187 |
-
files/8/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
188 |
-
files/8/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
189 |
-
files/8/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
190 |
-
files/9/fist.mp4 filter=lfs diff=lfs merge=lfs -text
|
191 |
-
files/9/four.mp4 filter=lfs diff=lfs merge=lfs -text
|
192 |
-
files/9/me.mp4 filter=lfs diff=lfs merge=lfs -text
|
193 |
-
files/9/one.mp4 filter=lfs diff=lfs merge=lfs -text
|
194 |
-
files/9/small.mp4 filter=lfs diff=lfs merge=lfs -text
|
195 |
data 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
|
hand-gesture-recognition-dataset.py
CHANGED
@@ -40,7 +40,7 @@ class HandGestureRecognitionDataset(datasets.GeneratorBasedBuilder):
|
|
40 |
'four': datasets.Value('string'),
|
41 |
'me': datasets.Value('string'),
|
42 |
'one': datasets.Value('string'),
|
43 |
-
|
44 |
}),
|
45 |
supervised_keys=None,
|
46 |
homepage=_HOMEPAGE,
|
@@ -64,12 +64,11 @@ class HandGestureRecognitionDataset(datasets.GeneratorBasedBuilder):
|
|
64 |
|
65 |
files = sorted(files)
|
66 |
files = [files[i:i + 5] for i in range(0, len(files), 5)]
|
67 |
-
|
68 |
-
|
69 |
-
set_id = int(images_set[0].split('/')[2])
|
70 |
data = {'set_id': set_id}
|
71 |
|
72 |
-
for file in
|
73 |
if 'fist' in file.lower():
|
74 |
data['fist'] = file
|
75 |
elif 'four' in file.lower():
|
@@ -80,5 +79,5 @@ class HandGestureRecognitionDataset(datasets.GeneratorBasedBuilder):
|
|
80 |
data['one'] = file
|
81 |
elif 'small' in file.lower():
|
82 |
data['small'] = file
|
83 |
-
|
84 |
yield idx, data
|
|
|
40 |
'four': datasets.Value('string'),
|
41 |
'me': datasets.Value('string'),
|
42 |
'one': datasets.Value('string'),
|
43 |
+
'small': datasets.Value('string')
|
44 |
}),
|
45 |
supervised_keys=None,
|
46 |
homepage=_HOMEPAGE,
|
|
|
64 |
|
65 |
files = sorted(files)
|
66 |
files = [files[i:i + 5] for i in range(0, len(files), 5)]
|
67 |
+
for idx, files_set in enumerate(files):
|
68 |
+
set_id = int((files_set[0].split('/'))[-2])
|
|
|
69 |
data = {'set_id': set_id}
|
70 |
|
71 |
+
for file in files_set:
|
72 |
if 'fist' in file.lower():
|
73 |
data['fist'] = file
|
74 |
elif 'four' in file.lower():
|
|
|
79 |
data['one'] = file
|
80 |
elif 'small' in file.lower():
|
81 |
data['small'] = file
|
82 |
+
print(data)
|
83 |
yield idx, data
|