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

Issue with GeneralizedDiceScore #652

Closed
nkaenzig opened this issue Sep 30, 2024 · 0 comments · Fixed by #653
Closed

Issue with GeneralizedDiceScore #652

nkaenzig opened this issue Sep 30, 2024 · 0 comments · Fixed by #653
Labels
bug Something isn't working metrics

Comments

@nkaenzig
Copy link
Collaborator

After merging #640, I get this error when calculating the generalized dice metric:

line 63, in _generalized_dice_update
    intersection = torch.sum(preds * target, dim=reduce_axis)
RuntimeError: The size of tensor a (223) must match the size of tensor b (224) at non-singleton dimension 2

Reproduce:

eva predict_fit --config configs/vision/pathology/offline/segmentation/consep.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working metrics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant