developmentseed/skynet-train

test_segmentation.py fails if every test output is background-only

anandthakker opened this issue · 0 comments

This line fails on a divide-by-zero error:

'correctness': pixels_correct / pixels_predicted_fg,

This is an extreme edge case, though, which probably indicates that something is wrong with the weights being used.