import os
GPU_device = str(3)

model = 'GoogLeNet'        #更改vgg19

patch_dir_list =[
'generated_patch/GoogLeNet/MSCOCO/group_1',  #更改vgg19
'generated_patch/GoogLeNet/MSCOCO/group_2',

'generated_patch/GoogLeNet/KITTI/group_1',
'generated_patch/GoogLeNet/KITTI/group_2',

'generated_patch/GoogLeNet/ImageNet/group_1',
'generated_patch/GoogLeNet/ImageNet/group_2',

'generated_patch/GoogLeNet/uniform/group_1',
'generated_patch/GoogLeNet/uniform/group_2',

'generated_patch/GoogLeNet/black/group_1',
'generated_patch/GoogLeNet/black/group_2',

'generated_patch/GoogLeNet/white/group_1',
'generated_patch/GoogLeNet/white/group_2',

'generated_patch/GoogLeNet/ensemble/group_1',
'generated_patch/GoogLeNet/ensemble/group_2'


]



for patch_dir in patch_dir_list:

    command = 'python -u fooling_rate.py'+ \
              ' --patch-dir ' + '\''+ patch_dir +'\'' +\
              ' --GPU-device ' + GPU_device +\
              ' --model ' + '\'' + model +  '\''

    print('CURRENT COMMEND:', command)
    os.system(command)