Commit dba90794 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Use bob.pad instead of bob.dap

parent f1569a4d
Pipeline #14326 failed with stages
in 5 minutes and 39 seconds
......@@ -67,23 +67,21 @@ def checkfiles(args):
def convert_filelist(path, outfolder, prepend, group):
if group == 'world':
outpath = os.path.join(outfolder, 'norm', 'train_world.lst')
else:
outpath = os.path.join(outfolder, group, 'for_scores.lst')
# create the empty 'for_models.lst' file.
with open(os.path.join(outfolder, group, 'for_models.lst'), 'w') as f:
pass
create_directories_safe(os.path.dirname(outpath))
outpaths = [
os.path.join(outfolder, group, 'for_real.lst'),
os.path.join(outfolder, group, 'for_attack.lst'),
]
create_directories_safe(os.path.dirname(outpaths[0]))
conv = {'1': 'real', '2': 'print/1', '3': 'print/2',
'4': 'video_replay/1', '5': 'video_replay/2'}
with open(path) as f, \
open(outpath, 'w') as wf:
open(outpaths[0], 'w') as wrf, \
open(outpaths[1], 'w') as waf:
for line in f:
if line[0] == '+':
isreal = True
is_real = True
elif line[0] == '-':
isreal = False
is_real = False
else:
print('ignoring line: ' + line)
continue
......@@ -91,13 +89,12 @@ def convert_filelist(path, outfolder, prepend, group):
_, _, client_id, attack_type = filename.split('_')
attack_type = conv[attack_type]
filename = os.path.join(prepend, filename)
if not isreal:
client_id = 'attack/{}/{}'.format(attack_type, client_id)
if group == 'world':
wf.write('{} {}\n'.format(filename, client_id))
if is_real:
wrf.write('{} {}\n'.format(filename, client_id))
else:
wf.write('{} model model {}\n'.format(filename, client_id))
waf.write('{} {} {}\n'.format(
filename, client_id, attack_type))
def create(args):
......@@ -106,7 +103,7 @@ def create(args):
root_dir = args.root_dir
output_dir = args.output_dir
groups2 = ['world', 'dev', 'eval']
groups2 = ['train', 'dev', 'eval']
for grp1, grp2 in zip(['Train', 'Dev', 'Test'],
groups2):
......
This diff is collapsed.
Dev_files/1_1_21_1 21
Dev_files/1_1_22_1 22
Dev_files/1_1_23_1 23
Dev_files/1_1_24_1 24
Dev_files/1_1_25_1 25
Dev_files/1_1_26_1 26
Dev_files/1_1_27_1 27
Dev_files/1_1_28_1 28
Dev_files/1_1_29_1 29
Dev_files/1_1_30_1 30
Dev_files/1_1_31_1 31
Dev_files/1_1_32_1 32
Dev_files/1_1_33_1 33
Dev_files/1_1_34_1 34
Dev_files/1_1_35_1 35
Dev_files/1_2_21_1 21
Dev_files/1_2_22_1 22
Dev_files/1_2_23_1 23
Dev_files/1_2_24_1 24
Dev_files/1_2_25_1 25
Dev_files/1_2_26_1 26
Dev_files/1_2_27_1 27
Dev_files/1_2_28_1 28
Dev_files/1_2_29_1 29
Dev_files/1_2_30_1 30
Dev_files/1_2_31_1 31
Dev_files/1_2_32_1 32
Dev_files/1_2_33_1 33
Dev_files/1_2_34_1 34
Dev_files/1_2_35_1 35
Dev_files/2_1_21_1 21
Dev_files/2_1_22_1 22
Dev_files/2_1_23_1 23
Dev_files/2_1_24_1 24
Dev_files/2_1_25_1 25
Dev_files/2_1_26_1 26
Dev_files/2_1_27_1 27
Dev_files/2_1_28_1 28
Dev_files/2_1_29_1 29
Dev_files/2_1_30_1 30
Dev_files/2_1_31_1 31
Dev_files/2_1_32_1 32
Dev_files/2_1_33_1 33
Dev_files/2_1_34_1 34
Dev_files/2_1_35_1 35
Dev_files/2_2_21_1 21
Dev_files/2_2_22_1 22
Dev_files/2_2_23_1 23
Dev_files/2_2_24_1 24
Dev_files/2_2_25_1 25
Dev_files/2_2_26_1 26
Dev_files/2_2_27_1 27
Dev_files/2_2_28_1 28
Dev_files/2_2_29_1 29
Dev_files/2_2_30_1 30
Dev_files/2_2_31_1 31
Dev_files/2_2_32_1 32
Dev_files/2_2_33_1 33
Dev_files/2_2_34_1 34
Dev_files/2_2_35_1 35
Dev_files/3_1_21_1 21
Dev_files/3_1_22_1 22
Dev_files/3_1_23_1 23
Dev_files/3_1_24_1 24
Dev_files/3_1_25_1 25
Dev_files/3_1_26_1 26
Dev_files/3_1_27_1 27
Dev_files/3_1_28_1 28
Dev_files/3_1_29_1 29
Dev_files/3_1_30_1 30
Dev_files/3_1_31_1 31
Dev_files/3_1_32_1 32
Dev_files/3_1_33_1 33
Dev_files/3_1_34_1 34
Dev_files/3_1_35_1 35
Dev_files/3_2_21_1 21
Dev_files/3_2_22_1 22
Dev_files/3_2_23_1 23
Dev_files/3_2_24_1 24
Dev_files/3_2_25_1 25
Dev_files/3_2_26_1 26
Dev_files/3_2_27_1 27
Dev_files/3_2_28_1 28
Dev_files/3_2_29_1 29
Dev_files/3_2_30_1 30
Dev_files/3_2_31_1 31
Dev_files/3_2_32_1 32
Dev_files/3_2_33_1 33
Dev_files/3_2_34_1 34
Dev_files/3_2_35_1 35
Dev_files/4_1_21_1 21
Dev_files/4_1_22_1 22
Dev_files/4_1_23_1 23
Dev_files/4_1_24_1 24
Dev_files/4_1_25_1 25
Dev_files/4_1_26_1 26
Dev_files/4_1_27_1 27
Dev_files/4_1_28_1 28
Dev_files/4_1_29_1 29
Dev_files/4_1_30_1 30
Dev_files/4_1_31_1 31
Dev_files/4_1_32_1 32
Dev_files/4_1_33_1 33
Dev_files/4_1_34_1 34
Dev_files/4_1_35_1 35
Dev_files/4_2_21_1 21
Dev_files/4_2_22_1 22
Dev_files/4_2_23_1 23
Dev_files/4_2_24_1 24
Dev_files/4_2_25_1 25
Dev_files/4_2_26_1 26
Dev_files/4_2_27_1 27
Dev_files/4_2_28_1 28
Dev_files/4_2_29_1 29
Dev_files/4_2_30_1 30
Dev_files/4_2_31_1 31
Dev_files/4_2_32_1 32
Dev_files/4_2_33_1 33
Dev_files/4_2_34_1 34
Dev_files/4_2_35_1 35
Dev_files/5_1_21_1 21
Dev_files/5_1_22_1 22
Dev_files/5_1_23_1 23
Dev_files/5_1_24_1 24
Dev_files/5_1_25_1 25
Dev_files/5_1_26_1 26
Dev_files/5_1_27_1 27
Dev_files/5_1_28_1 28
Dev_files/5_1_29_1 29
Dev_files/5_1_30_1 30
Dev_files/5_1_31_1 31
Dev_files/5_1_32_1 32
Dev_files/5_1_33_1 33
Dev_files/5_1_34_1 34
Dev_files/5_1_35_1 35
Dev_files/5_2_21_1 21
Dev_files/5_2_22_1 22
Dev_files/5_2_23_1 23
Dev_files/5_2_24_1 24
Dev_files/5_2_25_1 25
Dev_files/5_2_26_1 26
Dev_files/5_2_27_1 27
Dev_files/5_2_28_1 28
Dev_files/5_2_29_1 29
Dev_files/5_2_30_1 30
Dev_files/5_2_31_1 31
Dev_files/5_2_32_1 32
Dev_files/5_2_33_1 33
Dev_files/5_2_34_1 34
Dev_files/5_2_35_1 35
Dev_files/6_1_21_1 21
Dev_files/6_1_22_1 22
Dev_files/6_1_23_1 23
Dev_files/6_1_24_1 24
Dev_files/6_1_25_1 25
Dev_files/6_1_26_1 26
Dev_files/6_1_27_1 27
Dev_files/6_1_28_1 28
Dev_files/6_1_29_1 29
Dev_files/6_1_30_1 30
Dev_files/6_1_31_1 31
Dev_files/6_1_32_1 32
Dev_files/6_1_33_1 33
Dev_files/6_1_34_1 34
Dev_files/6_1_35_1 35
Dev_files/6_2_21_1 21
Dev_files/6_2_22_1 22
Dev_files/6_2_23_1 23
Dev_files/6_2_24_1 24
Dev_files/6_2_25_1 25
Dev_files/6_2_26_1 26
Dev_files/6_2_27_1 27
Dev_files/6_2_28_1 28
Dev_files/6_2_29_1 29
Dev_files/6_2_30_1 30
Dev_files/6_2_31_1 31
Dev_files/6_2_32_1 32
Dev_files/6_2_33_1 33
Dev_files/6_2_34_1 34
Dev_files/6_2_35_1 35
This diff is collapsed.
This diff is collapsed.
Test_files/1_3_36_1 36
Test_files/1_3_37_1 37
Test_files/1_3_38_1 38
Test_files/1_3_39_1 39
Test_files/1_3_40_1 40
Test_files/1_3_41_1 41
Test_files/1_3_42_1 42
Test_files/1_3_43_1 43
Test_files/1_3_44_1 44
Test_files/1_3_45_1 45
Test_files/1_3_46_1 46
Test_files/1_3_47_1 47
Test_files/1_3_48_1 48
Test_files/1_3_49_1 49
Test_files/1_3_50_1 50
Test_files/1_3_51_1 51
Test_files/1_3_52_1 52
Test_files/1_3_53_1 53
Test_files/1_3_54_1 54
Test_files/1_3_55_1 55
Test_files/2_3_36_1 36
Test_files/2_3_37_1 37
Test_files/2_3_38_1 38
Test_files/2_3_39_1 39
Test_files/2_3_40_1 40
Test_files/2_3_41_1 41
Test_files/2_3_42_1 42
Test_files/2_3_43_1 43
Test_files/2_3_44_1 44
Test_files/2_3_45_1 45
Test_files/2_3_46_1 46
Test_files/2_3_47_1 47
Test_files/2_3_48_1 48
Test_files/2_3_49_1 49
Test_files/2_3_50_1 50
Test_files/2_3_51_1 51
Test_files/2_3_52_1 52
Test_files/2_3_53_1 53
Test_files/2_3_54_1 54
Test_files/2_3_55_1 55
Test_files/3_3_36_1 36
Test_files/3_3_37_1 37
Test_files/3_3_38_1 38
Test_files/3_3_39_1 39
Test_files/3_3_40_1 40
Test_files/3_3_41_1 41
Test_files/3_3_42_1 42
Test_files/3_3_43_1 43
Test_files/3_3_44_1 44
Test_files/3_3_45_1 45
Test_files/3_3_46_1 46
Test_files/3_3_47_1 47
Test_files/3_3_48_1 48
Test_files/3_3_49_1 49
Test_files/3_3_50_1 50
Test_files/3_3_51_1 51
Test_files/3_3_52_1 52
Test_files/3_3_53_1 53
Test_files/3_3_54_1 54
Test_files/3_3_55_1 55
Test_files/4_3_36_1 36
Test_files/4_3_37_1 37
Test_files/4_3_38_1 38
Test_files/4_3_39_1 39
Test_files/4_3_40_1 40
Test_files/4_3_41_1 41
Test_files/4_3_42_1 42
Test_files/4_3_43_1 43
Test_files/4_3_44_1 44
Test_files/4_3_45_1 45
Test_files/4_3_46_1 46
Test_files/4_3_47_1 47
Test_files/4_3_48_1 48
Test_files/4_3_49_1 49
Test_files/4_3_50_1 50
Test_files/4_3_51_1 51
Test_files/4_3_52_1 52
Test_files/4_3_53_1 53
Test_files/4_3_54_1 54
Test_files/4_3_55_1 55
Test_files/5_3_36_1 36
Test_files/5_3_37_1 37
Test_files/5_3_38_1 38
Test_files/5_3_39_1 39
Test_files/5_3_40_1 40
Test_files/5_3_41_1 41
Test_files/5_3_42_1 42
Test_files/5_3_43_1 43
Test_files/5_3_44_1 44
Test_files/5_3_45_1 45
Test_files/5_3_46_1 46
Test_files/5_3_47_1 47
Test_files/5_3_48_1 48
Test_files/5_3_49_1 49
Test_files/5_3_50_1 50
Test_files/5_3_51_1 51
Test_files/5_3_52_1 52
Test_files/5_3_53_1 53
Test_files/5_3_54_1 54
Test_files/5_3_55_1 55
Test_files/6_3_36_1 36
Test_files/6_3_37_1 37
Test_files/6_3_38_1 38
Test_files/6_3_39_1 39
Test_files/6_3_40_1 40
Test_files/6_3_41_1 41
Test_files/6_3_42_1 42
Test_files/6_3_43_1 43
Test_files/6_3_44_1 44
Test_files/6_3_45_1 45
Test_files/6_3_46_1 46
Test_files/6_3_47_1 47
Test_files/6_3_48_1 48
Test_files/6_3_49_1 49
Test_files/6_3_50_1 50
Test_files/6_3_51_1 51
Test_files/6_3_52_1 52
Test_files/6_3_53_1 53
Test_files/6_3_54_1 54
Test_files/6_3_55_1 55
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Train_files/1_1_01_1 01
Train_files/1_1_02_1 02
Train_files/1_1_03_1 03
Train_files/1_1_04_1 04
Train_files/1_1_05_1 05
Train_files/1_1_06_1 06
Train_files/1_1_07_1 07
Train_files/1_1_08_1 08
Train_files/1_1_09_1 09
Train_files/1_1_10_1 10
Train_files/1_1_11_1 11
Train_files/1_1_12_1 12
Train_files/1_1_13_1 13
Train_files/1_1_14_1 14
Train_files/1_1_15_1 15
Train_files/1_1_16_1 16
Train_files/1_1_17_1 17
Train_files/1_1_18_1 18
Train_files/1_1_19_1 19
Train_files/1_1_20_1 20
Train_files/1_2_01_1 01
Train_files/1_2_02_1 02
Train_files/1_2_03_1 03
Train_files/1_2_04_1 04
Train_files/1_2_05_1 05
Train_files/1_2_06_1 06
Train_files/1_2_07_1 07
Train_files/1_2_08_1 08
Train_files/1_2_09_1 09
Train_files/1_2_10_1 10
Train_files/1_2_11_1 11
Train_files/1_2_12_1 12
Train_files/1_2_13_1 13
Train_files/1_2_14_1 14
Train_files/1_2_15_1 15
Train_files/1_2_16_1 16
Train_files/1_2_17_1 17
Train_files/1_2_18_1 18
Train_files/1_2_19_1 19
Train_files/1_2_20_1 20
Train_files/2_1_01_1 01
Train_files/2_1_02_1 02
Train_files/2_1_03_1 03
Train_files/2_1_04_1 04
Train_files/2_1_05_1 05
Train_files/2_1_06_1 06
Train_files/2_1_07_1 07
Train_files/2_1_08_1 08
Train_files/2_1_09_1 09
Train_files/2_1_10_1 10
Train_files/2_1_11_1 11
Train_files/2_1_12_1 12
Train_files/2_1_13_1 13
Train_files/2_1_14_1 14
Train_files/2_1_15_1 15
Train_files/2_1_16_1 16
Train_files/2_1_17_1 17
Train_files/2_1_18_1 18
Train_files/2_1_19_1 19
Train_files/2_1_20_1 20
Train_files/2_2_01_1 01
Train_files/2_2_02_1 02
Train_files/2_2_03_1 03
Train_files/2_2_04_1 04
Train_files/2_2_05_1 05
Train_files/2_2_06_1 06
Train_files/2_2_07_1 07
Train_files/2_2_08_1 08
Train_files/2_2_09_1 09
Train_files/2_2_10_1 10
Train_files/2_2_11_1 11
Train_files/2_2_12_1 12
Train_files/2_2_13_1 13
Train_files/2_2_14_1 14
Train_files/2_2_15_1 15
Train_files/2_2_16_1 16
Train_files/2_2_17_1 17
Train_files/2_2_18_1 18
Train_files/2_2_19_1 19
Train_files/2_2_20_1 20
Train_files/3_1_01_1 01
Train_files/3_1_02_1 02
Train_files/3_1_03_1 03
Train_files/3_1_04_1 04
Train_files/3_1_05_1 05
Train_files/3_1_06_1 06
Train_files/3_1_07_1 07
Train_files/3_1_08_1 08
Train_files/3_1_09_1 09
Train_files/3_1_10_1 10
Train_files/3_1_11_1 11
Train_files/3_1_12_1 12
Train_files/3_1_13_1 13
Train_files/3_1_14_1 14
Train_files/3_1_15_1 15
Train_files/3_1_16_1 16
Train_files/3_1_17_1 17
Train_files/3_1_18_1 18
Train_files/3_1_19_1 19
Train_files/3_1_20_1 20
Train_files/3_2_01_1 01
Train_files/3_2_02_1 02
Train_files/3_2_03_1 03
Train_files/3_2_04_1 04
Train_files/3_2_05_1 05
Train_files/3_2_06_1 06
Train_files/3_2_07_1 07
Train_files/3_2_08_1 08
Train_files/3_2_09_1 09
Train_files/3_2_10_1 10
Train_files/3_2_11_1 11
Train_files/3_2_12_1 12
Train_files/3_2_13_1 13
Train_files/3_2_14_1 14
Train_files/3_2_15_1 15
Train_files/3_2_16_1 16
Train_files/3_2_17_1 17
Train_files/3_2_18_1 18
Train_files/3_2_19_1 19
Train_files/3_2_20_1 20
Train_files/4_1_01_1 01
Train_files/4_1_02_1 02
Train_files/4_1_03_1 03
Train_files/4_1_04_1 04
Train_files/4_1_05_1 05
Train_files/4_1_06_1 06
Train_files/4_1_07_1 07
Train_files/4_1_08_1 08
Train_files/4_1_09_1 09
Train_files/4_1_10_1 10
Train_files/4_1_11_1 11
Train_files/4_1_12_1 12
Train_files/4_1_13_1 13
Train_files/4_1_14_1 14
Train_files/4_1_15_1 15
Train_files/4_1_16_1 16
Train_files/4_1_17_1 17
Train_files/4_1_18_1 18
Train_files/4_1_19_1 19
Train_files/4_1_20_1 20
Train_files/4_2_01_1 01
Train_files/4_2_02_1 02
Train_files/4_2_03_1 03
Train_files/4_2_04_1 04
Train_files/4_2_05_1 05
Train_files/4_2_06_1 06
Train_files/4_2_07_1 07
Train_files/4_2_08_1 08
Train_files/4_2_09_1 09
Train_files/4_2_10_1 10
Train_files/4_2_11_1 11
Train_files/4_2_12_1 12
Train_files/4_2_13_1 13
Train_files/4_2_14_1 14
Train_files/4_2_15_1 15
Train_files/4_2_16_1 16
Train_files/4_2_17_1 17
Train_files/4_2_18_1 18
Train_files/4_2_19_1 19
Train_files/4_2_20_1 20
Train_files/5_1_01_1 01
Train_files/5_1_02_1 02
Train_files/5_1_03_1 03
Train_files/5_1_04_1 04
Train_files/5_1_05_1 05
Train_files/5_1_06_1 06
Train_files/5_1_07_1 07
Train_files/5_1_08_1 08
Train_files/5_1_09_1 09
Train_files/5_1_10_1 10
Train_files/5_1_11_1 11
Train_files/5_1_12_1 12
Train_files/5_1_13_1 13
Train_files/5_1_14_1 14
Train_files/5_1_15_1 15
Train_files/5_1_16_1 16
Train_files/5_1_17_1 17
Train_files/5_1_18_1 18
Train_files/5_1_19_1 19
Train_files/5_1_20_1 20
Train_files/5_2_01_1 01
Train_files/5_2_02_1 02
Train_files/5_2_03_1 03
Train_files/5_2_04_1 04
Train_files/5_2_05_1 05
Train_files/5_2_06_1 06
Train_files/5_2_07_1 07
Train_files/5_2_08_1 08
Train_files/5_2_09_1 09
Train_files/5_2_10_1 10
Train_files/5_2_11_1 11
Train_files/5_2_12_1 12
Train_files/5_2_13_1 13
Train_files/5_2_14_1 14
Train_files/5_2_15_1 15
Train_files/5_2_16_1 16
Train_files/5_2_17_1 17
Train_files/5_2_18_1 18
Train_files/5_2_19_1 19
Train_files/5_2_20_1 20
Train_files/6_1_01_1 01
Train_files/6_1_02_1 02
Train_files/6_1_03_1 03
Train_files/6_1_04_1 04
Train_files/6_1_05_1 05
Train_files/6_1_06_1 06
Train_files/6_1_07_1 07
Train_files/6_1_08_1 08
Train_files/6_1_09_1 09
Train_files/6_1_10_1 10
Train_files/6_1_11_1 11
Train_files/6_1_12_1 12
Train_files/6_1_13_1 13
Train_files/6_1_14_1 14
Train_files/6_1_15_1 15
Train_files/6_1_16_1 16
Train_files/6_1_17_1 17
Train_files/6_1_18_1 18
Train_files/6_1_19_1 19
Train_files/6_1_20_1 20
Train_files/6_2_01_1 01
Train_files/6_2_02_1 02
Train_files/6_2_03_1 03
Train_files/6_2_04_1 04
Train_files/6_2_05_1 05
Train_files/6_2_06_1 06
Train_files/6_2_07_1 07
Train_files/6_2_08_1 08
Train_files/6_2_09_1 09
Train_files/6_2_10_1 10
Train_files/6_2_11_1 11
Train_files/6_2_12_1 12
Train_files/6_2_13_1 13
Train_files/6_2_14_1 14
Train_files/6_2_15_1 15
Train_files/6_2_16_1 16
Train_files/6_2_17_1 17
Train_files/6_2_18_1 18
Train_files/6_2_19_1 19
Train_files/6_2_20_1 20
This diff is collapsed.
Dev_files/1_1_21_1 21
Dev_files/1_1_22_1 22
Dev_files/1_1_23_1 23
Dev_files/1_1_24_1 24
Dev_files/1_1_25_1 25
Dev_files/1_1_26_1 26
Dev_files/1_1_27_1 27
Dev_files/1_1_28_1 28
Dev_files/1_1_29_1 29
Dev_files/1_1_30_1 30
Dev_files/1_1_31_1 31
Dev_files/1_1_32_1 32
Dev_files/1_1_33_1 33
Dev_files/1_1_34_1 34
Dev_files/1_1_35_1 35
Dev_files/1_2_21_1 21
Dev_files/1_2_22_1 22
Dev_files/1_2_23_1 23
Dev_files/1_2_24_1 24
Dev_files/1_2_25_1 25
Dev_files/1_2_26_1 26
Dev_files/1_2_27_1 27
Dev_files/1_2_28_1 28
Dev_files/1_2_29_1 29
Dev_files/1_2_30_1 30
Dev_files/1_2_31_1 31
Dev_files/1_2_32_1 32
Dev_files/1_2_33_1 33
Dev_files/1_2_34_1 34
Dev_files/1_2_35_1 35
Dev_files/1_3_21_1 21
Dev_files/1_3_22_1 22
Dev_files/1_3_23_1 23
Dev_files/1_3_24_1 24
Dev_files/1_3_25_1 25
Dev_files/1_3_26_1 26