GPL-3 extensions and tools for Slideflow.
Project description
Slideflow-GPL brings additional digital pathology deep learning tools to Slideflow, under the GPL-3 license.
Slideflow is designed to provide an accessible, easy-to-use interface for developing state-of-the-art pathology models. While the core Slideflow package integrates with a wide range of cutting-edge methods and models, the variability in licensing practices necessitates that some functionality is distributed through separate add-on packages. Slideflow-GPL extends Slideflow with additional tools available under the GPL-3 license, ensuring that the core package remains as open and permissive as possible.
Requirements
Installation
Slideflow-GPL is easily installed via PyPI and will automatically integrate with Slideflow.
pip install slideflow-gpl
Features
- RetCCL, a pretrained feature extractor (GitHub | Paper)
- CTransPath, a pretrained feature extractor (GitHub | Paper)
- CLAM, a multiple-instance learning (MIL) model architecture (GitHub | Paper)
RetCCL & CTransPath
The RetCCL and CTransPath feature extractors are accessible using the same interface all pretrained extractors utilize in Slideflow.
import slideflow as sf
retccl = sf.build_feature_extractor('retccl')
Please see the Slideflow documentation for additional information on how feature extractors can be deployed and used.
CLAM
The CLAM architectures, CLAM_SB
, CLAM_SB
, MIL_fc
, and MIL_fc_mc
will be automatically available upon installation, and can be specified using the same mil_config()
interface used for other MIL models in Slideflow.
import slideflow as sf
import slideflow.mil
config = sf.mil.mil_config('clam_mb', epochs=20, lr=1e-4)
Please see the Slideflow docs for more information on MIL models.
License
This code is made available under the GPLv3 License.
All three features made available in this repository - RetCCL, CTransPath, and CLAM - are licensed under GPLv3. However, please be aware that authors have stated their intent for these models to be used for non-commercial, academic purposes (1, 2, 3).
Reference
If you find our work useful for your research, or if you use parts of this code, please consider citing as follows:
Dolezal, J.M., Kochanny, S., Dyer, E. et al. Slideflow: deep learning for digital histopathology with real-time whole-slide visualization. BMC Bioinformatics 25, 134 (2024). https://doi.org/10.1186/s12859-024-05758-x
@Article{Dolezal2024,
author={Dolezal, James M. and Kochanny, Sara and Dyer, Emma and Ramesh, Siddhi and Srisuwananukorn, Andrew and Sacco, Matteo and Howard, Frederick M. and Li, Anran and Mohan, Prajval and Pearson, Alexander T.},
title={Slideflow: deep learning for digital histopathology with real-time whole-slide visualization},
journal={BMC Bioinformatics},
year={2024},
month={Mar},
day={27},
volume={25},
number={1},
pages={134},
doi={10.1186/s12859-024-05758-x},
url={https://doi.org/10.1186/s12859-024-05758-x}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file slideflow_gpl-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: slideflow_gpl-0.0.2-py3-none-any.whl
- Upload date:
- Size: 63.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8629f58c033e16039dd55e4ab61074eb2549e99ac64fa2cf5c617a5b8a686318 |
|
MD5 | 09545d592fcdc3be862b194df5f41ef5 |
|
BLAKE2b-256 | e37a30b69fd73cc5baf93a79c7c58532ff5e79f08f1ad9591c0c2231ad11874e |