HyperDenseNet_pytorch icon indicating copy to clipboard operation
HyperDenseNet_pytorch copied to clipboard

Error message Inference (dscAll)

Open HeatherTUE opened this issue 2 years ago • 0 comments

Dear @josedolz,

I am using your HyperDenseNet with 2 modalities (T1 and Flair). It trains and the validation runs also. When the validation is done, I receive an error which involves calculating dsc. The error is as follows:

** in inference(network, moda_n, moda_g, imageNames, epoch, folder_save, number_modalities) 100 101 dsc = evaluateSegmentation(gt,bin_seg) --> 102 dscAll[i_s, :] = dsc 103 104 return dscAll

ValueError: could not broadcast input array from shape (2) into shape (1)**

Can you help me solve this error?

Kind regards, Heather

HeatherTUE avatar Jan 04 '22 12:01 HeatherTUE