Streaming convolutional neural networks for end-to-end learning with multi-megapixel images

Hans Pinckaers, Bram van Ginneken, Geert Litjens
11/11/2019
124 citations
cs.CV

Official code: DIAGNijmegen/StreamingCNN (101 stars, Jupyter Notebook, MIT, last commit 2023-09-08).

Abstract

Due to memory constraints on current hardware, most convolution neural networks (CNN) are trained on sub-megapixel images. For example, most popular datasets in computer vision contain images much less than a megapixel in size (0.09MP for ImageNet and 0.001MP for CIFAR-10).

Show full abstract

In some domains such as medical imaging, multi-megapixel images are needed to identify the presence of disease accurately. We propose a novel method to directly train convolutional neural networks using any input image size end-to-end. This method exploits the locality of most operations in modern convolutional neural networks by performing the forward and backward pass on smaller tiles of the image. In this work, we show a proof of concept using images of up to 66-megapixels (8192x8192), saving approximately 50GB of memory per image. Using two public challenge datasets, we demonstrate that CNNs can learn to extract relevant information from these large images and benefit from increasing resolution. We improved the area under the receiver-operating characteristic curve from 0.580 (4MP) to 0.706 (66MP) for metastasis detection in breast cancer (CAMELYON17). We also obtained a Spearman correlation metric approaching state-of-the-art performance on the TUPAC16 dataset, from 0.485 (1MP) to 0.570 (16MP). Code to reproduce a subset of the experiments is available at https://github.com/DIAGNijmegen/StreamingCNN.

View on arXivView PDF

Code Implementations(1)

MIT

To train deep convolutional neural networks, the input data and the activations need to be kept in memory. Given the limited memory available in current GPUs, this limits the maximum dimensions of the input data. Here we demonstrate a method to train convolutional neural networks while holding only parts of the image in memory.

10126Jupyter Notebook, PythonApr 10, 20183 years agoMIT

Similar Papers

Cite this paper

@article{pinckaers2019streaming,
  title  = {Streaming convolutional neural networks for end-to-end learning with multi-megapixel images},
  author = {Hans Pinckaers and Bram van Ginneken and Geert Litjens},
  year   = {2019},
  eprint = {1911.04432},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.04432}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.04432.svg)](https://codeofpaper.com/paper/1911.04432)

Discussion