Skip to content

Commit

Permalink
experiments for runtime of trained model, implemented results (higher…
Browse files Browse the repository at this point in the history
… threshold, remove small objects)
  • Loading branch information
jr0th committed May 17, 2017
1 parent 6107fba commit ea761d7
Show file tree
Hide file tree
Showing 20 changed files with 9,437 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/helper/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def recall(y_true, y_pred):

def probmap_to_contour(probmap):
# assume 2D input
outline = probmap >= 0.5
outline = probmap >= 0.7

return outline

Expand All @@ -36,6 +36,7 @@ def contour_to_label(outline, image):

# get connected components
labels = skimage.morphology.label(outline, background=1)
skimage.morphology.remove_small_objects(labels, min_size = 100, in_place = True)

n_ccs = np.max(labels)

Expand Down
Binary file added code/results_timing/inf_pp_time_FULL.npy
Binary file not shown.
Loading

0 comments on commit ea761d7

Please sign in to comment.