The quickest way to get started with SegFormer is by checking the example notebooks (which showcase both inference and fine-tuning on custom data).