def __init__(self, logger, size, original_size, tag='paper_figure'):
    self.pixel_spaceing = 0.1
    self.tag = tag
    make_dir(tag)
    self.tag += '/'
    self.logger = logger
    self.scale_rate_y = (original_size[0] / size[0])
    self.scale_rate_x = (original_size[1] / size[1])
    self.RE_list = list()
    self.recall_radius = [2, 2.5, 3, 4]
    self.recall_rate = list()
    self.Attack_RE_list = list()
    self.Defend_RE_list = list()
    self.dict_Attack = dict()
    self.dict_Defend = dict()
    self.total_list = dict()
    self.mode_list = [0, 1, 2, 3]
    self.mode_dict = {0: 'Iterative FGSM', 1: 'Adaptive Iterative FGSM', 2: 'Adaptive_Rate', 3: 'Proposed'}
    for mode in self.mode_list:
        self.dict_Defend[mode] = dict()
        self.dict_Attack[mode] = dict()
        self.total_list[mode] = list()
    self.best_mre = 100.0
def __init__(self, logger, size, original_size, tag='paper_figure'):
    self.pixel_spaceing = 0.1
    self.tag = tag
    make_dir(tag)
    self.tag += '/'
    self.logger = logger
    self.scale_rate_y = (original_size[0] / size[0])
    self.scale_rate_x = (original_size[1] / size[1])
    self.RE_list = list()
    self.recall_radius = [2, 2.5, 3, 4]
    self.recall_rate = list()
    self.Attack_RE_list = list()
    self.Defend_RE_list = list()
    self.dict_Attack = dict()
    self.dict_Defend = dict()
    self.total_list = dict()
    self.mode_list = [0, 1, 2, 3]
    self.mode_dict = {0: 'Iterative FGSM', 1: 'Adaptive Iterative FGSM', 2: 'Adaptive_Rate', 3: 'Proposed'}
    for mode in self.mode_list:
        self.dict_Defend[mode] = dict()
        self.dict_Attack[mode] = dict()
        self.total_list[mode] = list()
    self.best_mre = 100.0