Closed josenimo closed 1 year ago
Dear @josenimo
As written in the comment I'm linking, the 'bfio' module missing error doesn't affect background subtraction, as it just indicates that one reader did not work so another one was used.
Regarding why the process was terminated, it was likely due to not providing enough RAM. Currently, Backsub requires 2-3x memory as the input image size and I'm working on increasing the efficiency.
Best, Krešo
Hi @kbestak,
I also encountered this issue when working with large (>100GB) datasets. It would be impractical for us to purchase 100-200GB additional ram due to cost (our computer already has 128GB), so I plan to downsample these images, which is not preferable. Are there still plans on reducing the memory utilization? I am using this package via MCMICRO and this memory utilization is a bottleneck for analysis. Thank you for supporting this valuable tool!
Thank you, Matt
Hi @mdposkus,
I completely understand the impracticality of the RAM usage required by Backsub currently. I am definitely planning on optimising the tool as soon as possible as I'm certain it can be more memory efficient. Ideally, this would happen in November. I agree downsampling should not be an option, and apologies for the tool being the bottleneck!
Best, Kreso
Hi @josenimo and @mdposkus,
I've developed a new, RAM-efficient version of Backsub with v0.4.1 --> https://github.com/SchapiroLabor/Background_subtraction/pull/14.
I was able to process an 88GB large image with only 13GB of RAM so I hope it will suffice for your usecases!
Best, Kreso
Hi @kbestak,
Thank you for the update! I look forward testing it in the coming weeks and analyzing some full-resolution images. If the RAM usage scaling is similar for my image sets then this will perfectly suit our needs.
Best, Matt
Hey @kbestak , wonderful news, you should update the MCMICRO config.nf :) will report back on its use
Almost there ;) https://github.com/labsyspharm/mcmicro/pull/528
Dear @kbestak and @FloWuenne ,
I am trying to run an mcmicro fork of mine https://github.com/josenimo/mcmicro. It crashed starting background subtraction, it seems we are missing the bfio module from aicsimageio.readers.bfio_reader.OmeTiledTiffReader. Have you seen this before?
mcmicro was running the following from defaults.yml background: name: backsub container: ghcr.io/schapirolabor/background_subtraction version: v0.3.3
Here is the full exit message:
Best, Jose