High-resolution remote sensing images have the characteristics of wide imaging coverage, rich spectral information and unobstructed by terrain and features. All of them provide convenient conditions for people to study land cover types. However, most existing remote sensing image land cover datasets are only labeled with some remote sensing images of low elevation plain areas, which is highly different from the topography and landscape of highland mountainous areas. In this study, we construct a Qilian County grassland ecological element dataset to provide data support for highland ecological protection. To highlight the characteristics of vegetation, our dataset only includes the RGB spectrum fused with the near-infrared spectrum. We then propose a segmentation network, namely, the Shunted-MaskFormer network, by using a mask-based classification method, a multi-scale, high-efficiency feature extraction module and a data-dependent upsampling method. The extraction of grassland land types from 2 m resolution remote sensing images in Qilian County was completed, and the generalization ability of the model on a small Gaofen Image Dataset (GID) verified. Results: (1) The MIoU of the optimised network model in the Qilian grassland dataset reached 80.75%, which is 2.37% higher compared to the suboptimal results; (2) the optimized network model achieves better segmentation results even for small sample classes in data sets with unbalanced sample distribution; (3) the highest MIOU of 72.3% is achieved in the GID dataset of open remote sensing images containing five categories; (4) the size of the optimized model is only one-third of the sub-optimal model.