Open drippypale opened 1 year ago
Hi @drippypale, thank you for your interest in BaSiCPy! I'm sorry for the late response.
Can I call the fit() on multiple small chunks of my images? (I mean calling the fit method of the same BaSiC object each time on a chunk.)
It would be great if we can run the algorithm for small chunks (and I have some idea for that), but currently, this is not implemented. (the state would be reset at each run). We'll discuss this incremental fitting.
Do you have any suggestions on what I should do to resolve the memory(RAM) problem?
Actually, the package uses a "shrunk" version of the images (to the working_size
, 128x128 by default). This process can be done lazily by the dask
package. Can you try BaSiC(resize_mode="skimage_dask")
to see if it solves the problem?
https://basicpy.readthedocs.io/en/latest/api.html#basicpy.basicpy.BaSiC.resize_mode
Sorry mistakenly closed, reopening.
Hi, I'm trying to call the
fit()
on a relatively large tensor of images, and considering the size of the image tensor itself, my RAM(24GB) gets filled and leads to killing the process by the OS.fit()
on multiple small chunks of my images? (I mean calling thefit
method of the sameBaSiC
object each time on a chunk.)