Building python application around hef semantic segmentation model

its instance segmentation. not semantic. I managed to adapt the object detection python code from the hailo application code examples to do inference from my custom trained hef model. my model is segformer accepting one channel gray images. thanks.