diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py index 020668d3cfb31ed735c1603bfaa82beadbb81729..8f0251a41724acfc26e259b1c65dacadeba9758c 100644 --- a/modules/deeplearning/icing_cnn.py +++ b/modules/deeplearning/icing_cnn.py @@ -1033,7 +1033,7 @@ class IcingIntensityNN: self.do_evaluate(ckpt_dir) -def run_restore_static(filename_l1b, filename_l2, ckpt_dir_s_path, day_night='DAY', use_flight_altitude=False): +def run_restore_static(filename_l1b, filename_l2, ckpt_dir_s_path, day_night='DAY', l1b_or_l2='both', use_flight_altitude=False): ckpt_dir_s = os.listdir(ckpt_dir_s_path) cm_s = [] prob_s = [] @@ -1043,7 +1043,7 @@ def run_restore_static(filename_l1b, filename_l2, ckpt_dir_s_path, day_night='DA ckpt_dir = ckpt_dir_s_path + ckpt if not os.path.isdir(ckpt_dir): continue - nn = IcingIntensityNN(day_night=day_night, use_flight_altitude=use_flight_altitude) + nn = IcingIntensityNN(day_night=day_night, l1b_or_l2=l1b_or_l2, use_flight_altitude=use_flight_altitude) nn.run_restore(filename_l1b, filename_l2, ckpt_dir) cm_s.append(tf.math.confusion_matrix(nn.test_labels.flatten(), nn.test_preds.flatten())) prob_s.append(nn.test_probs.flatten())