An algorithm based on Mobile Vit and inverted gated codec is proposed for retinal vessel segmentation (FMVG-Net), aiming to tackle issues such background noise interference, boundary texture blurring, and challenging extraction of microvascular areas. First, we improve the Mobile Vit module, and realize the double joint feature extraction cleverly in the coding part. Subsequently, we use the multispectral attention module. The module reduces the missing image feature information from the frequency domain dimension, so as to accurately segment the foreground pixel of the vessel. Next, we propose a feature adaptive fusion module to establish the context dependence of vascular texture and improve the sensitivity of vascular segmentation. In order to enhance the precision of retinal vascular picture segmentation, lastly, we have implemented an inverted gated codec module and optimized the codec structure to further collect deep and spatial semantic information. Experiments are performed on the DRIVE, STARE, and CHASE_DB1 datasets,whereby the obtained specificity are 0.9863, 0.9897, and 0.9873, respectively; the accuracies are 0.9709, 0.9754, and 0.9760, respectively; the sensitivity is 0.8109, 0.8010, and 0.8079, respectively.Simulation experiments reveal that this paper demonstrates a superior segmentation effect on eye lesions images, which opens new avenues for the diagnosis of eye diseases.