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

Slow performance in Macenko normalization #1

Open
haoranch3n opened this issue Oct 15, 2024 · 0 comments
Open

Slow performance in Macenko normalization #1

haoranch3n opened this issue Oct 15, 2024 · 0 comments

Comments

@haoranch3n
Copy link

Hello,

I'm facing performance issues with Macenko normalization. Here are the timing results for each step on a typical 512x512 patch:

__convert_rgb2od took 0.14093 seconds
linalg_eigh took 0.00055 seconds
__find_HE took 0.28750 seconds
__find_concentration took 0.54008 seconds
__convert_rgb2od took 0.00351 seconds
linalg_eigh took 0.00012 seconds
__find_HE took 0.00606 seconds
__find_concentration took 0.01264 seconds

The bottleneck seems to be in the __convert_rgb2od, __find_HE, and __find_concentration steps, which are significantly slower than others. I've tried both CPU and GPU, but performance is still slow.

Does anyone have insights into why these specific steps might be taking so long or know of potential optimizations that could speed them up? Any insights or suggestions for optimization would be greatly appreciated!

Thanks in advance for your help!

@st24hour st24hour assigned st24hour and unassigned st24hour Oct 16, 2024
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

2 participants