This is a refactoring of the set_metrics function (not used in the current code). It was converted into a class so it can provide an additional metric, the intersection-over-union. It can also be called several times in a sequence to accumulate the values of true positives, false positives, ... and to computer the mean intersection-over-union (mIoU).
This is a refactoring of the set_metrics function (not used in the current code). It was converted into a class so it can provide an additional metric, the intersection-over-union. It can also be called several times in a sequence to accumulate the values of true positives, false positives, ... and to computer the mean intersection-over-union (mIoU).