Skip to content

Deep Multiple Instance Learning with Distance-Aware Self-Attention

Notifications You must be signed in to change notification settings

georg-wolflein/das-mil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Multiple Instance Learning with Distance-Aware Self-Attention (DAS-MIL)

Paper link

Installation

If you're using a GPU, run:

./install_gpu.sh

Otherwise, use:

./install_cpu.sh

Training

MNIST-COLLAGE

python3 train.py +selected_model/mnist_collage=distance_aware_self_attention +experiment=mnist_collage

MNIST-COLLAGE-INV

python3 train.py +selected_model/mnist_collage=distance_aware_self_attention +experiment=mnist_collage_inverse

CAMELYON16

python3 train.py +selected_model/camelyon16=distance_aware_self_attention

You can use the option device=0 to use GPU 0. Full list of options is available at conf/config.yaml. We use hydra for configuration management.

Ablations

See the YAML files in conf/selected_model/mnist_collage_ablations. Run ./run_trials_for_selected_models_cpu.sh to run all the ablations (set selected_model_type="mnist_collage_ablations" in the shell script).

About

Deep Multiple Instance Learning with Distance-Aware Self-Attention

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published