Skip to content

Commit

Permalink
Update demo.py
Browse files Browse the repository at this point in the history
Use variable threshold.
  • Loading branch information
MarvinTeichmann authored Feb 21, 2017
1 parent 489fa3a commit 8dca063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def main(_):
# Accept all pixel with conf >= 0.5 as positive prediction
# This creates a `hard` prediction result for class street
threshold = 0.5
street_prediction = output_image > 0.5
street_prediction = output_image > threshold

# Plot the hard prediction as green overlay
green_image = tv_utils.fast_overlay(image, street_prediction)
Expand Down

0 comments on commit 8dca063

Please sign in to comment.