OctreeNCA:在消费级硬件上单次处理 184 MP 的分割
OctreeNCA: Single-Pass 184 MP Segmentation on Consumer Hardware
AI总结:
针对大型医学图像分割中 GPU VRAM 消耗过高的问题,提出 OctreeNCA,通过八叉树结构泛化邻域定义并实现 CUDA 推断,在比 UNet 节省 90% VRAM 的条件下实现单次快速分割高分辨率图像与视频。
摘要:
医学应用需要对大型输入进行分割,例如前列腺 MRI、病理切片或手术视频。理想情况下,这些输入应当一次性进行推断,以便为模型提供适当的空间或时间上下文。在对大型输入进行分割时,GPU 的 VRAM 消耗成为瓶颈。像 UNets 或 Vision Transformers 这样的架构在 VRAM 消耗方面扩展性极差,导致采用基于图像块或逐帧的方法,从而损害了全局一致性和推断速度。轻量级的 Neural Cellular Automaton (NCA) 是一种受生物学启发的模型,在构造上具有尺寸不变性。然而,由于其仅限局部的通信规则,它缺乏全局知识。我们通过使用八叉树数据结构泛化邻域定义,提出了 OctreeNCA。我们泛化的邻域定义实现了全局知识的高效遍历。由于深度学习框架主要为大型多层网络开发,其实现并未充分利用 NCA 的优势。我们在 CUDA 中实现了 NCA 推断函数,进一步降低了 VRAM 需求并提高了推断速度。我们的 OctreeNCA 能够快速分割高分辨率图像和视频,在评估期间占用的 VRAM 比 UNet 少 90%。这使我们能够一次性分割 184 兆像素的病理切片或 1 分钟的手术视频。
英文摘要:
Medical applications demand segmentation of large inputs, like prostate MRIs, pathology slices, or videos of surgery. These inputs should ideally be inferred at once to provide the model with proper spatial or temporal context. When segmenting large inputs, the VRAM consumption of the GPU becomes the bottleneck. Architectures like UNets or Vision Transformers scale very poorly in VRAM consumption, resulting in patch- or frame-wise approaches that compromise global consistency and inference speed. The lightweight Neural Cellular Automaton (NCA) is a bio-inspired model that is by construction size-invariant. However, due to its local-only communication rules, it lacks global knowledge. We propose OctreeNCA by generalizing the neighborhood definition using an octree data structure. Our generalized neighborhood definition enables the efficient traversal of global knowledge. Since deep learning frameworks are mainly developed for large multi-layer networks, their implementation does not fully leverage the advantages of NCAs. We implement an NCA inference function in CUDA that further reduces VRAM demands and increases inference speed. Our OctreeNCA segments high-resolution images and videos quickly while occupying 90% less VRAM than a UNet during evaluation. This allows us to segment 184 Megapixel pathology slices or 1-minute surgical videos at once.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。