@@ -789,6 +789,7 @@ def evaluate_model(**args):
789789 args ['n_bins_gt' ] = args ['n_bins_lda' ]
790790
791791 # Polychromatic star reconstructions
792+ print ('Computing polychromatic metrics at low resolution.' )
792793 rmse , rel_rmse , std_rmse , std_rel_rmse = wf_metrics .compute_poly_metric (
793794 tf_semiparam_field = tf_semiparam_field ,
794795 GT_tf_semiparam_field = GT_tf_semiparam_field ,
@@ -810,6 +811,7 @@ def evaluate_model(**args):
810811
811812 # Monochromatic star reconstructions
812813 if args ['eval_mono_metric_rmse' ] is True or 'eval_mono_metric_rmse' not in args :
814+ print ('Computing monochromatic metrics.' )
813815 lambda_list = np .arange (0.55 , 0.9 , 0.01 ) # 10nm separation
814816 rmse_lda , rel_rmse_lda , std_rmse_lda , std_rel_rmse_lda = wf_metrics .compute_mono_metric (
815817 tf_semiparam_field = tf_semiparam_field ,
@@ -830,6 +832,7 @@ def evaluate_model(**args):
830832
831833 # OPD metrics
832834 if args ['eval_opd_metric_rmse' ] is True or 'eval_opd_metric_rmse' not in args :
835+ print ('Computing OPD metrics.' )
833836 rmse_opd , rel_rmse_opd , rmse_std_opd , rel_rmse_std_opd = wf_metrics .compute_opd_metrics (
834837 tf_semiparam_field = tf_semiparam_field ,
835838 GT_tf_semiparam_field = GT_tf_semiparam_field ,
@@ -852,6 +855,7 @@ def evaluate_model(**args):
852855 args ['opt_stars_rel_pix_rmse' ] = False
853856
854857 # Shape metrics
858+ print ('Computing polychromatic high-resolution metrics and shape metrics.' )
855859 shape_results_dict = wf_metrics .compute_shape_metrics (
856860 tf_semiparam_field = tf_semiparam_field ,
857861 GT_tf_semiparam_field = GT_tf_semiparam_field ,
@@ -878,6 +882,7 @@ def evaluate_model(**args):
878882 print ('\n ***\n Metric evaluation on the train dataset\n ***\n ' )
879883
880884 # Polychromatic star reconstructions
885+ print ('Computing polychromatic metrics at low resolution.' )
881886 rmse , rel_rmse , std_rmse , std_rel_rmse = wf_metrics .compute_poly_metric (
882887 tf_semiparam_field = tf_semiparam_field ,
883888 GT_tf_semiparam_field = GT_tf_semiparam_field ,
@@ -897,8 +902,9 @@ def evaluate_model(**args):
897902 'std_rel_rmse' : std_rel_rmse
898903 }
899904
905+ # Monochromatic star reconstructions
900906 if args ['eval_mono_metric_rmse' ] is True or 'eval_mono_metric_rmse' not in args :
901- # Monochromatic star reconstructions
907+ print ( 'Computing monochromatic metrics.' )
902908 lambda_list = np .arange (0.55 , 0.9 , 0.01 ) # 10nm separation
903909 rmse_lda , rel_rmse_lda , std_rmse_lda , std_rel_rmse_lda = wf_metrics .compute_mono_metric (
904910 tf_semiparam_field = tf_semiparam_field ,
@@ -920,6 +926,7 @@ def evaluate_model(**args):
920926
921927 # OPD metrics
922928 if args ['eval_opd_metric_rmse' ] is True or 'eval_opd_metric_rmse' not in args :
929+ print ('Computing OPD metrics.' )
923930 rmse_opd , rel_rmse_opd , rmse_std_opd , rel_rmse_std_opd = wf_metrics .compute_opd_metrics (
924931 tf_semiparam_field = tf_semiparam_field ,
925932 GT_tf_semiparam_field = GT_tf_semiparam_field ,
@@ -939,6 +946,7 @@ def evaluate_model(**args):
939946
940947 # Shape metrics
941948 if args ['eval_train_shape_sr_metric_rmse' ] is True or 'eval_train_shape_sr_metric_rmse' not in args :
949+ print ('Computing polychromatic high-resolution metrics and shape metrics.' )
942950 train_shape_results_dict = wf_metrics .compute_shape_metrics (
943951 tf_semiparam_field = tf_semiparam_field ,
944952 GT_tf_semiparam_field = GT_tf_semiparam_field ,
0 commit comments