This code repository mainly includes data preprocessing and multiple instance learning(MIL) model training.
- For detailed competition information, please refer to the competition link.
- For detailed solution information, please refer to the discussion link.
- For detailed submission notebook, please refer to the notebook link.
python>=3.10
git clone --recurse-submodules https://github.com/m1dsolo/UBC-OCEAN-7th.git
pip install UBC-OCEAN-7th/yangdl
-
Tiling patches
python png2patches.py
-
Download ctranspath checkpoints
-
Extract features
python gen_features.py -t ctrans python gen_features.py -t vits16
-
train MIL
python train_dsmil.py -t ctrans python train_dsmil.py -t vits16 python train_perceiver.py -t ctrans python train_perceiver.py -t vits16
model will save to ./res/*/ckpt