vkashko commited on
Commit
116c2ad
1 Parent(s): f1c2810

fix: bug with names

Browse files
data/portrait_and_26_photos.csv CHANGED
@@ -90,7 +90,7 @@ WorkerId,Age,Country,Gender,Type,Link
90
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_7,06421a0f6347119bd7c73631e4888bbe/photo_7.jpg
91
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_8,06421a0f6347119bd7c73631e4888bbe/photo_8.jpg
92
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_9,06421a0f6347119bd7c73631e4888bbe/photo_9.jpg
93
- 06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_10,06421a0f6347119bd7c73631e4888bbe/photo_10.heic
94
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_11,06421a0f6347119bd7c73631e4888bbe/photo_11.jpg
95
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_12,06421a0f6347119bd7c73631e4888bbe/photo_12.jpg
96
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_13,06421a0f6347119bd7c73631e4888bbe/photo_13.jpg
@@ -102,8 +102,8 @@ WorkerId,Age,Country,Gender,Type,Link
102
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_19,06421a0f6347119bd7c73631e4888bbe/photo_19.jpg
103
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_20,06421a0f6347119bd7c73631e4888bbe/photo_20.jpg
104
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_21,06421a0f6347119bd7c73631e4888bbe/photo_21.jpg
105
- 06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_22,06421a0f6347119bd7c73631e4888bbe/photo_22.heic
106
- 06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_23,06421a0f6347119bd7c73631e4888bbe/photo_23.heic
107
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_24,06421a0f6347119bd7c73631e4888bbe/photo_24.jpg
108
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_25,06421a0f6347119bd7c73631e4888bbe/photo_25.jpg
109
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_26,06421a0f6347119bd7c73631e4888bbe/photo_26.jpg
@@ -297,16 +297,16 @@ WorkerId,Age,Country,Gender,Type,Link
297
  0ff4d24098b3110ecfc0a7198e080a4b,24,BY,FEMALE,photo_25,0ff4d24098b3110ecfc0a7198e080a4b/photo_25.jpg
298
  0ff4d24098b3110ecfc0a7198e080a4b,24,BY,FEMALE,photo_26,0ff4d24098b3110ecfc0a7198e080a4b/photo_26.jpg
299
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,portrait_1,1067911ca113c7980cd12b5b3ea4af54/portrait_1.jpg
300
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_1,1067911ca113c7980cd12b5b3ea4af54/photo_1.webp
301
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_2,1067911ca113c7980cd12b5b3ea4af54/photo_2.webp
302
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_3,1067911ca113c7980cd12b5b3ea4af54/photo_3.webp
303
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_4,1067911ca113c7980cd12b5b3ea4af54/photo_4.jpg
304
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_5,1067911ca113c7980cd12b5b3ea4af54/photo_5.jpg
305
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_6,1067911ca113c7980cd12b5b3ea4af54/photo_6.webp
306
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_7,1067911ca113c7980cd12b5b3ea4af54/photo_7.webp
307
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_8,1067911ca113c7980cd12b5b3ea4af54/photo_8.webp
308
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_9,1067911ca113c7980cd12b5b3ea4af54/photo_9.webp
309
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_10,1067911ca113c7980cd12b5b3ea4af54/photo_10.webp
310
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_11,1067911ca113c7980cd12b5b3ea4af54/photo_11.jpg
311
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_12,1067911ca113c7980cd12b5b3ea4af54/photo_12.jpg
312
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_13,1067911ca113c7980cd12b5b3ea4af54/photo_13.jpg
@@ -317,12 +317,12 @@ WorkerId,Age,Country,Gender,Type,Link
317
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_18,1067911ca113c7980cd12b5b3ea4af54/photo_18.jpg
318
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_19,1067911ca113c7980cd12b5b3ea4af54/photo_19.jpg
319
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_20,1067911ca113c7980cd12b5b3ea4af54/photo_20.jpg
320
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_21,1067911ca113c7980cd12b5b3ea4af54/photo_21.webp
321
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_22,1067911ca113c7980cd12b5b3ea4af54/photo_22.jpg
322
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_23,1067911ca113c7980cd12b5b3ea4af54/photo_23.jpg
323
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_24,1067911ca113c7980cd12b5b3ea4af54/photo_24.jpg
324
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_25,1067911ca113c7980cd12b5b3ea4af54/photo_25.jpg
325
- 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_26,1067911ca113c7980cd12b5b3ea4af54/photo_26.webp
326
  10b32095dd911e24bfc46d2c4e23b5aa,28,NP,MALE,portrait_1,10b32095dd911e24bfc46d2c4e23b5aa/portrait_1.jpg
327
  10b32095dd911e24bfc46d2c4e23b5aa,28,NP,MALE,photo_1,10b32095dd911e24bfc46d2c4e23b5aa/photo_1.jpg
328
  10b32095dd911e24bfc46d2c4e23b5aa,28,NP,MALE,photo_2,10b32095dd911e24bfc46d2c4e23b5aa/photo_2.jpg
 
90
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_7,06421a0f6347119bd7c73631e4888bbe/photo_7.jpg
91
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_8,06421a0f6347119bd7c73631e4888bbe/photo_8.jpg
92
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_9,06421a0f6347119bd7c73631e4888bbe/photo_9.jpg
93
+ 06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_10,06421a0f6347119bd7c73631e4888bbe/photo_10.jpg
94
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_11,06421a0f6347119bd7c73631e4888bbe/photo_11.jpg
95
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_12,06421a0f6347119bd7c73631e4888bbe/photo_12.jpg
96
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_13,06421a0f6347119bd7c73631e4888bbe/photo_13.jpg
 
102
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_19,06421a0f6347119bd7c73631e4888bbe/photo_19.jpg
103
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_20,06421a0f6347119bd7c73631e4888bbe/photo_20.jpg
104
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_21,06421a0f6347119bd7c73631e4888bbe/photo_21.jpg
105
+ 06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_22,06421a0f6347119bd7c73631e4888bbe/photo_22.jpg
106
+ 06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_23,06421a0f6347119bd7c73631e4888bbe/photo_23.jpg
107
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_24,06421a0f6347119bd7c73631e4888bbe/photo_24.jpg
108
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_25,06421a0f6347119bd7c73631e4888bbe/photo_25.jpg
109
  06421a0f6347119bd7c73631e4888bbe,20,IN,MALE,photo_26,06421a0f6347119bd7c73631e4888bbe/photo_26.jpg
 
297
  0ff4d24098b3110ecfc0a7198e080a4b,24,BY,FEMALE,photo_25,0ff4d24098b3110ecfc0a7198e080a4b/photo_25.jpg
298
  0ff4d24098b3110ecfc0a7198e080a4b,24,BY,FEMALE,photo_26,0ff4d24098b3110ecfc0a7198e080a4b/photo_26.jpg
299
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,portrait_1,1067911ca113c7980cd12b5b3ea4af54/portrait_1.jpg
300
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_1,1067911ca113c7980cd12b5b3ea4af54/photo_1.jpg
301
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_2,1067911ca113c7980cd12b5b3ea4af54/photo_2.jpg
302
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_3,1067911ca113c7980cd12b5b3ea4af54/photo_3.jpg
303
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_4,1067911ca113c7980cd12b5b3ea4af54/photo_4.jpg
304
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_5,1067911ca113c7980cd12b5b3ea4af54/photo_5.jpg
305
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_6,1067911ca113c7980cd12b5b3ea4af54/photo_6.jpg
306
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_7,1067911ca113c7980cd12b5b3ea4af54/photo_7.jpg
307
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_8,1067911ca113c7980cd12b5b3ea4af54/photo_8.jpg
308
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_9,1067911ca113c7980cd12b5b3ea4af54/photo_9.jpg
309
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_10,1067911ca113c7980cd12b5b3ea4af54/photo_10.jpg
310
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_11,1067911ca113c7980cd12b5b3ea4af54/photo_11.jpg
311
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_12,1067911ca113c7980cd12b5b3ea4af54/photo_12.jpg
312
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_13,1067911ca113c7980cd12b5b3ea4af54/photo_13.jpg
 
317
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_18,1067911ca113c7980cd12b5b3ea4af54/photo_18.jpg
318
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_19,1067911ca113c7980cd12b5b3ea4af54/photo_19.jpg
319
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_20,1067911ca113c7980cd12b5b3ea4af54/photo_20.jpg
320
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_21,1067911ca113c7980cd12b5b3ea4af54/photo_21.jpg
321
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_22,1067911ca113c7980cd12b5b3ea4af54/photo_22.jpg
322
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_23,1067911ca113c7980cd12b5b3ea4af54/photo_23.jpg
323
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_24,1067911ca113c7980cd12b5b3ea4af54/photo_24.jpg
324
  1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_25,1067911ca113c7980cd12b5b3ea4af54/photo_25.jpg
325
+ 1067911ca113c7980cd12b5b3ea4af54,35,PH,FEMALE,photo_26,1067911ca113c7980cd12b5b3ea4af54/photo_26.jpg
326
  10b32095dd911e24bfc46d2c4e23b5aa,28,NP,MALE,portrait_1,10b32095dd911e24bfc46d2c4e23b5aa/portrait_1.jpg
327
  10b32095dd911e24bfc46d2c4e23b5aa,28,NP,MALE,photo_1,10b32095dd911e24bfc46d2c4e23b5aa/photo_1.jpg
328
  10b32095dd911e24bfc46d2c4e23b5aa,28,NP,MALE,photo_2,10b32095dd911e24bfc46d2c4e23b5aa/photo_2.jpg
portrait_and_26_photos.py CHANGED
@@ -35,30 +35,30 @@ class PortraitAnd26Photos(datasets.GeneratorBasedBuilder):
35
  'portrait_1': datasets.Image(),
36
  'photo_1': datasets.Image(),
37
  'photo_2': datasets.Image(),
38
- # 'photo_3': datasets.Image(),
39
- # 'photo_4': datasets.Image(),
40
- # 'photo_5': datasets.Image(),
41
- # 'photo_6': datasets.Image(),
42
- # 'photo_7': datasets.Image(),
43
- # 'photo_8': datasets.Image(),
44
- # 'photo_9': datasets.Image(),
45
- # 'photo_10': datasets.Image(),
46
- # 'photo_11': datasets.Image(),
47
- # 'photo_12': datasets.Image(),
48
- # 'photo_13': datasets.Image(),
49
- # 'photo_14': datasets.Image(),
50
- # 'photo_15': datasets.Image(),
51
- # 'photo_16': datasets.Image(),
52
- # 'photo_17': datasets.Image(),
53
- # 'photo_18': datasets.Image(),
54
- # 'photo_19': datasets.Image(),
55
- # 'photo_20': datasets.Image(),
56
- # 'photo_21': datasets.Image(),
57
- # 'photo_22': datasets.Image(),
58
- # 'photo_23': datasets.Image(),
59
- # 'photo_24': datasets.Image(),
60
- # 'photo_25': datasets.Image(),
61
- # 'photo_26': datasets.Image(),
62
  'worker_id': datasets.Value('string'),
63
  'age': datasets.Value('int8'),
64
  'country': datasets.Value('string'),
@@ -96,9 +96,7 @@ class PortraitAnd26Photos(datasets.GeneratorBasedBuilder):
96
  row[5]: {
97
  'path': row[6],
98
  'bytes': row[7]
99
- }
100
- for row in annotation.itertuples()
101
- if row[5] in ['portrait_1', 'photo_1', 'photo_2']
102
  }
103
 
104
  age = annotation.loc[annotation['Type'] ==
 
35
  'portrait_1': datasets.Image(),
36
  'photo_1': datasets.Image(),
37
  'photo_2': datasets.Image(),
38
+ 'photo_3': datasets.Image(),
39
+ 'photo_4': datasets.Image(),
40
+ 'photo_5': datasets.Image(),
41
+ 'photo_6': datasets.Image(),
42
+ 'photo_7': datasets.Image(),
43
+ 'photo_8': datasets.Image(),
44
+ 'photo_9': datasets.Image(),
45
+ 'photo_10': datasets.Image(),
46
+ 'photo_11': datasets.Image(),
47
+ 'photo_12': datasets.Image(),
48
+ 'photo_13': datasets.Image(),
49
+ 'photo_14': datasets.Image(),
50
+ 'photo_15': datasets.Image(),
51
+ 'photo_16': datasets.Image(),
52
+ 'photo_17': datasets.Image(),
53
+ 'photo_18': datasets.Image(),
54
+ 'photo_19': datasets.Image(),
55
+ 'photo_20': datasets.Image(),
56
+ 'photo_21': datasets.Image(),
57
+ 'photo_22': datasets.Image(),
58
+ 'photo_23': datasets.Image(),
59
+ 'photo_24': datasets.Image(),
60
+ 'photo_25': datasets.Image(),
61
+ 'photo_26': datasets.Image(),
62
  'worker_id': datasets.Value('string'),
63
  'age': datasets.Value('int8'),
64
  'country': datasets.Value('string'),
 
96
  row[5]: {
97
  'path': row[6],
98
  'bytes': row[7]
99
+ } for row in annotation.itertuples()
 
 
100
  }
101
 
102
  age = annotation.loc[annotation['Type'] ==