{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/streaming-convolutional-neural-networks-for","title":"Streaming convolutional neural networks for end-to-end learning with multi-megapixel images","arxiv_id":"1911.04432","date":"2019-11-11","proceeding":null,"authors":["Hans Pinckaers","Bram van Ginneken","Geert Litjens"],"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). 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.","url_abs":"https://arxiv.org/abs/1911.04432v1","url_pdf":"https://arxiv.org/pdf/1911.04432v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"streaming-convolutional-neural-networks-for","repo_url":"https://github.com/DIAGNijmegen/StreamingCNN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"streaming-convolutional-neural-networks-for","repo_url":"https://github.com/DIAGNijmegen/StreamingSGD","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"streaming-convolutional-neural-networks-for","repo_url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1911.04432","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1911.04432"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DIAGNijmegen/StreamingSGD","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DIAGNijmegen/StreamingCNN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"listed":{"samples":5,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"f6b944f50d3f15ae","entry":"count_parameters","repo":"DIAGNijmegen/pathology-streaming-pipeline","repo_kind":"listed","path":"streaming/torch_utils/utils.py","file_url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline/blob/HEAD/streaming/torch_utils/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f6b944f50d3f15ae"}},{"code_sha256_prefix":"8d7ec010c29e813b","entry":"format_time","repo":"DIAGNijmegen/pathology-streaming-pipeline","repo_kind":"listed","path":"streaming/torch_utils/utils.py","file_url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline/blob/HEAD/streaming/torch_utils/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8d7ec010c29e813b"}},{"code_sha256_prefix":"fc412e26882bfee1","entry":"empty_regions_2d","repo":"DIAGNijmegen/pathology-streaming-pipeline","repo_kind":"listed","path":"streaming/trim_tissue.py","file_url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline/blob/HEAD/streaming/trim_tissue.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fc412e26882bfee1"}},{"code_sha256_prefix":"3837e2437ec18c66","entry":"search_empty_regions","repo":"DIAGNijmegen/pathology-streaming-pipeline","repo_kind":"listed","path":"streaming/trim_tissue.py","file_url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline/blob/HEAD/streaming/trim_tissue.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3837e2437ec18c66"}},{"code_sha256_prefix":"a124477922030f98","entry":"zero_runs","repo":"DIAGNijmegen/pathology-streaming-pipeline","repo_kind":"listed","path":"streaming/trim_tissue.py","file_url":"https://github.com/DIAGNijmegen/pathology-streaming-pipeline/blob/HEAD/streaming/trim_tissue.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a124477922030f98"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}