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

miou calculations are time-consuming #2891

Open
xiuguangLi opened this issue Jan 2, 2025 · 2 comments
Open

miou calculations are time-consuming #2891

xiuguangLi opened this issue Jan 2, 2025 · 2 comments
Labels
bug / fix Something isn't working help wanted Extra attention is needed

Comments

@xiuguangLi
Copy link

Hello, in the use of torchmetrics. Segmentation. MeanIoU calculation, more time-consuming, even with the cuda.
Example:
num_classes = 21
bs,h,w =10, 512,512
preds = torch.randint(0,num_classes,(bs,h,w))
labels = torch.randint(0,num_classes,(bs,h,w))

Can it be optimized?

@xiuguangLi xiuguangLi added bug / fix Something isn't working help wanted Extra attention is needed labels Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Hi! thanks for your contribution!, great first issue!

@Isalia20
Copy link
Contributor

Isalia20 commented Jan 2, 2025

Screenshot 2025-01-02 at 18 59 10

I got these times, do you expect it to be faster? Would be helpful if you post the times you get or a snippet for which execution is slow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants