CellViT icon indicating copy to clipboard operation
CellViT copied to clipboard

Big svs Prediction

Open Transformer-man opened this issue 2 years ago • 7 comments

Hi, when I make a prediction on a svs file of size 191231, 86398 with mpp=0.25, the 128G of RAM just explodes. Any solution for this?

Transformer-man avatar Sep 05 '23 07:09 Transformer-man

With this information I can’t help you. Please use the provided bug report template and add all necessary information (function call with terminal command, error messages, part of Programm that fails etc.)

FabianHoerst avatar Sep 06 '23 04:09 FabianHoerst

Hello, I didn't make any mistakes. When making predictions, I was able to complete them, but when I finally generated the geojson file, my computer got stuck image

Transformer-man avatar Sep 06 '23 14:09 Transformer-man

I have set the num worker too small to run, but there are new errors image

Transformer-man avatar Sep 07 '23 11:09 Transformer-man

Hello. I just used the example you provided, and the model weight used is CellViT-256. I have made many attempts but cannot predict correctly on a machine with 128G memory. Here is the image for the address: https://drive.google.com/file/d/17Wk0LB9dS1pJghlfpqZyh0M2dluVFSSH/view?usp=sharing. Thank you very much for your help.

Transformer-man avatar Sep 08 '23 01:09 Transformer-man

We are going to investigate this. It seems that the image is very large with a high amount of cells (>2 Mio). Could be the cause. Is it working for smalle images with less than 1 Mio cells?

FabianHoerst avatar Sep 12 '23 08:09 FabianHoerst

However, the sample code already saves the full image clipping locally and loads all the predictions during the fusion process? So it causes a memory overflow?

We are going to investigate this. It seems that the image is very large with a high amount of cells (>2 Mio). Could be the cause. Is it working for smalle images with less than 1 Mio cells?

464hee avatar Sep 12 '23 10:09 464hee

Hi, do you have any workarounds for inferencing on large images? Perhaps reducing the num_worker? I found that the script gets stuck while inferencing on images with dimensions (179280, 86969) and (131472, 83171).

mdsatria avatar Aug 27 '24 10:08 mdsatria