We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
intersection_over_union
Trying to copy over the Jaccard Index example to use with the functional IoU, results in the following error:
RuntimeError: The size of tensor a (23) must match the size of tensor b (2) at non-singleton dimension 2
Steps to reproduce the behavior...
from torchmetrics.functional.detection import intersection_over_union target = torch.randint(0, 2, (10, 25, 25)) preds = torch.tensor(target) preds[2:5, 7:13, 9:15] = 1 - preds[2:5, 7:13, 9:15] intersection_over_union(preds=preds[2], target=target[2])
Expecting to get the same prediction as in the Jaccard Index example.
conda
pip
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
No branches or pull requests
馃悰 Bug
Trying to copy over the Jaccard Index example to use with the functional IoU, results in the following error:
To Reproduce
Steps to reproduce the behavior...
Expected behavior
Expecting to get the same prediction as in the Jaccard Index example.
Environment
conda
,pip
, build from source):The text was updated successfully, but these errors were encountered: