Skip to content

WSIReader, cucim , tifffile, performance regressions #5580

@myron

Description

@myron

with pathology MIL classification tutorial, as an example
https://github.com/Project-MONAI/tutorials/blob/main/pathology/multiple_instance_learning/panda_mil_train_evaluate_pytorch_gpu.py

WSIReader is now imported from from monai.data.wsi_reader import WSIReader. If changing the import to the old way (now deprecated) from monai.data.image_reader import WSIReader, and setting backend=tifffile, then training is ~10% faster. seems like a performance regression.

Training time on 8gpu, 1 epoch

  • from monai.data.wsi_reader import WSIReader, (backend=cucim) 313 seconds
  • from monai.data.wsi_reader import WSIReader, (backend=tiffile) 303 seconds
  • from monai.data.image_reader import WSIReader, (backend=tiffile) 283 seconds

Metadata

Metadata

Assignees

Labels

Pathology/MicroscopyDigital Pathology and Microscopy related

Type

No type

Projects

Status

💯 Complete

Relationships

None yet

Development

No branches or pull requests

Issue actions