-
-
Save arunm8489/3271c1cf9fead1da0e99a29273f6a1fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taking only values above a particular threshold and set rest everything to zero | |
mask = (prediction[:,:,4] > confidence_threshold).float().unsqueeze(2) | |
prediction = prediction*_mask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment