/Chowder

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

Chowder

What is this ?

Code for a submission to the data challenge https://challengedata.ens.fr/participants/challenges/18/ contains:

What's in here ?

  • chowder.ipynb which implements, trains and tests the original method from the paper, it uses:

    • utils.py containing the batch generation functions
    • MILpooling.py containing the implementation of the min-max pooling layer
  • proposed_step1_supervised-pretrain-MLP.ipynb builds an MLP on top of the Resnet50 features and trains in with full supervision on the tile-level annotations

    • model is saved as base_model.h5
  • proposed_step2_MIL-finetune.ipynb fine-tunes the aforementioned MLP with the image-level anntations in a MIL fashion such that the maximum scoring tile in an image would give the image score (respecting the naive MIL assumptions that: 1) if an instance is positive the whole bag is positive, 2) negative bags contain only negative instances)