Segmentation fault while running yolov8

I generated a yolov8-seg model according to this link. the model has four output layers. please check why your model has two layers. it seems it is a detection model, not a segmentation model.