The Semantic Segmentation of complex image regions is still difficult due to the irregularity of target regions, blurred boundaries, heterogeneous textures and large-scale variations. Many of the above problems occur in all kinds of applications, such as medical image analysis, remote sensing interpretation, intelligent transportation systems, industrial inspection and scene understanding. Therefore, the proposed hybrid GAT-Transformer semantic segmentation framework with an encoder-decoder architecture is used to address the above issues. The three components of the new structure are convolution-based feature extraction, graph-attention structural model, and Transformer global context representation. A multi-scale feature fusion module is used to increase the representation power of objects at different scales; a graph attention network is added to model the structural relationships among various regions; and a Transformer module can be employed to learn long-range contextual information. Attention refinement can also be used to improve the accuracy of boundary localization and suppress irrelevant background responses. Based on the experimental results of the public segmentation dataset, our new method has improved both the accuracy and boundary uniformity of the segmentation results compared with the baseline model. As shown in the above results, the proposed framework has achieved the goal of accurate regional division and can be used for many other problems in visual analysis.