josedolz/HyperDenseNet_pytorch

Error message Inference (dscAll)

HeatherTUE opened this issue · 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