-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add essential changes from main #601
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add finetuning flags: `tune_encoder tune_pooling tune_classifier` to flexibly finetune each part of the network.
Add flags `pretrain_encoder pretrainer_pooling pretrain_classifier` to init submodules weights from a pretrained checkpoint in `src_checkpoint`
In this PR, Average Precision, Specificity, and Cohen Kappa metrics are added for the binary classification case in deepmil.py.
Updating transfer_main to main, this includes * bug fixes to handle error in saving outputs * integration test
Add command line arg for custom SSL checkpoint
Add `dataframe_kwargs` to BaseDatasets and HistoDatamodule to be able to read only subset of csv and custom datatype
Clean up logs
Index datasets dataframe by tile_id or slide_id only when necessary (e.g. the current index is not already to tile_id or slide_id columns) * update check
Add pl_sync_batchnorm flag to turn on and off batch norm synchronization via commandline/config files
Add a smoke test where all finetuning flags are switched on to make sure checkpoint loading and submodules initialization are completed properly.
Add debug_ddp to assign different options to `TORCH_DISTRIBUTED_DEBUG` env variable.
Add parameter to control tiles intensity scaling to be able to run augmentations on uint8 data to save some memory and speed up computations.
Add specific ImageNet encoders for transferability study: Resnet18/50 with and without preproc
…577) Use df.assign to fix SettingWithCopyWarning warning and make metadata validation optional to be able to read only subsets of dataset csv
…578) In this PR: Average precision metric is added to multi-class (n_classes > 1) case. AUROC is modified such that num_classes=None for binary case, as prescribed in Pytorch documentation https://torchmetrics.readthedocs.io/en/stable/classification/auroc.html. Parameter num_classes is not explicitly given in Specificity, similar to the other binary metrics. Hardcoded threshold=0.5 is removed from binary metrics (since this is default value). Confusion matrix is normalized on true values. Metrics are re-organized for readability.
We used to display probabilities of ground truth labels instead of predicted ones.
Predicted labels should be integers.
Add a log to print the epoch of best checkpoint.
Enable stain normalization to work with multiple images (e.g., when a bag of tiles is given as input).
In this PR: - transformer_dropout parameter is added to TransformerPooling and TransformerPoolingBenchmark pooling layers. - Tests are updated with the transformer_dropout parameter.
Adding grad accumulation to trainer container params
Update environment variable settings for multi node jobs
Enable submitting jobs to Singularity via Amulet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add code from PRs