@@ -528,9 +528,9 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, soft_
528528 with_aug_scores = []
529529 without_aug_scores = []
530530 ars_list = []
531- seed_list = [ 0 , 1 , 42 , 1234 , 3407 ]
531+
532532 for i in range (self .num_eval ):
533- set_seed (seed_list [ i ] )
533+ set_seed ()
534534 logging (f"================ EVALUATION RUN { i + 1 } /{ self .num_eval } ================" )
535535
536536 syn_data_with_aug_acc , best_lr = self ._compute_with_aug_metrics_helper (
@@ -541,7 +541,7 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, soft_
541541 lr = syn_lr ,
542542 hyper_param_search = True if syn_lr is None else False
543543 )
544- logging (f"With augmentation acc: { syn_data_with_aug_acc :.2f} % under learning rate { best_lr } " )
544+ logging (f"With augmentation acc: { syn_data_with_aug_acc :.2f} %" )
545545
546546 random_data_path , random_data_tensors , random_data_hard_labels , random_data_soft_labels = self ._get_random_data_helper (eval_iter = i )
547547 random_data_with_aug_acc , best_lr = self ._compute_with_aug_metrics_helper (
@@ -552,7 +552,7 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, soft_
552552 lr = None ,
553553 hyper_param_search = True
554554 )
555- logging (f"Without augmentation acc: { random_data_with_aug_acc :.2f} % under learning rate { best_lr } " )
555+ logging (f"Without augmentation acc: { random_data_with_aug_acc :.2f} %" )
556556
557557 syn_data_without_aug_acc , best_lr = self ._compute_without_aug_metrics_helper (
558558 image_tensor = image_tensor ,
@@ -562,7 +562,7 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, soft_
562562 lr = syn_lr ,
563563 hyper_param_search = True if syn_lr is None else False
564564 )
565- logging (f"Without augmentation acc: { syn_data_without_aug_acc :.2f} % under learning rate { best_lr } " )
565+ logging (f"Without augmentation acc: { syn_data_without_aug_acc :.2f} %" )
566566
567567 random_data_without_aug_acc , best_lr = self ._compute_without_aug_metrics_helper (
568568 image_tensor = random_data_tensors ,
@@ -572,7 +572,7 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, soft_
572572 lr = None ,
573573 hyper_param_search = True
574574 )
575- logging (f"Without augmentation acc: { random_data_without_aug_acc :.2f} % under learning rate { best_lr } " )
575+ logging (f"Without augmentation acc: { random_data_without_aug_acc :.2f} %" )
576576
577577 with_aug_score = 1.00 * (syn_data_with_aug_acc - random_data_with_aug_acc )
578578 without_aug_score = 1.00 * (syn_data_without_aug_acc - random_data_without_aug_acc )
0 commit comments