As shown here, you can access them using the segformer and decode_head attributes respectively.
segformer
decode_head