| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
We have released an improved embedder finetuning method based on ICMIL, which is even more effective and elegant. Switch to the other branch to use the new confidence-based embedder finetuning method.
In this preview version of ICMIL code, sensitive information and code comments has been removed to keep our submission anonymous. Some modifications (e.g., path to dataset, path to pretrained weights) to the code by yourself is necessary for running ICMIL correctly.
This repo contains the following codes that may be helpful for understanding our idea:
It should also be noted that, the official code of DTFD-MIL requires using PyTorch 1.4.0 for training, otherwise an Exception will be raised during training. However, the other baselines do not have such prerequistes. In our experiments, we set a independent anaconda environment with PyTorch 1.4.0 for DTFD-MIL related experiments. Other experiments are conducted with Python 3.9.12 and PyTorch 1.12.1. You need to have a GPU with >12GB video memory for the training, or otherwise you can reduce the default training batch size in step2.
Some required libraries:
Please use the unpreprocessed official release of Camelyon16 for the most accurate verification of ICMIL. The release can be found here:
**GigaScience Database:** http://gigadb.org/dataset/100439 **AWS Registry of Open Data**: https://registry.opendata.aws/camelyon/ **Baidu Pan:** https://pan.baidu.com/s/1UW_HLXXjjw5hUvBIUYPgbA
If you would like to try ICMIL on your own WSI dataset, please make sure they follow the same file structure of Camelyon16, otherwise you may also need to write your own dataset.py for compatibility.
The current version of code only use one single GPU for training. If you would like to use multiple GPUs for larger batch size, please remember to convert each model with torch.nn.DataParallel().
The saved log files or weights during ICMIL training can be found directly in the folder. You can also change the saving directory by yourself at the end of each code file. After you run the three steps, you will have a new ResNet50 tailored for the WSI dataset, which can be used again in Step1 for better embeddings.
Sorry for our previous mistake. These weights were supposed to be directly uploaded to this repo but I forgot they were masked in my .gitignore file. After the 2023/11/16 commit everything should be in the place.
The max supplementary material file size limit is 100Mb as is shown in CMT. Therefore, we carefully selected the following weights for your evaluation. Also, the full pretrained weights (including the full MIL weights and the corresponding ResNet50 weights after ICMIL) will be open along with the code upon paper acceptance.
These pretrained weights can be found in ./utils/ with the corresponding filenames. It should be noted that these MIL weights should also be used with the corresponding instance embeddings by ICMIL.
| Back | FazBrowse Home | New Git URL |