https://github.com/cviu-csu/tct-infonce
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: CVIU-CSU
- Language: Jupyter Notebook
- Default Branch: main
- Size: 1.66 MB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
TCT-InfoNCE
An efficient framework based on large foundation model for cervical cytopathology whole slide image classification
Model Overview
Install
On an NVIDIA Tensor Core GPU machine, with CUDA toolkit enabled.
Download our repository and open the TCT-InfoNCE
git clone https://github.com/CVIU-CSU/TCT-InfoNCE.git cd TCT-InfoNCERequirements
bash
conda create -n tct-info python=3.8
conda activate tct-info
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
pip install open_clip_torch==2.23.0 transformers==4.35.2 matplotlib
pip install h5py scikit-learn==0.22.1 future==0.18.3
pip install wandb==0.15 torchsummary==1.5.1 torchmetrics
pip install einops chardet omegaconf
pip install jupyter
- Make directories
bash mkdir data mkdir mil-methods/output-model mkdir extract-features/output-model
Results and Models
- Result
- Model Download The models and gc-features can be accessed from Baiduyun.
Train FNAC-2019
The CSD dataset labels are based on the WSI as the fundamental unit, and the details can be found in the datatools folder. Owing to the absence of permission to publicly disclose the CSD dataset, we have presented the experimental procedure for the FNAC-2019 dataset, which exhibits a similar procedure to that of the CSD dataset. The experiments were conducted on a machine equipped with four NVIDIA GeForce RTX 3080 GPUs; however, it is also feasible to conduct them using a single GPU.
Befor Training, need to download the FNAC-2019 dataset and put it in the data folder.
The training process consists of three stages: filtering patches, training adapter, and training the MIL method. The subsequent process is specifically tailored for the PLIP foundation model in conjunction with the MHIM(TransMIL) approach.
Filter patches ```bash
default: 4 gpu; output: ./data/fnac/biomedclip-test-meanmil-20
bash tools/filter.sh ```
Train adapter ```bash
default: 4 gpu; output: ./extract-features/output-model/simclr-infonce
bash tools/adapter.sh ```
Train MIL ```bash
extract patch features use the trained image encoder
default: 4 gpu; output: ./data/fnac-features/biomedclip-adapter
bash tools/extract.sh
train TransMIL
default: 1 gpu; output: ./mil-methods/output-model/biomedclip-adapter-mhim(transmil)-fnac-trainval
bash tools/mil.sh ```
Test CSD
You can eval our method on CSD dataset by downloading the WSI features and MIL methods' weights from Baiduyun. Put the download file to TCT-InfoNCEI folder, which is this project root.
bash
bash tools/test.sh
Acknowledgements
Citation
Owner
- Name: CVIU-CSU
- Login: CVIU-CSU
- Kind: organization
- Repositories: 4
- Profile: https://github.com/CVIU-CSU
GitHub Events
Total
- Issues event: 2
- Watch event: 2
- Issue comment event: 1
- Push event: 4
- Fork event: 1
Last Year
- Issues event: 2
- Watch event: 2
- Issue comment event: 1
- Push event: 4
- Fork event: 1