deep-diver / segformer-tf-transformers

This repository demonstrates how to use TensorFlow based SegFormer model in πŸ€— transformers package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage of TensorFlow based SegFormer in πŸ€— transformers

This repository demonstrates how to use TensorFlow based SegFormer model [1] in πŸ€— transformers package with Jupyter Notebook and Gradio application which is hosted on πŸ€— Spaces.

SegFormer achieves good performance on various high-resolution semantic segmentation datasets along with better efficiency.

One of the objectives of this repository is to allow TensorFlow users train high-quality semantic segmentation models that benefit from higher resolutions.

Notice

Since the TensorFlow variant of SegFormer hasn't been included in a transformers release yet you need to install it from the source:

pip install git+https://github.com/huggingface/transformers

About the notebooks

Demo on Hugging Face Space

Visit this link.

References

[1] SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers; Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo; https://arxiv.org/abs/2105.15203 (2021).

Acknowledgements

Thanks to the ML-GDE program (ML Developer Programs team) for providing GCP credits that we used for experimentation.

About

This repository demonstrates how to use TensorFlow based SegFormer model in πŸ€— transformers package.

License:Apache License 2.0


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%