jamesdolezal / slideflow

Deep learning library for digital pathology, with both Tensorflow and PyTorch support.
https://slideflow.dev
GNU General Public License v3.0
230 stars 38 forks source link

Cannot use predict slide for MIL model #365

Open jziggles opened 2 months ago

jziggles commented 2 months ago

Description

The "predict_slide" function in slideflow studio does not work. I have been using the magnification value in the tile_um variable during tile extraction. The slides (TCGA library for ER status by IHC) appear to have different tile_um sizes ranging from 497 to 505 uM when they are loaded in slideflow. Is this variable nature the problem?

To Reproduce

Steps to reproduce the behavior:

  1. Load project
  2. Load MIL model
  3. Load slide that has been run in MIL model w/ attention values
  4. Click predict slide

Error message in slideflow studio MIL model tile size (tile_px = 500, tile_um = 10x) does not match the currently loaded slide (tile_px = 500, tile_um=497)

Expected behavior

I want to be able to predict the slide and overlay attention values.

Environment: