You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so the problem here is that the Evaluation class isn't set up to support semantic segmentation, only output of OutputLayer and RnnOutputLayer (i.e., rank2/3 output/labels)
one workaround is reshaping: start with your [n,c,h,w] shape labels/output, permute to [n,h,w,c] then reshape to [n*h*w,c] and call evaluation
all up that looks like INDArray labels2d = labels.permute(0,2,3,1).dup().reshape('c',n*h*w,c) and same for the labels (and yes, the dup there is necessary)
then you can do: Evaluation e = new Evaluation(); e.eval(labels2d, out2d); (with a loop over all minibatches in your dataset)
Maybe also 4d support for RegressionEvaluation, etc. And ROCMultiClass support.
From gitter:
Aha! Link: https://skymindai.aha.io/features/DL4J-8
The text was updated successfully, but these errors were encountered: