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

snapshot...

parent 53f96aa4
Branches
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ def keep_tile(param_s, tile):
total = np.sum(keep)
if total == 0:
return False
np.where(np.invert(keep), 0, grd_k)
keep = np.where(keep, np.invert(np.logical_and(0.05 < grd_k, grd_k < 0.95)), False)
if np.sum(keep)/total > 0.7:
......@@ -149,7 +150,7 @@ def run_all(directory, out_directory, day_night='ANY'):
[data_train_tiles.append(data_tiles[k]) for k in range(n_vld, num)]
f_cnt += 1
if f_cnt == 10:
if f_cnt == 5:
f_cnt = 0
# label_valid = np.stack(label_valid_tiles)
......@@ -203,7 +204,7 @@ def run(data_h5f, param_s, tiles, tile_width=64, kernel_size=9, day_night='ANY')
tile_width += 2 * border
num_keep_x_tiles = 6
num_keep_x_tiles = 8
i_skip = tile_width
j_skip = tile_width
i_start = int(num_pixels / 2) - int((num_keep_x_tiles * tile_width) / 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment