Use the SegFormer++ outside MMSegmentation/MMPose
- Use build_model.py to build preset and custom SegFormer++ models
model = create_model('b5', 'bsm_hq', pretrained=True)
Running this code snippet yields our SegFormer++HQ model pretrained on ImageNet.
- Use random_benchmark.py to evaluate a model in terms of FPS
v = random_benchmark(model)
Calculate the FPS using our script.