The invention discloses an
underwater image semantic segmentation method and device based on a lightweight double-flow Mama network, and a storage medium, relates to the technical field of
underwater image processing, and solves the problems of poor environmental adaptability, low
modal fusion efficiency, heavy model and high calculation overhead in the existing
underwater image semantic segmentation technology. According to the method, a double-
branch encoder is constructed, the double-
branch encoder composed of an image
encoder and a text encoder is adopted, and a visual feature map and a
semantic feature vector in a preprocessed underwater image and text description information are extracted respectively; a cross-
modal Mama module is adopted to carry out deep fusion on a flattened image feature sequence and text features in the module, the cross-
modal Mama module adopts a Mama block with
linear complexity, and continuous guidance and progressive enhancement of text
semantics are realized in combination with a multi-level gating
fusion mechanism and residual connection. And the recognition capability of underwater fuzzy and shielded targets is remarkably improved, and meanwhile, the calculation efficiency is remarkably improved.