From 60259de3a0a2e5f0db95dca7bc7156d32ebae7c6 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 13 Nov 2023 16:42:02 -0600
Subject: [PATCH] snapshot...

---
 modules/deeplearning/icing_fcn.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/modules/deeplearning/icing_fcn.py b/modules/deeplearning/icing_fcn.py
index be066c64..6a457584 100644
--- a/modules/deeplearning/icing_fcn.py
+++ b/modules/deeplearning/icing_fcn.py
@@ -1189,14 +1189,6 @@ def run_average_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH',
         k_model = model.model
         model_weight_s.append(k_model.get_weights())
     print('done loading models ******************************************')
-    z_model_weights = zip(model_weight_s)
-    print('test')
-    avg_model_weights = []
-    for lyr in z_model_weights:
-        print(len(lyr))
-        for w in lyr:
-            avg_model_weights(np.mean(w))
-    print('***', len(avg_model_weights))
 
     avg_model_weights = []
     for m in model_weight_s:
@@ -1204,7 +1196,7 @@ def run_average_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH',
         for w in m:
             print(w.shape)
             avg_model_weights.append(np.mean(w))
-
+        print('--------------------------------------')
 
     # -- Make a new model for the averaged weights
     new_model = IcingIntensityFCN(day_night=day_night, l1b_or_l2=l1b_andor_l2, use_flight_altitude=use_flight_altitude)
-- 
GitLab