question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long segmentation time on large microscopy images

See original GitHub issue

Disclaimer This issue is based on preliminary observations and does not contain a lot of details/examples at the moment.

Issue description

I noticed that the segmentation time on large microscopy images is quite long in ivadomed compared to what I was used to in ADS. To this effect, I fixed a bug in image reconstruction in PR #956. In addition, we found that using the .pt version of the model (on GPU) and the .onnx version (on CPU) help with segmentation time as described in issue #961.

Nevertheless, for a microscopy image of ~8000x6000 pixels, the segmentation time with my ivadomed model (.pt on GPU on rosenberg) is around 2.5 minutes. In comparison, an ADS model (on GPU on bireli) would take less than 30 seconds to segment the same image.

I investigated a little bit and the bottleneck seems to come from this for loop. More specifically, there is a delay between the return of reconstruct_3d_object and the beginning of the next iteration of the loop (is it the time to fetch the batch in DataLoader?)

I could use some help here, thanks!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
kousucommented, Nov 3, 2021

Update: I fixed an issue in PR #982 where the transforms were applied on the entire image for each patch instead of on each individual patch. This reduce the segmentation time from 171 sec to 118 sec.

Wow! Congratulations that’s already an amazing performance boost. 🎉 🎉

1reaction
kousucommented, Oct 26, 2021

And @dyt811 I don’t think you need to spend your time profiling with work-in-progress branch afterall.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Real-Time Three-Dimensional Cell Segmentation in Large ...
To efficiently extract 3D cell-shape information from such fluorescence microscopy images, we developed the RACE automated segmentation ...
Read more >
Microscopy cell nuclei segmentation with enhanced U-Net
Cell nuclei segmentation is a fundamental task in microscopy image analysis, based on which multiple biological related analysis can be ...
Read more >
LIVECell—A large-scale dataset for label-free live cell ... - NCBI
Accurate segmentation of individual cells in images enables exploration of ... An early open-source light microscopy dataset was DeepCell, ...
Read more >
Microscopy Image Browser: A Platform for Segmentation ...
Quantitative analysis and efficient segmentation of large or ... Semiautomatic image segmentation in MIB can dramatically decrease the time ...
Read more >
A convolutional neural network segments yeast ... - Nature
We then tested the CNN on another image from a later time point of one of the scenes, when the filamentous cells had...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found