Slideflow

Latest version: v2.3.1

Safety actively analyzes 638819 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 10

1.2.1

- Fixes broken submodule which failed to be included with the 1.2.0 wheel

1.1.4

- Log a warning if a `Dataset` cannot find a given configuration source. Previously, missing sources would be quietly ignored.
- Allow using Slideflow without libvips/pyvips installed.
- Fix bug where models were not being saved if early stopping was triggered.
- Compatibility update for Tensorflow 2.9
- Fix logging when testing multiple/single linear outcomes during testing
- Fix logging message when generating features
- Fix type hints
- Fix bug when building Features from model in TF backend
- Fix training bug when `validate_on_batch` is set to 0 in the pytorch backend
- Fix matplotlib warning when making 3D plot
- Fix bug where logging level was fixed to WARNING after running unit tests

1.1.3

- Enables extracting tiles at downsample/magnification level without resizing; use by setting `tile_um` equal to a string of format "[int/float]x", such as "10x", "40x", "2.5x". Slides will log an error if there is no matching downsample level at that layer.
- Vastly reduced time and space required for testing, with switch to tile_px=71, tile_um=1208, and mobilenet_v2 architecture
- Added single linear outcome testing to TestSuite
- TestSuite train testing now ensures results are properly returned from `P.train()`
- P.train() now returns a `dict` instead of a multiprocessing `DictProxy`
- Added unit test framework to TestSuite; tests are automatically run with `test.py`. Individual unit tests located in slideflow.test
- Optimized `Dataset.labels()` to make better use of pandas DataFrame functionality
- Added first unit tests in dataset_test.py, includes tests for Dataset.labels()
- Added type hints throughout
- Adds `SlideMap.filter_index()` method which filters x, y, point_meta, and labels of a SlideMap using the given indices
- Adds `method` argument to `SlideMap.neighbors`, allowing neighbors to be calculated from either UMAP coordinates (`'map'`) or feature vectors (`'features'`)
- Refactored PyTorch training loop within `Trainer`. Functionality remains identical, with cleaner organization and reduced code redundancy.
- Import optimization (delays importing seaborn and matplotlib)
- Added `Dataset.thumbnails()`, deprecated `Project.generate_thumbnails()`
- Added `auto_dataset` function decorator for Project functions; preparation for future removal of `filters` and `filter_blank` arguments in Project functions (instead, pass a filtered `Dataset` object)
- Deprecates` Dataset.split_patients_list()`
- Deprecated `Dataset.training_validation_split()`, use `.train_val_split()`
- Deprecated `Project.generate_tfrecord_heatmap()`. Instead, do `Dataset.tfrecord_heatmap()`
- Removed legacy, unused functions in sf.norm.utils
- Clearer error message when attempting to use a normalizer prior to calling `.fit()`
- Added pool.close() for several ThreadPools
- Fixes `sf.util.multi_warn`
- Fixed typo in Tutorial 2
- Fixed docstring typos in `Project.evaluate()` and `Project.predict()`
- Fixes erroneous error log reporting that training had failed when validation was not performed
- Fixes shape error during metrics calculation
- Fixes false positive MismatchImageFormatsError
- Fixed edge case where Torch TFRecord reading was skipping TFRecords with fewer records than the number of shards/workers
- Fixes rare runtime error when exiting an PyTorch dataloader iteration early
- Fixes Neptune logging error before training starts
- Docstring updates

1.1.2

- Documentation update: Tutorial 5 (mosaic maps)
- Adds `use_norm` argument to `Project.generate_mosaic()`. Controls whether image tiles are normalized prior to display using the training normalizer. If False, shows raw images. Defaults to True (prior behavior)
- New `Dataset.img_format` property which verifies all tfrecords have the same image format (PNG/JPG), returning the image format
- Datasets will now raise `MismatchedImageFormatsError` if tfrecords have mixed image formats
- Model training now saves `img_format` property in `params.json`
- Slide-level prediction (via heatmaps) now extracts tiles using the same image format (PNG/JPG) as the trained model
- Unified `sf.io.detect_tfrecord_format()` between backends; no longer imports torch/tensorflow
- The first argument of `sf.io.detect_tfrecord_format()` now returns a list of features rather than a dict
- Fixes bug where eval and predictions were saved in the model directory, not eval directory
- Fixes python-spams install in Tensorflow dockerfile
- Fixes bug where uncertainty was not properly stored in `DatasetFeatures`
- Fixed documentation typo (on Troubleshooting; for debugging, set environmental variable `SF_LOGGING_LEVEL=10`)

1.1.1

- Updated README
- Documentation update: custom training loops
- Documentation update: uncertainty quantification
- Documentation update: new figures
- Documentation update: tutorial 4 (custom architecture)
- Slide PDF report now shows number of tiles extracted
- Fixes overlapping thumbnails in PDF reports
- Fixes broken numpy dependencies due to conflict between `numba` and `spams`

1.0.8

- Fix bug when building Features from model in TF backend
- Fix matplotlib warning when making 3D plot
- Fix bug where models were not being saved if early stopping was triggered
- Tensorflow 2.9 compatibility update

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.