Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message Inference (dscAll) #3

Open
HeatherTUE opened this issue Jan 4, 2022 · 0 comments
Open

Error message Inference (dscAll) #3

HeatherTUE opened this issue Jan 4, 2022 · 0 comments

Comments

@HeatherTUE
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant