Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2026, Vol. 52 ›› Issue (11): 374-386. doi: 10.19678/j.issn.1000-3428.0252345

• Large Language Models and Generative Artificial Intelligence • Previous Articles    

Controllable Underwater Image Generation Method Based on Improved ControlNet

LIU Tianquan1, LU Cunyue1, WANG Xiaolong2, LUO Runshu2   

  1. 1. School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, Shanghai 200240, China;
    2. Artificial Intelligence Research Institute of Shanghai Huaxun Network System Co., Ltd., Chengdu 610074, Sichuan, China
  • Received:2025-04-21 Revised:2025-08-05 Published:2025-09-09

基于改进ControlNet的可控水下图像生成方法

刘天权1, 鹿存跃1, 王晓龙2, 罗润书2   

  1. 1. 上海交通大学电子信息与电气工程学院, 上海 200240;
    2. 上海华讯网络系统有限公司行业数智事业部, 四川 成都 610074
  • 作者简介:刘天权,男,硕士,主研方向为计算机视觉、图像生成;鹿存跃(通信作者),副教授、博士,E-mail:lucunyue@sjtu.edu.cn;王晓龙,工程师、博士;罗润书,助理工程师。
  • 基金资助:
    国家自然科学基金面上项目(32171357);国家重点研发计划(2022YFC2402601);上海交通大学深蓝计划重点项目(SL2020ZD103)。

Abstract: Underwater image generation technology is crucial for filling data gaps in marine exploration. The authenticity and diversity of the generated images directly affect the reliability of the subsequent analytical studies. Existing models typically possess enormous parameter quantities, with prolonged training and inference processes. Additionally, the generated underwater images suffer from insufficient clarity, and distortions exist in the structures and edges of image subjects. Moreover, the inference process does not adequately consider the unique optical properties of underwater environments. Therefore, the authenticity of the generated images is not optimized. To resolve these issues, this study proposes UW-ControlNet, a novel network built using the ControlNet architecture that performs parameter fine-tuning on a pretrained Stable Diffusion model. It combines structural constraints from conditional images with semantic guidance from textual prompts to achieve a cross-modal controllable generation of underwater images. A Lightweight Feature Extraction Network (LFEN) is introduced to optimize the feature extraction process of conditional images, thereby enhancing the convergence and inference speeds of the model. A Correlation Matrix-based Channel Attention (CMCA) model is designed to decouple and couple global channel features corresponding to the background with local channel features corresponding to the subject, optimize the text-image multimodal alignment in the generation process, and enhance the credibility of the generation results. A Structure-Semantics Constraint Enhancement Module (SSCEM) is constructed to prevent constraint information loss caused by downsampling, ensuring structural consistency between the generated images and conditional images. The experimental results confirm that UW-ControlNet surpasses existing methods in both quantitative and qualitative metrics, demonstrating significant application potential.

Key words: underwater image generation, cross-modal generation, ControlNet, Lightweight Feature Extraction Network (LFEN), channel attention mechanism, feature enhancement

摘要: 水下图像生成技术作为填补海洋探索领域数据缺口的重要途径,生成图像的真实性和多样性将直接影响后续分析研究的可靠性。现有模型通常参数量庞大,训练与推理过程耗时较长,生成的水下图像清晰度不足,图像主体的结构和边缘存在畸变现象,推理过程未能充分考虑水下环境独特的光学特性,生成图像的真实性有待优化。为此,基于ControlNet模型提出UW-ControlNet水下图像生成框架,对预训练的Stable Diffusion模型进行参数微调,将条件图像的结构约束与文本提示的语义约束相结合,实现水下图像的跨模态可控生成。引入轻量化特征提取网络(LFEN),改进条件图像的特征提取过程,提高模型的收敛速度和推理速度。设计基于关联矩阵的通道注意力(CMCA)模块,将背景对应的全局通道特征与主体对应的局部通道特征进行解耦与耦合,在优化生成过程中的文本-图像多模态对齐,增强生成结果的可信度。构建结构-语义约束增强模块(SSCEM),避免下采样过程导致的约束信息丢失,确保生成图像与条件图像的结构一致。实验结果表明,通过UW-ControlNet生成的水下图像在定量指标和定性对比上均优于现有方法,展现出良好的应用价值。

关键词: 水下图像生成, 跨模态生成, ControlNet, 轻量化特征提取网络, 通道注意力机制, 特征增强

CLC Number: