Skip to content

Commit

Permalink
add more placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 21, 2024
1 parent 7cb498c commit 54e143d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ def create_sdt_target(self, mask):
#
# At this point we have a model that does what we told it too, but do not yet have a segmentation. <br>
# In the next section, we will perform some post-processing and obtain segmentations from our predictions.

# %% [markdown]
# <hr style="height:2px;">
#
Expand Down Expand Up @@ -626,10 +627,10 @@ def get_inner_mask(pred, threshold):
threshold = ...

# Get inner mask
inner_mask = get_inner_mask(pred, threshold=threshold)
inner_mask = get_inner_mask(...)

# Get the segmentation
seg = watershed_from_boundary_distance(pred, inner_mask, min_seed_distance=20)
seg = watershed_from_boundary_distance(...)

# %% tags=["solution"]
idx = np.random.randint(len(val_data)) # take a random sample
Expand Down Expand Up @@ -1196,6 +1197,11 @@ def create_aff_target(self, mask):
# ## Bonus: Further reading on Affinities
# [Here](https://localshapedescriptors.github.io/) is a blog post describing the Local Shape Descriptor method of instance segmentation.
#

# %% [markdown]
# <div class="alert alert-block alert-success">
# <h2> Checkpoint 3 </h2>

# %% [markdown]
# <hr style="height:2px;">
#
Expand Down

0 comments on commit 54e143d

Please sign in to comment.