Skip to content

Commit

Permalink
double delta
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandaele committed Mar 28, 2019
1 parent c788d5e commit 19cb9ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def main():
x_final, y_final = compute_final_solution_phase_3(Xc, Yc, probability_volume, conn.parameters.model_n_candidates, train_parameters['model_sde'], train_parameters['model_delta'], train_parameters['model_T'], edges)
lbl_img = np.zeros((init_h, init_w), 'uint8')
for i in range(x_final.size):
x = min(init_w-1, max(0, int(x_final[i]/train_parameters['model_delta'])))
y = min(init_h-1, max(0, int(y_final[i]/train_parameters['model_delta'])))
x = min(init_w-1, max(0, int(x_final[i])))
y = min(init_h-1, max(0, int(y_final[i])))
lbl_img[y, x] = term_list[i]
imwrite(path=os.path.join(out_path, '%d.tif' % j), image=lbl_img.astype(np.uint8), is_2d=True)
upload_data(problem_cls, conn, in_images, out_path, **conn.flags, is_2d=True, monitor_params={"start": 90, "end": 95, "period": 0.1})
Expand Down

0 comments on commit 19cb9ee

Please sign in to comment.