Skip to content
forked from YH0517/AFLoc

This is reforged version of the original AFLoc

License

Notifications You must be signed in to change notification settings

nicolay-r/AFLoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFLoc

Generalizable vision-language pre-training for annotation-free pathology localization

Some code is borrowed from GLoRIA and BioViL.

Environmental preparation

conda create -n AFLoc python=3.9
pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html
conda activate AFLoc
pip install -r requirements.txt

Links to download datasets

Preprocess

Download the necessary files and perform the following code:

python preprocess/resize.py
python preprocess/preprocess.py

Pretraining

Adjust the necessary paths and perform the following code:

python train.py -c ./afloc/config.yaml --train

Inference

Download the pre-trained weight and place it in the ./pretrained folder

We use MS-CXR as an example:

python inference.py -ds MS_CXR --gpu 0 

About

This is reforged version of the original AFLoc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%