ml-cvnets icon indicating copy to clipboard operation
ml-cvnets copied to clipboard

Confusion matrix is None. Check code Error

Open HaoWuSR opened this issue 3 years ago • 1 comments

Sorry to bother you. But I meet (Confusion matrix is None. Check code) Error

When I use the following command in ADE20K Dataset (However, it works well in PascalVoc2012): export CFG_FILE="PATH_TO_CONFIG_FILE" export DEEPLABV3_MODEL_WEIGHTS="PATH_TO_MODEL_WEIGHTS" CUDA_VISIBLE_DEVICES=0 cvnets-eval-seg --common.config-file $CFG_FILE --common.results-loc seg_results --model.segmentation.pretrained $DEEPLABV3_MODEL_WEIGHTS --evaluation.segmentation.resize-input-images --evaluation.segmentation.mode validation_set

It gets : Confusion matrix is None. Check code ......... acc_global, acc, iu, = conf_mat.compute() TypeError: cannot unpack non-iterable NoneType object

Maybe the error is caused by class ConfusionMatrix() with zero return value, I don't know how to figure it out Btw, the evaluation on a single image works properly.

HaoWuSR avatar Sep 27 '22 00:09 HaoWuSR

I have solved it! sry!

HaoWuSR avatar Sep 27 '22 08:09 HaoWuSR