Instructions to use Vrjb/SegFormer_b2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vrjb/SegFormer_b2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="Vrjb/SegFormer_b2")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, SegformerForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("Vrjb/SegFormer_b2") model = SegformerForSemanticSegmentation.from_pretrained("Vrjb/SegFormer_b2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
7fb92c1 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:5485eb2e5a4a0d112a0dea770e71d041b00536fc43e987be4e50132be9910ded
size 5368
|