Harnessing Diffusion Models for Image Manipulation With Partial Sketches

IF 13.7
Tengjie Li;Shikui Tu;Lei Xu
{"title":"Harnessing Diffusion Models for Image Manipulation With Partial Sketches","authors":"Tengjie Li;Shikui Tu;Lei Xu","doi":"10.1109/TIP.2026.3685834","DOIUrl":null,"url":null,"abstract":"Controllable image structure editing has attracted increasing attention. While recent interactive point-based methods are convenient and realistic, they often lack fine-grained control over localized content. Partial sketches provide a simple yet expressive interface for local structure manipulation. However, existing partial-sketch-based manipulation methods relying on generative adversarial networks (GANs) suffer from limited generalization and fidelity. Moreover, although diffusion-based adapters excel at global conditioning (e.g., edge maps), localized editing with partial strokes remains challenging due to two key issues: effectively injecting sparse stroke conditions during denoising and preserving non-edited regions to avoid unintended changes. To address these challenges, we propose DiffStroke, a mask-free framework for localized image manipulation with partial sketches. We introduce trainable Image-Stroke Fusion (ISF) blocks to fuse source images and strokes at the feature level, enabling precise local shape control while maintaining appearance consistency. We further develop a self-supervised mask estimator to protect irrelevant regions without manual input. Specifically, we leverage Tweedie’s formula to estimate a clean latent image from noisy latents, blend the denoised result with the source, and train the mask estimator by minimizing the error between the blended latent and the target latent. Experiments on natural and facial images demonstrate that DiffStroke outperforms state-of-the-art methods on both simple and complex stroke-based editing tasks. DiffStroke can also be combined with text prompts to produce diverse and creative results. Code is available at <uri>https://github.com/CMACH508/DiffStroke</uri>","PeriodicalId":94032,"journal":{"name":"IEEE transactions on image processing : a publication of the IEEE Signal Processing Society","volume":"35 ","pages":"4480-4493"},"PeriodicalIF":13.7000,"publicationDate":"2026-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE transactions on image processing : a publication of the IEEE Signal Processing Society","FirstCategoryId":"1085","ListUrlMain":"https://ieeexplore.ieee.org/document/11495049/","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/4/27 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Controllable image structure editing has attracted increasing attention. While recent interactive point-based methods are convenient and realistic, they often lack fine-grained control over localized content. Partial sketches provide a simple yet expressive interface for local structure manipulation. However, existing partial-sketch-based manipulation methods relying on generative adversarial networks (GANs) suffer from limited generalization and fidelity. Moreover, although diffusion-based adapters excel at global conditioning (e.g., edge maps), localized editing with partial strokes remains challenging due to two key issues: effectively injecting sparse stroke conditions during denoising and preserving non-edited regions to avoid unintended changes. To address these challenges, we propose DiffStroke, a mask-free framework for localized image manipulation with partial sketches. We introduce trainable Image-Stroke Fusion (ISF) blocks to fuse source images and strokes at the feature level, enabling precise local shape control while maintaining appearance consistency. We further develop a self-supervised mask estimator to protect irrelevant regions without manual input. Specifically, we leverage Tweedie’s formula to estimate a clean latent image from noisy latents, blend the denoised result with the source, and train the mask estimator by minimizing the error between the blended latent and the target latent. Experiments on natural and facial images demonstrate that DiffStroke outperforms state-of-the-art methods on both simple and complex stroke-based editing tasks. DiffStroke can also be combined with text prompts to produce diverse and creative results. Code is available at https://github.com/CMACH508/DiffStroke
利用扩散模型与部分草图图像处理
图像结构的可控编辑越来越受到人们的关注。虽然最近的基于点的交互式方法既方便又实用,但它们通常缺乏对本地化内容的细粒度控制。局部草图为局部结构操作提供了一个简单而富有表现力的界面。然而,现有的基于部分草图的操作方法依赖于生成对抗网络(gan),存在泛化和保真度有限的问题。此外,尽管基于扩散的适配器在全局调节(例如边缘映射)方面表现出色,但局部笔画的局部编辑仍然具有挑战性,因为存在两个关键问题:在去噪期间有效地注入稀疏笔画条件,并保留未编辑的区域以避免意外更改。为了解决这些挑战,我们提出了DiffStroke,这是一个无遮罩的框架,用于局部草图的局部图像处理。我们引入了可训练的图像-笔画融合(ISF)块,在特征级别融合源图像和笔画,在保持外观一致性的同时实现精确的局部形状控制。我们进一步开发了一种自监督掩码估计器,以保护不相关区域而无需人工输入。具体来说,我们利用Tweedie公式从噪声潜在中估计干净的潜在图像,将去噪结果与源混合,并通过最小化混合潜在和目标潜在之间的误差来训练掩模估计器。对自然和面部图像的实验表明,DiffStroke在简单和复杂的基于笔画的编辑任务上都优于最先进的方法。DiffStroke还可以与文本提示相结合,以产生多样化和创造性的结果。代码可从https://github.com/CMACH508/DiffStroke获得
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书