Skip to content
Snippets Groups Projects
Commit 6eef022c authored by tomrink's avatar tomrink
Browse files

snapshot...

parent d4ee60d8
No related branches found
No related tags found
No related merge requests found
......@@ -1175,7 +1175,7 @@ def run_evaluate_static_2(model, data_dct, num_tiles, prob_thresh=0.5, flight_le
return preds_dct, probs_dct
def run_evaluate_static_avg(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH', use_flight_altitude=False):
def run_averaged_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH', use_flight_altitude=False):
ckpt_dir_s = os.listdir(ckpt_dir_s_path)
weight_s = []
......@@ -1197,7 +1197,7 @@ def run_evaluate_static_avg(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BO
new_model.build_training()
new_model.build_evaluation()
# -- save the averaged weights to a new the model
# -- Save the averaged weights to a new the model
if not os.path.exists(modeldir):
os.mkdir(modeldir)
ckpt = tf.train.Checkpoint(step=tf.Variable(1), model=new_model.model)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment