Skip to content
Snippets Groups Projects
Commit 242182e5 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 36079528
Branches
No related tags found
No related merge requests found
......@@ -897,11 +897,11 @@ def run_restore_static(directory, ckpt_dir, out_file=None):
y_hi, x_hi = (Y_LEN // 4) + 1, (X_LEN // 4) + 1
np.save(out_file,
[np.squeeze(labels), preds.argmax(axis=3),
denormalize(inputs[:, 1:y_hi, 1:x_hi, 0], 'temp_11_0um_nom', mean_std_dct),
denormalize(inputs[:, 1:y_hi, 1:x_hi, 1], 'refl_0_65um_nom', mean_std_dct),
denormalize(inputs[:, 1:y_hi, 1:x_hi, 2], 'refl_0_65um_nom', mean_std_dct),
inputs[:, 1:y_hi, 1:x_hi, 0],
descale(inputs[:, 1:y_hi, 1:x_hi, 1], 'refl_0_65um_nom', mean_std_dct),
descale(inputs[:, 1:y_hi, 1:x_hi, 2], 'refl_0_65um_nom', mean_std_dct),
inputs[:, 1:y_hi, 1:x_hi, 3],
inputs[:, 1:y_hi, 1:x_hi, 4]])
descale(inputs[:, 1:y_hi, 1:x_hi, 4], label_param, mean_std_dct)])
def run_evaluate_static(in_file, out_file, ckpt_dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment