Implementation of new MIL algorithms and editing existing files to accommodate such algorithms #5
Open
awxlong wants to merge 8 commits intosecrierlab:mainfrom
Open
Implementation of new MIL algorithms and editing existing files to accommodate such algorithms #5awxlong wants to merge 8 commits intosecrierlab:mainfrom
awxlong wants to merge 8 commits intosecrierlab:mainfrom
Conversation
awxlong
commented
Jan 18, 2025
- I first deleted MIL.py from PL_protocol/ and replaced it with my own BaseMIL.py. This implements the abstract class BaseMIL from which all MIL algorithms inherit.
- I modified Image/MIL/init.py's list of available MIL models. I also modified Image/MIL/utils.py's file to include more helper functions relevant to the MIL algorithms, such as transformer layers and multimodal fusion.
- I modified the Image/init.py create_img_model() function to be more flexible to call the newly implemented MIL algorithms
- I added the definition of the following MIL algorithms, their paras, and pytorch lightning wrapper: AttentionMIL, CAMIL, CLAM, DTFD_MIL, DTFDMultimodal (please ignore this one I shouldn't push this), GraphTransformer, Transformer, TransMIL, and TransMILMultimodal and TransMILRegression.
added 8 commits
August 27, 2024 17:54
…onfig.py for better naming of directories created (avoid creating repetitive Data/ directory); 3. update pre_processing.py to extract features with foundation models UNI, prov-gigapath, resnet-50 and also compute weighted adjacency matrices as in CAMIL
…mmodate the new MIL algorithms
This file contains hidden or 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
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.