Vadzim Kashko
commited on
Commit
•
1230e3f
1
Parent(s):
8d1f9b0
refactor: all data feat: upload script
Browse files- .gitattributes +1 -0
- annotations.xml +0 -236
- bald_classification.py +72 -0
- bald_people.csv +0 -43
- data/bald_classification.csv +43 -0
- images/eu.1318656b-9b75-4e65-89e7-154aa2916ead.jpg → data/images.tar.gz +2 -2
- images/eu.04a53e8d-0642-47ce-afed-0dce3d2e3b85.jpg +0 -3
- images/eu.12853114-0db0-472d-8e1d-8b6d6fa55a6e.jpg +0 -3
- images/eu.15cb7654-1f49-4f13-a500-8adb845e2284.jpg +0 -3
- images/eu.2377f98a-116a-496b-9274-441e9f41e2a7.jpg +0 -3
- images/eu.304b0061-3171-44e5-81cf-46660cf81ac9.jpg +0 -3
- images/eu.4111e8fc-67a3-45d3-b58c-85d26d505902.jpg +0 -3
- images/eu.43b1f497-0c6e-4b66-9a04-3f2c46c643c3.jpg +0 -3
- images/eu.474be754-9656-45e9-9827-4e159c43e7ec.jpg +0 -3
- images/eu.47f46643-865c-448a-9cef-d4fb6b5e449c.jpg +0 -3
- images/eu.4bd10bbd-4f5a-416c-9e90-5cec51286263.jpg +0 -3
- images/eu.5077c9d7-a510-4542-adf4-e7d01b018aa2.jpg +0 -3
- images/eu.517d6a91-8397-4b44-a798-16f49fcd27cd.jpg +0 -3
- images/eu.5381a6d5-e0f5-46bc-a6fc-3c971b46c287.jpg +0 -3
- images/eu.53fe351a-e488-4b0f-9bcb-7709456b5bcb.jpg +0 -3
- images/eu.578daadb-caa8-4174-9ff6-4ebbcddfb052.jpg +0 -3
- images/eu.5ae3325a-c319-4854-8a22-4d4a9963b333.jpg +0 -3
- images/eu.5b6f3f83-50aa-4683-8a0a-a73a3c1f9893.jpg +0 -3
- images/eu.5c83472f-bc98-4870-8901-65db88fed63a.jpg +0 -3
- images/eu.5e72795f-8df1-4090-b07b-3540982ac3ea.jpg +0 -3
- images/eu.63733eb1-8461-4a69-b378-2cb94e5d54df.jpg +0 -3
- images/eu.6dfb8614-77bd-4e69-972e-a2f4e55c0ead.jpg +0 -3
- images/eu.729c12a1-dacc-45a8-a321-096f5bfa7a55.jpg +0 -3
- images/eu.738dbc29-5bab-483c-b049-0c3c2af98ead.jpg +0 -3
- images/eu.75e223df-b1e5-4ee0-8329-9ca2a61fdd0b.jpg +0 -3
- images/eu.76f3335b-6fda-4e2a-a332-650fde339ea2.jpg +0 -3
- images/eu.7d913aa8-f4a2-418e-acfe-c3497062e75b.jpg +0 -3
- images/eu.902da8c4-e34f-4fc8-8aa3-229f5dcd75fe.jpg +0 -3
- images/eu.a2fae165-ba27-4d37-8832-54cf4ce16a64.jpg +0 -3
- images/eu.a3fdadc5-2ae0-4f5d-968b-a72e98fa6052.jpg +0 -3
- images/eu.ab672995-8271-4a20-8dc6-93272e41d65f.jpg +0 -3
- images/eu.aebd9c81-79a2-424b-ab2e-419af65adfcc.jpg +0 -3
- images/eu.b297419e-9967-4674-984b-c00848cd4d38.jpg +0 -3
- images/eu.c0ee855c-f906-43f6-81bf-360c3b72d9ed.jpg +0 -3
- images/eu.c12cf322-a996-47f0-a65e-95e6c632d568.jpg +0 -3
- images/eu.ce122d94-ebfa-44de-952f-e25f024f45e3.jpg +0 -3
- images/eu.eac2f17c-d6ef-4e6f-9486-01dbf5012f10.jpg +0 -3
- images/eu.f5ffb876-0454-4c8f-9515-2a87110fd635.jpg +0 -3
- images/eu.f673d1c2-9580-49a9-9c35-45d8278c5fc2.jpg +0 -3
- images/eu.f6abef78-e03d-43d3-a4b9-64594ac83496.jpg +0 -3
- images/eu.f7beccef-60d5-4f3a-b913-eaea5d40f466.jpg +0 -3
- images/eu.fd8a0281-72d0-4c31-866a-1b41e03c244e.jpg +0 -3
.gitattributes
CHANGED
@@ -52,3 +52,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
52 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
52 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
55 |
+
data filter=lfs diff=lfs merge=lfs -text
|
annotations.xml
DELETED
@@ -1,236 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="utf-8"?>
|
2 |
-
<annotations>
|
3 |
-
<version>1.1</version>
|
4 |
-
<meta>
|
5 |
-
<task>
|
6 |
-
|
7 |
-
<owner>
|
8 |
-
<username>TrainingData</username>
|
9 |
-
<email/>
|
10 |
-
</owner>
|
11 |
-
|
12 |
-
<labels>
|
13 |
-
<label>
|
14 |
-
<name>type_1</name>
|
15 |
-
<color>#a6e8c0</color>
|
16 |
-
<type>tag</type>
|
17 |
-
<attributes>
|
18 |
-
</attributes>
|
19 |
-
</label>
|
20 |
-
<label>
|
21 |
-
<name>type_2</name>
|
22 |
-
<color>#921bbf</color>
|
23 |
-
<type>tag</type>
|
24 |
-
<attributes>
|
25 |
-
</attributes>
|
26 |
-
</label>
|
27 |
-
<label>
|
28 |
-
<name>type_3</name>
|
29 |
-
<color>#f7b270</color>
|
30 |
-
<type>tag</type>
|
31 |
-
<attributes>
|
32 |
-
</attributes>
|
33 |
-
</label>
|
34 |
-
<label>
|
35 |
-
<name>type_4</name>
|
36 |
-
<color>#e23cc1</color>
|
37 |
-
<type>tag</type>
|
38 |
-
<attributes>
|
39 |
-
</attributes>
|
40 |
-
</label>
|
41 |
-
<label>
|
42 |
-
<name>type_5</name>
|
43 |
-
<color>#dfa6ae</color>
|
44 |
-
<type>tag</type>
|
45 |
-
<attributes>
|
46 |
-
</attributes>
|
47 |
-
</label>
|
48 |
-
<label>
|
49 |
-
<name>type_6</name>
|
50 |
-
<color>#a65eb4</color>
|
51 |
-
<type>tag</type>
|
52 |
-
<attributes>
|
53 |
-
</attributes>
|
54 |
-
</label>
|
55 |
-
<label>
|
56 |
-
<name>type_7</name>
|
57 |
-
<color>#16e2a4</color>
|
58 |
-
<type>tag</type>
|
59 |
-
<attributes>
|
60 |
-
</attributes>
|
61 |
-
</label>
|
62 |
-
</labels>
|
63 |
-
</task>
|
64 |
-
<dumped>2023-06-04 21:21:22.425876+00:00</dumped>
|
65 |
-
</meta>
|
66 |
-
<image id="0" name="images/eu.04a53e8d-0642-47ce-afed-0dce3d2e3b85.jpg" width="3120" height="4160">
|
67 |
-
<tag label="type_7" source="manual">
|
68 |
-
</tag>
|
69 |
-
</image>
|
70 |
-
<image id="1" name="images/eu.12853114-0db0-472d-8e1d-8b6d6fa55a6e.jpg" width="3024" height="4032">
|
71 |
-
<tag label="type_5" source="manual">
|
72 |
-
</tag>
|
73 |
-
</image>
|
74 |
-
<image id="2" name="images/eu.1318656b-9b75-4e65-89e7-154aa2916ead.jpg" width="4080" height="1836">
|
75 |
-
<tag label="type_4" source="manual">
|
76 |
-
</tag>
|
77 |
-
</image>
|
78 |
-
<image id="3" name="images/eu.15cb7654-1f49-4f13-a500-8adb845e2284.jpg" width="3000" height="4000">
|
79 |
-
<tag label="type_7" source="manual">
|
80 |
-
</tag>
|
81 |
-
</image>
|
82 |
-
<image id="4" name="images/eu.2377f98a-116a-496b-9274-441e9f41e2a7.jpg" width="1840" height="4000">
|
83 |
-
<tag label="type_7" source="manual">
|
84 |
-
</tag>
|
85 |
-
</image>
|
86 |
-
<image id="5" name="images/eu.304b0061-3171-44e5-81cf-46660cf81ac9.jpg" width="3000" height="4000">
|
87 |
-
<tag label="type_3" source="manual">
|
88 |
-
</tag>
|
89 |
-
</image>
|
90 |
-
<image id="6" name="images/eu.4111e8fc-67a3-45d3-b58c-85d26d505902.jpg" width="1980" height="2640">
|
91 |
-
<tag label="type_7" source="manual">
|
92 |
-
</tag>
|
93 |
-
</image>
|
94 |
-
<image id="7" name="images/eu.43b1f497-0c6e-4b66-9a04-3f2c46c643c3.jpg" width="3024" height="4032">
|
95 |
-
<tag label="type_6" source="manual">
|
96 |
-
</tag>
|
97 |
-
</image>
|
98 |
-
<image id="8" name="images/eu.474be754-9656-45e9-9827-4e159c43e7ec.jpg" width="3472" height="4624">
|
99 |
-
<tag label="type_5" source="manual">
|
100 |
-
</tag>
|
101 |
-
</image>
|
102 |
-
<image id="9" name="images/eu.47f46643-865c-448a-9cef-d4fb6b5e449c.jpg" width="3072" height="4096">
|
103 |
-
<tag label="type_4" source="manual">
|
104 |
-
</tag>
|
105 |
-
</image>
|
106 |
-
<image id="10" name="images/eu.4bd10bbd-4f5a-416c-9e90-5cec51286263.jpg" width="1616" height="3264">
|
107 |
-
<tag label="type_7" source="manual">
|
108 |
-
</tag>
|
109 |
-
</image>
|
110 |
-
<image id="11" name="images/eu.5077c9d7-a510-4542-adf4-e7d01b018aa2.jpg" width="3000" height="4000">
|
111 |
-
<tag label="type_7" source="manual">
|
112 |
-
</tag>
|
113 |
-
</image>
|
114 |
-
<image id="12" name="images/eu.517d6a91-8397-4b44-a798-16f49fcd27cd.jpg" width="3000" height="4000">
|
115 |
-
<tag label="type_5" source="manual">
|
116 |
-
</tag>
|
117 |
-
</image>
|
118 |
-
<image id="13" name="images/eu.5381a6d5-e0f5-46bc-a6fc-3c971b46c287.jpg" width="3880" height="5184">
|
119 |
-
<tag label="type_7" source="manual">
|
120 |
-
</tag>
|
121 |
-
</image>
|
122 |
-
<image id="14" name="images/eu.53fe351a-e488-4b0f-9bcb-7709456b5bcb.jpg" width="3456" height="4608">
|
123 |
-
<tag label="type_7" source="manual">
|
124 |
-
</tag>
|
125 |
-
</image>
|
126 |
-
<image id="15" name="images/eu.578daadb-caa8-4174-9ff6-4ebbcddfb052.jpg" width="2320" height="3088">
|
127 |
-
<tag label="type_4" source="manual">
|
128 |
-
</tag>
|
129 |
-
</image>
|
130 |
-
<image id="16" name="images/eu.5ae3325a-c319-4854-8a22-4d4a9963b333.jpg" width="4160" height="3120">
|
131 |
-
<tag label="type_7" source="manual">
|
132 |
-
</tag>
|
133 |
-
</image>
|
134 |
-
<image id="17" name="images/eu.5b6f3f83-50aa-4683-8a0a-a73a3c1f9893.jpg" width="4624" height="2136">
|
135 |
-
<tag label="type_7" source="manual">
|
136 |
-
</tag>
|
137 |
-
</image>
|
138 |
-
<image id="18" name="images/eu.5c83472f-bc98-4870-8901-65db88fed63a.jpg" width="3000" height="4000">
|
139 |
-
<tag label="type_4" source="manual">
|
140 |
-
</tag>
|
141 |
-
</image>
|
142 |
-
<image id="19" name="images/eu.5e72795f-8df1-4090-b07b-3540982ac3ea.jpg" width="2448" height="3264">
|
143 |
-
<tag label="type_4" source="manual">
|
144 |
-
</tag>
|
145 |
-
</image>
|
146 |
-
<image id="20" name="images/eu.63733eb1-8461-4a69-b378-2cb94e5d54df.jpg" width="3024" height="4032">
|
147 |
-
<tag label="type_3" source="manual">
|
148 |
-
</tag>
|
149 |
-
</image>
|
150 |
-
<image id="21" name="images/eu.6dfb8614-77bd-4e69-972e-a2f4e55c0ead.jpg" width="3024" height="4032">
|
151 |
-
<tag label="type_5" source="manual">
|
152 |
-
</tag>
|
153 |
-
</image>
|
154 |
-
<image id="22" name="images/eu.729c12a1-dacc-45a8-a321-096f5bfa7a55.jpg" width="3000" height="4000">
|
155 |
-
<tag label="type_7" source="manual">
|
156 |
-
</tag>
|
157 |
-
</image>
|
158 |
-
<image id="23" name="images/eu.738dbc29-5bab-483c-b049-0c3c2af98ead.jpg" width="2448" height="3264">
|
159 |
-
<tag label="type_3" source="manual">
|
160 |
-
</tag>
|
161 |
-
</image>
|
162 |
-
<image id="24" name="images/eu.75e223df-b1e5-4ee0-8329-9ca2a61fdd0b.jpg" width="2472" height="3296">
|
163 |
-
<tag label="type_7" source="manual">
|
164 |
-
</tag>
|
165 |
-
</image>
|
166 |
-
<image id="25" name="images/eu.76f3335b-6fda-4e2a-a332-650fde339ea2.jpg" width="3000" height="4000">
|
167 |
-
<tag label="type_3" source="manual">
|
168 |
-
</tag>
|
169 |
-
</image>
|
170 |
-
<image id="26" name="images/eu.7d913aa8-f4a2-418e-acfe-c3497062e75b.jpg" width="2736" height="3648">
|
171 |
-
<tag label="type_6" source="manual">
|
172 |
-
</tag>
|
173 |
-
</image>
|
174 |
-
<image id="27" name="images/eu.902da8c4-e34f-4fc8-8aa3-229f5dcd75fe.jpg" width="3472" height="4624">
|
175 |
-
<tag label="type_2" source="manual">
|
176 |
-
</tag>
|
177 |
-
</image>
|
178 |
-
<image id="28" name="images/eu.a2fae165-ba27-4d37-8832-54cf4ce16a64.jpg" width="3000" height="4000">
|
179 |
-
<tag label="type_5" source="manual">
|
180 |
-
</tag>
|
181 |
-
</image>
|
182 |
-
<image id="29" name="images/eu.a3fdadc5-2ae0-4f5d-968b-a72e98fa6052.jpg" width="2392" height="5184">
|
183 |
-
<tag label="type_7" source="manual">
|
184 |
-
</tag>
|
185 |
-
</image>
|
186 |
-
<image id="30" name="images/eu.ab672995-8271-4a20-8dc6-93272e41d65f.jpg" width="3880" height="5184">
|
187 |
-
<tag label="type_3" source="manual">
|
188 |
-
</tag>
|
189 |
-
</image>
|
190 |
-
<image id="31" name="images/eu.aebd9c81-79a2-424b-ab2e-419af65adfcc.jpg" width="2472" height="3296">
|
191 |
-
<tag label="type_3" source="manual">
|
192 |
-
</tag>
|
193 |
-
</image>
|
194 |
-
<image id="32" name="images/eu.b297419e-9967-4674-984b-c00848cd4d38.jpg" width="3024" height="4032">
|
195 |
-
<tag label="type_4" source="manual">
|
196 |
-
</tag>
|
197 |
-
</image>
|
198 |
-
<image id="33" name="images/eu.c0ee855c-f906-43f6-81bf-360c3b72d9ed.jpg" width="3000" height="4000">
|
199 |
-
<tag label="type_6" source="manual">
|
200 |
-
</tag>
|
201 |
-
</image>
|
202 |
-
<image id="34" name="images/eu.c12cf322-a996-47f0-a65e-95e6c632d568.jpg" width="2320" height="3088">
|
203 |
-
<tag label="type_6" source="manual">
|
204 |
-
</tag>
|
205 |
-
</image>
|
206 |
-
<image id="35" name="images/eu.ce122d94-ebfa-44de-952f-e25f024f45e3.jpg" width="4000" height="3000">
|
207 |
-
<tag label="type_7" source="manual">
|
208 |
-
</tag>
|
209 |
-
</image>
|
210 |
-
<image id="36" name="images/eu.eac2f17c-d6ef-4e6f-9486-01dbf5012f10.jpg" width="4032" height="3024">
|
211 |
-
<tag label="type_7" source="manual">
|
212 |
-
</tag>
|
213 |
-
</image>
|
214 |
-
<image id="37" name="images/eu.f5ffb876-0454-4c8f-9515-2a87110fd635.jpg" width="2448" height="3264">
|
215 |
-
<tag label="type_6" source="manual">
|
216 |
-
</tag>
|
217 |
-
</image>
|
218 |
-
<image id="38" name="images/eu.f673d1c2-9580-49a9-9c35-45d8278c5fc2.jpg" width="3120" height="4160">
|
219 |
-
<tag label="type_7" source="manual">
|
220 |
-
</tag>
|
221 |
-
</image>
|
222 |
-
<image id="39" name="images/eu.f6abef78-e03d-43d3-a4b9-64594ac83496.jpg" width="1932" height="2576">
|
223 |
-
<tag label="type_5" source="manual">
|
224 |
-
</tag>
|
225 |
-
</image>
|
226 |
-
<image id="40" name="images/eu.f7beccef-60d5-4f3a-b913-eaea5d40f466.jpg" width="3880" height="5184">
|
227 |
-
<tag label="type_7" source="manual">
|
228 |
-
</tag>
|
229 |
-
</image>
|
230 |
-
<image id="41" name="images/eu.fd8a0281-72d0-4c31-866a-1b41e03c244e.jpg" width="3120" height="4160">
|
231 |
-
<tag label="type_4" source="manual">
|
232 |
-
</tag>
|
233 |
-
</image>
|
234 |
-
</annotations>
|
235 |
-
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bald_classification.py
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datasets
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
_CITATION = """\
|
5 |
+
@InProceedings{huggingface:dataset,
|
6 |
+
title = {bald_classification},
|
7 |
+
author = {TrainingDataPro},
|
8 |
+
year = {2023}
|
9 |
+
}
|
10 |
+
"""
|
11 |
+
|
12 |
+
_DESCRIPTION = """\
|
13 |
+
Dataset consists of 5000 photos of people with 7 stages of hairloss according
|
14 |
+
to the Norwood scale. Dataset is useful for training neural networks for the
|
15 |
+
recommendation systems, optimizing the work processes of trichologists and
|
16 |
+
applications in the Med / Beauty spheres.
|
17 |
+
"""
|
18 |
+
_NAME = 'bald_classification'
|
19 |
+
|
20 |
+
_HOMEPAGE = f"https://huggingface.co/datasets/TrainingDataPro/{_NAME}"
|
21 |
+
|
22 |
+
_LICENSE = ""
|
23 |
+
|
24 |
+
_DATA = f"https://huggingface.co/datasets/TrainingDataPro/{_NAME}/resolve/main/data/"
|
25 |
+
|
26 |
+
|
27 |
+
class BaldClassification(datasets.GeneratorBasedBuilder):
|
28 |
+
"""Small sample of image-text pairs"""
|
29 |
+
|
30 |
+
def _info(self):
|
31 |
+
return datasets.DatasetInfo(
|
32 |
+
description=_DESCRIPTION,
|
33 |
+
features=datasets.Features({
|
34 |
+
'image_id': datasets.Value('int32'),
|
35 |
+
'image': datasets.Image(),
|
36 |
+
'annotations': datasets.Value('string')
|
37 |
+
}),
|
38 |
+
supervised_keys=None,
|
39 |
+
homepage=_HOMEPAGE,
|
40 |
+
citation=_CITATION,
|
41 |
+
)
|
42 |
+
|
43 |
+
def _split_generators(self, dl_manager):
|
44 |
+
images = dl_manager.download(f"{_DATA}images.tar.gz")
|
45 |
+
annotations = dl_manager.download(f"{_DATA}{_NAME}.csv")
|
46 |
+
images = dl_manager.iter_archive(images)
|
47 |
+
return [
|
48 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN,
|
49 |
+
gen_kwargs={
|
50 |
+
"images": images,
|
51 |
+
'annotations': annotations
|
52 |
+
}),
|
53 |
+
]
|
54 |
+
|
55 |
+
def _generate_examples(self, images, annotations):
|
56 |
+
annotations_df = pd.read_csv(annotations)
|
57 |
+
|
58 |
+
for idx, (image_path, image) in enumerate(images):
|
59 |
+
yield idx, {
|
60 |
+
'image_id':
|
61 |
+
annotations_df.loc[
|
62 |
+
annotations_df['image_name'] == image_path]
|
63 |
+
['image_id'].values[0],
|
64 |
+
"image": {
|
65 |
+
"path": image_path,
|
66 |
+
"bytes": image.read()
|
67 |
+
},
|
68 |
+
'annotations':
|
69 |
+
annotations_df.loc[
|
70 |
+
annotations_df['image_name'] == image_path]
|
71 |
+
['annotations'].values[0]
|
72 |
+
}
|
bald_people.csv
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
;images;type
|
2 |
-
0;images/eu.04a53e8d-0642-47ce-afed-0dce3d2e3b85.jpg;type_7
|
3 |
-
1;images/eu.12853114-0db0-472d-8e1d-8b6d6fa55a6e.jpg;type_5
|
4 |
-
2;images/eu.1318656b-9b75-4e65-89e7-154aa2916ead.jpg;type_4
|
5 |
-
3;images/eu.15cb7654-1f49-4f13-a500-8adb845e2284.jpg;type_7
|
6 |
-
4;images/eu.2377f98a-116a-496b-9274-441e9f41e2a7.jpg;type_7
|
7 |
-
5;images/eu.304b0061-3171-44e5-81cf-46660cf81ac9.jpg;type_3
|
8 |
-
6;images/eu.4111e8fc-67a3-45d3-b58c-85d26d505902.jpg;type_7
|
9 |
-
7;images/eu.43b1f497-0c6e-4b66-9a04-3f2c46c643c3.jpg;type_6
|
10 |
-
8;images/eu.474be754-9656-45e9-9827-4e159c43e7ec.jpg;type_5
|
11 |
-
9;images/eu.47f46643-865c-448a-9cef-d4fb6b5e449c.jpg;type_4
|
12 |
-
10;images/eu.4bd10bbd-4f5a-416c-9e90-5cec51286263.jpg;type_7
|
13 |
-
11;images/eu.5077c9d7-a510-4542-adf4-e7d01b018aa2.jpg;type_7
|
14 |
-
12;images/eu.517d6a91-8397-4b44-a798-16f49fcd27cd.jpg;type_5
|
15 |
-
13;images/eu.5381a6d5-e0f5-46bc-a6fc-3c971b46c287.jpg;type_7
|
16 |
-
14;images/eu.53fe351a-e488-4b0f-9bcb-7709456b5bcb.jpg;type_7
|
17 |
-
15;images/eu.578daadb-caa8-4174-9ff6-4ebbcddfb052.jpg;type_4
|
18 |
-
16;images/eu.5ae3325a-c319-4854-8a22-4d4a9963b333.jpg;type_7
|
19 |
-
17;images/eu.5b6f3f83-50aa-4683-8a0a-a73a3c1f9893.jpg;type_7
|
20 |
-
18;images/eu.5c83472f-bc98-4870-8901-65db88fed63a.jpg;type_4
|
21 |
-
19;images/eu.5e72795f-8df1-4090-b07b-3540982ac3ea.jpg;type_4
|
22 |
-
20;images/eu.63733eb1-8461-4a69-b378-2cb94e5d54df.jpg;type_3
|
23 |
-
21;images/eu.6dfb8614-77bd-4e69-972e-a2f4e55c0ead.jpg;type_5
|
24 |
-
22;images/eu.729c12a1-dacc-45a8-a321-096f5bfa7a55.jpg;type_7
|
25 |
-
23;images/eu.738dbc29-5bab-483c-b049-0c3c2af98ead.jpg;type_3
|
26 |
-
24;images/eu.75e223df-b1e5-4ee0-8329-9ca2a61fdd0b.jpg;type_7
|
27 |
-
25;images/eu.76f3335b-6fda-4e2a-a332-650fde339ea2.jpg;type_3
|
28 |
-
26;images/eu.7d913aa8-f4a2-418e-acfe-c3497062e75b.jpg;type_6
|
29 |
-
27;images/eu.902da8c4-e34f-4fc8-8aa3-229f5dcd75fe.jpg;type_2
|
30 |
-
28;images/eu.a2fae165-ba27-4d37-8832-54cf4ce16a64.jpg;type_5
|
31 |
-
29;images/eu.a3fdadc5-2ae0-4f5d-968b-a72e98fa6052.jpg;type_7
|
32 |
-
30;images/eu.ab672995-8271-4a20-8dc6-93272e41d65f.jpg;type_3
|
33 |
-
31;images/eu.aebd9c81-79a2-424b-ab2e-419af65adfcc.jpg;type_3
|
34 |
-
32;images/eu.b297419e-9967-4674-984b-c00848cd4d38.jpg;type_4
|
35 |
-
33;images/eu.c0ee855c-f906-43f6-81bf-360c3b72d9ed.jpg;type_6
|
36 |
-
34;images/eu.c12cf322-a996-47f0-a65e-95e6c632d568.jpg;type_6
|
37 |
-
35;images/eu.ce122d94-ebfa-44de-952f-e25f024f45e3.jpg;type_7
|
38 |
-
36;images/eu.eac2f17c-d6ef-4e6f-9486-01dbf5012f10.jpg;type_7
|
39 |
-
37;images/eu.f5ffb876-0454-4c8f-9515-2a87110fd635.jpg;type_6
|
40 |
-
38;images/eu.f673d1c2-9580-49a9-9c35-45d8278c5fc2.jpg;type_7
|
41 |
-
39;images/eu.f6abef78-e03d-43d3-a4b9-64594ac83496.jpg;type_5
|
42 |
-
40;images/eu.f7beccef-60d5-4f3a-b913-eaea5d40f466.jpg;type_7
|
43 |
-
41;images/eu.fd8a0281-72d0-4c31-866a-1b41e03c244e.jpg;type_4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/bald_classification.csv
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
image_id,image_name,annotations
|
2 |
+
0,eu.04a53e8d-0642-47ce-afed-0dce3d2e3b85.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
3 |
+
1,eu.12853114-0db0-472d-8e1d-8b6d6fa55a6e.jpg,"[{'type': 'tag', 'label': 'type_5'}]"
|
4 |
+
2,eu.1318656b-9b75-4e65-89e7-154aa2916ead.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
5 |
+
3,eu.15cb7654-1f49-4f13-a500-8adb845e2284.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
6 |
+
4,eu.2377f98a-116a-496b-9274-441e9f41e2a7.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
7 |
+
5,eu.304b0061-3171-44e5-81cf-46660cf81ac9.jpg,"[{'type': 'tag', 'label': 'type_3'}]"
|
8 |
+
6,eu.4111e8fc-67a3-45d3-b58c-85d26d505902.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
9 |
+
7,eu.43b1f497-0c6e-4b66-9a04-3f2c46c643c3.jpg,"[{'type': 'tag', 'label': 'type_6'}]"
|
10 |
+
8,eu.474be754-9656-45e9-9827-4e159c43e7ec.jpg,"[{'type': 'tag', 'label': 'type_5'}]"
|
11 |
+
9,eu.47f46643-865c-448a-9cef-d4fb6b5e449c.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
12 |
+
10,eu.4bd10bbd-4f5a-416c-9e90-5cec51286263.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
13 |
+
11,eu.5077c9d7-a510-4542-adf4-e7d01b018aa2.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
14 |
+
12,eu.517d6a91-8397-4b44-a798-16f49fcd27cd.jpg,"[{'type': 'tag', 'label': 'type_5'}]"
|
15 |
+
13,eu.5381a6d5-e0f5-46bc-a6fc-3c971b46c287.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
16 |
+
14,eu.53fe351a-e488-4b0f-9bcb-7709456b5bcb.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
17 |
+
15,eu.578daadb-caa8-4174-9ff6-4ebbcddfb052.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
18 |
+
16,eu.5ae3325a-c319-4854-8a22-4d4a9963b333.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
19 |
+
17,eu.5b6f3f83-50aa-4683-8a0a-a73a3c1f9893.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
20 |
+
18,eu.5c83472f-bc98-4870-8901-65db88fed63a.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
21 |
+
19,eu.5e72795f-8df1-4090-b07b-3540982ac3ea.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
22 |
+
20,eu.63733eb1-8461-4a69-b378-2cb94e5d54df.jpg,"[{'type': 'tag', 'label': 'type_3'}]"
|
23 |
+
21,eu.6dfb8614-77bd-4e69-972e-a2f4e55c0ead.jpg,"[{'type': 'tag', 'label': 'type_5'}]"
|
24 |
+
22,eu.729c12a1-dacc-45a8-a321-096f5bfa7a55.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
25 |
+
23,eu.738dbc29-5bab-483c-b049-0c3c2af98ead.jpg,"[{'type': 'tag', 'label': 'type_3'}]"
|
26 |
+
24,eu.75e223df-b1e5-4ee0-8329-9ca2a61fdd0b.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
27 |
+
25,eu.76f3335b-6fda-4e2a-a332-650fde339ea2.jpg,"[{'type': 'tag', 'label': 'type_3'}]"
|
28 |
+
26,eu.7d913aa8-f4a2-418e-acfe-c3497062e75b.jpg,"[{'type': 'tag', 'label': 'type_6'}]"
|
29 |
+
27,eu.902da8c4-e34f-4fc8-8aa3-229f5dcd75fe.jpg,"[{'type': 'tag', 'label': 'type_2'}]"
|
30 |
+
28,eu.a2fae165-ba27-4d37-8832-54cf4ce16a64.jpg,"[{'type': 'tag', 'label': 'type_5'}]"
|
31 |
+
29,eu.a3fdadc5-2ae0-4f5d-968b-a72e98fa6052.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
32 |
+
30,eu.ab672995-8271-4a20-8dc6-93272e41d65f.jpg,"[{'type': 'tag', 'label': 'type_3'}]"
|
33 |
+
31,eu.aebd9c81-79a2-424b-ab2e-419af65adfcc.jpg,"[{'type': 'tag', 'label': 'type_3'}]"
|
34 |
+
32,eu.b297419e-9967-4674-984b-c00848cd4d38.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
35 |
+
33,eu.c0ee855c-f906-43f6-81bf-360c3b72d9ed.jpg,"[{'type': 'tag', 'label': 'type_6'}]"
|
36 |
+
34,eu.c12cf322-a996-47f0-a65e-95e6c632d568.jpg,"[{'type': 'tag', 'label': 'type_6'}]"
|
37 |
+
35,eu.ce122d94-ebfa-44de-952f-e25f024f45e3.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
38 |
+
36,eu.eac2f17c-d6ef-4e6f-9486-01dbf5012f10.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
39 |
+
37,eu.f5ffb876-0454-4c8f-9515-2a87110fd635.jpg,"[{'type': 'tag', 'label': 'type_6'}]"
|
40 |
+
38,eu.f673d1c2-9580-49a9-9c35-45d8278c5fc2.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
41 |
+
39,eu.f6abef78-e03d-43d3-a4b9-64594ac83496.jpg,"[{'type': 'tag', 'label': 'type_5'}]"
|
42 |
+
40,eu.f7beccef-60d5-4f3a-b913-eaea5d40f466.jpg,"[{'type': 'tag', 'label': 'type_7'}]"
|
43 |
+
41,eu.fd8a0281-72d0-4c31-866a-1b41e03c244e.jpg,"[{'type': 'tag', 'label': 'type_4'}]"
|
images/eu.1318656b-9b75-4e65-89e7-154aa2916ead.jpg → data/images.tar.gz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f84255e5822bbe0c9882ff17f98a454194cf55e5004d85a0392c8995780200f9
|
3 |
+
size 183332314
|
images/eu.04a53e8d-0642-47ce-afed-0dce3d2e3b85.jpg
DELETED
Git LFS Details
|
images/eu.12853114-0db0-472d-8e1d-8b6d6fa55a6e.jpg
DELETED
Git LFS Details
|
images/eu.15cb7654-1f49-4f13-a500-8adb845e2284.jpg
DELETED
Git LFS Details
|
images/eu.2377f98a-116a-496b-9274-441e9f41e2a7.jpg
DELETED
Git LFS Details
|
images/eu.304b0061-3171-44e5-81cf-46660cf81ac9.jpg
DELETED
Git LFS Details
|
images/eu.4111e8fc-67a3-45d3-b58c-85d26d505902.jpg
DELETED
Git LFS Details
|
images/eu.43b1f497-0c6e-4b66-9a04-3f2c46c643c3.jpg
DELETED
Git LFS Details
|
images/eu.474be754-9656-45e9-9827-4e159c43e7ec.jpg
DELETED
Git LFS Details
|
images/eu.47f46643-865c-448a-9cef-d4fb6b5e449c.jpg
DELETED
Git LFS Details
|
images/eu.4bd10bbd-4f5a-416c-9e90-5cec51286263.jpg
DELETED
Git LFS Details
|
images/eu.5077c9d7-a510-4542-adf4-e7d01b018aa2.jpg
DELETED
Git LFS Details
|
images/eu.517d6a91-8397-4b44-a798-16f49fcd27cd.jpg
DELETED
Git LFS Details
|
images/eu.5381a6d5-e0f5-46bc-a6fc-3c971b46c287.jpg
DELETED
Git LFS Details
|
images/eu.53fe351a-e488-4b0f-9bcb-7709456b5bcb.jpg
DELETED
Git LFS Details
|
images/eu.578daadb-caa8-4174-9ff6-4ebbcddfb052.jpg
DELETED
Git LFS Details
|
images/eu.5ae3325a-c319-4854-8a22-4d4a9963b333.jpg
DELETED
Git LFS Details
|
images/eu.5b6f3f83-50aa-4683-8a0a-a73a3c1f9893.jpg
DELETED
Git LFS Details
|
images/eu.5c83472f-bc98-4870-8901-65db88fed63a.jpg
DELETED
Git LFS Details
|
images/eu.5e72795f-8df1-4090-b07b-3540982ac3ea.jpg
DELETED
Git LFS Details
|
images/eu.63733eb1-8461-4a69-b378-2cb94e5d54df.jpg
DELETED
Git LFS Details
|
images/eu.6dfb8614-77bd-4e69-972e-a2f4e55c0ead.jpg
DELETED
Git LFS Details
|
images/eu.729c12a1-dacc-45a8-a321-096f5bfa7a55.jpg
DELETED
Git LFS Details
|
images/eu.738dbc29-5bab-483c-b049-0c3c2af98ead.jpg
DELETED
Git LFS Details
|
images/eu.75e223df-b1e5-4ee0-8329-9ca2a61fdd0b.jpg
DELETED
Git LFS Details
|
images/eu.76f3335b-6fda-4e2a-a332-650fde339ea2.jpg
DELETED
Git LFS Details
|
images/eu.7d913aa8-f4a2-418e-acfe-c3497062e75b.jpg
DELETED
Git LFS Details
|
images/eu.902da8c4-e34f-4fc8-8aa3-229f5dcd75fe.jpg
DELETED
Git LFS Details
|
images/eu.a2fae165-ba27-4d37-8832-54cf4ce16a64.jpg
DELETED
Git LFS Details
|
images/eu.a3fdadc5-2ae0-4f5d-968b-a72e98fa6052.jpg
DELETED
Git LFS Details
|
images/eu.ab672995-8271-4a20-8dc6-93272e41d65f.jpg
DELETED
Git LFS Details
|
images/eu.aebd9c81-79a2-424b-ab2e-419af65adfcc.jpg
DELETED
Git LFS Details
|
images/eu.b297419e-9967-4674-984b-c00848cd4d38.jpg
DELETED
Git LFS Details
|
images/eu.c0ee855c-f906-43f6-81bf-360c3b72d9ed.jpg
DELETED
Git LFS Details
|
images/eu.c12cf322-a996-47f0-a65e-95e6c632d568.jpg
DELETED
Git LFS Details
|
images/eu.ce122d94-ebfa-44de-952f-e25f024f45e3.jpg
DELETED
Git LFS Details
|
images/eu.eac2f17c-d6ef-4e6f-9486-01dbf5012f10.jpg
DELETED
Git LFS Details
|
images/eu.f5ffb876-0454-4c8f-9515-2a87110fd635.jpg
DELETED
Git LFS Details
|
images/eu.f673d1c2-9580-49a9-9c35-45d8278c5fc2.jpg
DELETED
Git LFS Details
|
images/eu.f6abef78-e03d-43d3-a4b9-64594ac83496.jpg
DELETED
Git LFS Details
|
images/eu.f7beccef-60d5-4f3a-b913-eaea5d40f466.jpg
DELETED
Git LFS Details
|
images/eu.fd8a0281-72d0-4c31-866a-1b41e03c244e.jpg
DELETED
Git LFS Details
|