A Partial Replication of MaskFormer in TensorFlow on TPUs for the TensorFlow Model Garden
Vishal Purohit, Wenxin Jiang, Akshath R. Ravikiran, and James C. Davis

TL;DR
This paper details the complex process of replicating the MaskFormer image segmentation model from PyTorch to TensorFlow optimized for TPUs, highlighting engineering challenges and partial success in achieving reproducibility.
Contribution
It provides a detailed methodology for adapting MaskFormer to TensorFlow and TPU environments, including overcoming key technical challenges.
Findings
Implementation demonstrates partial reproducibility on COCO dataset
Identifies significant engineering challenges in cross-framework replication
Highlights need for extensive hyper-parameter tuning and component customization
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputer Graphics and Visualization Techniques
