arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.18801cs.CVcs.LGcs.SE
收藏

在 TensorFlow Model Garden 中基于 TPU 对 MaskFormer 的部分复现

A Partial Replication of MaskFormer in TensorFlow on TPUs for the TensorFlow Model Garden

Purdue University(普渡大学);Elmore Family School of Electrical and Computer Engineering(埃尔莫尔家族电气与计算机工程学院)

Vishal Purohit, Wenxin Jiang, Akshath R. Ravikiran, James C. Davis

AI总结:

本文在 TensorFlow 生态系统中基于 TPU 部分复现了 MaskFormer 通用图像分割模型,利用 TensorFlow Model Garden 的模块化组件并解决不收敛等问题,最终在 COCO 数据集上验证了实现,揭示了跨框架复现的工程挑战。

摘要:

本文致力于在 TensorFlow 生态系统中复现 MaskFormer 模型——一种最初使用 PyTorch 框架开发的通用图像分割模型,并专门针对在 Tensor Processing Units (TPUs) 上的执行进行了优化。我们的实现利用了 TensorFlow Model Garden (TFMG) 中可用的模块化构造,涵盖数据加载器、训练编排器以及各种架构组件,并对其进行定制和调整以满足 MaskFormer 模型的规范。我们解决了复现过程中遇到的关键挑战,包括不收敛问题、训练缓慢、损失函数的适应以及 TPU 特定功能的集成。我们验证了复现的实现,并在 COCO 数据集上展示了定性结果。尽管我们的实现满足了端到端可复现性的部分目标,但我们在用 TensorFlow 复现 PyTorch 版本的 MaskFormer 时仍遇到了挑战。这一复现过程并不简单,需要大量的工程工作。具体而言,它需要对 TFMG 内的各种组件进行定制,以及彻底的验证和超参数调整。该复现代码位于:https://github.com/PurdueDualityLab/tf-maskformer/tree/main/official/projects/maskformer

英文摘要:

This paper undertakes the task of replicating the MaskFormer model a universal image segmentation model originally developed using the PyTorch framework, within the TensorFlow ecosystem, specifically optimized for execution on Tensor Processing Units (TPUs). Our implementation exploits the modular constructs available within the TensorFlow Model Garden (TFMG), encompassing elements such as the data loader, training orchestrator, and various architectural components, tailored and adapted to meet the specifications of the MaskFormer model. We address key challenges encountered during the replication, non-convergence issues, slow training, adaptation of loss functions, and the integration of TPU-specific functionalities. We verify our reproduced implementation and present qualitative results on the COCO dataset. Although our implementation meets some of the objectives for end-to-end reproducibility, we encountered challenges in replicating the PyTorch version of MaskFormer in TensorFlow. This replication process is not straightforward and requires substantial engineering efforts. Specifically, it necessitates the customization of various components within the TFMG, alongside thorough verification and hyper-parameter tuning. The replication is available at: https://github.com/PurdueDualityLab/tf-maskformer/tree/main/official/projects/maskformer

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑