Tresholding the prediction image to binary before sending to loss function

Hi Andrei (and Einrone and Arul)!

For completeness, let me link to some further comments on this issue
that I posted in the aforementioned thread:

Best.

K. Frank