-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prediction to image #14
Comments
Hi, @lfangyu09 Do you mean that how we get the predicted images? If yes, we call the function In this inference procedure, we don't binarize the image with any thresholds. The thresholds are selected through the PR curve in the evaluation procedure. |
Hi, Thanks a lot for your reply. If you change the outputs into the range of [-1,1], how do you save these outputs into images? Because I want to evaluate the output by using precision, recall, and so on. Thanks! |
util.tensor2im converts the image with the range of [-1, 1] to [0, 255]. Then, you can evaluate the precision and recall with the saved images. |
Hi,
Thanks a lot for providing this very useful code. I have a question about your code. Because I saw you used different thresholds to binarize the predicted image, I wonder how the prediction is changed to an image? prediction of the model -> sigmoid -> *255 to array -> image? Thanks!
The text was updated successfully, but these errors were encountered: