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

snapshot...

parent 14d3aa15
Branches
No related tags found
No related merge requests found
...@@ -775,20 +775,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -775,20 +775,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
return out_sr, hr_grd_a, hr_grd_b, hr_grd_c return out_sr, hr_grd_a, hr_grd_b, hr_grd_c
def analyze(file='/Users/tomrink/cld_opd_out.npy'): def analyze(lbls, pred):
# Save this:
# nn.test_data_files = glob.glob('/Users/tomrink/data/clavrx_opd_valid_DAY/data_valid*.npy')
# idxs = np.arange(50)
# dat, lbl = nn.get_in_mem_data_batch(idxs, False)
# tmp = dat[:, 1:128, 1:128, 1]
# tmp = dat[:, 1:129, 1:129, 1]
tup = np.load(file, allow_pickle=True)
lbls = tup[0]
pred = tup[1]
lbls = lbls[:, :, :, 0]
pred = pred[:, :, :, 0]
print('Total num pixels: ', lbls.size) print('Total num pixels: ', lbls.size)
pred = pred.flatten() pred = pred.flatten()
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment