HistoCancer

Histopathologic Cancer Detection Identify metastatic tissue in histopathologic scans of lymph node sections

https://www.kaggle.com/c/histopathologic-cancer-detection

In [1]:
%reload_ext autoreload
%autoreload 2
%matplotlib inline
In [2]:
from fastai.vision import *
from fastai.metrics import accuracy
In [3]:
PATH = "/home/katey/DeepLearning/Data/HistoCancer/"
In [4]:
sz = 96
bs = 128
In [5]:
tfms = get_transforms(flip_vert = True)
In [6]:
data = ImageDataBunch.from_csv(path = PATH, folder = 'train', valid_pct = 0.2, 
                               csv_labels = f'{PATH}train_labels.csv',
                               suffix='.tif',ds_tfms=tfms, size=sz).normalize(imagenet_stats)
In [18]:
data.show_batch(rows=5, figsize=(12,10))