Skip to content

Error message Inference (dscAll) #3

Open
@HeatherTUE

Description

@HeatherTUE

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions