Lune

CVPR2024Top-tier venue

SmartMask: Context Aware High-Fidelity Mask Generation for Fine-grained Object Insertion and Layout Control

Jaskirat Singh, Jianming Zhang, Qing Liu, Cameron Smith, Zhe Lin, Liang Zheng

Abstract

The field of generative image inpainting and object in-sertion has made significant progress with the recent advent of latent diffusion models. Utilizing a precise object mask can greatly enhance these applications. However, due to the challenges users encounter in creating high-fidelity masks, there is a tendency for these methods to rely on more coarse masks (e.g., bounding box) for these applications. This results in limited control and compromised background content preservation. To overcome these limitations, we introduce SmartMask, which allows any novice user to create detailed masks for precise object insertion. Combined with a ControlNet-Inpaint model, our experiments demonstrate that SmartMask achieves superior object insertion quality, preserving the background content more effectively than previous methods. Notably, unlike prior works the proposed approach can also be used even without user-mask guid-ance, which allows it to perform mask-free object insertion at diverse positions and scales. Furthermore, we find that when used iteratively with a novel instruction-tuning based planning model, SmartMask can be used to design detailed layouts from scratch. As compared with user-scribble based layout design, we observe that SmartMask allows for better quality outputs with layout-to-image generation methods.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Teleportraits: Training-Free People Insertion Into Any Scene cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Teleportraits: Training-Free People Insertion Into Any Scene cites Adding Conditional Control to Text-to-Image Diffusion Models
  • Teleportraits: Training-Free People Insertion Into Any Scene cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following Ability cites High-Resolution Image Synthesis with Latent Diffusion Models
  • When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following Ability cites Adding Conditional Control to Text-to-Image Diffusion Models
  • When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following Ability cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Adding Conditional Control to Text-to-Image Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Adding Conditional Control to Text-to-Image Diffusion Models cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Visual Instruction Tuning cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Visual Instruction Tuning cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • SuperEdit: Rectifying and Facilitating Supervision for Instruction-Based Image Editing cites High-Resolution Image Synthesis with Latent Diffusion Models
  • SuperEdit: Rectifying and Facilitating Supervision for Instruction-Based Image Editing cites Adding Conditional Control to Text-to-Image Diffusion Models
  • SuperEdit: Rectifying and Facilitating Supervision for Instruction-Based Image Editing cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • BFS: Back-to-Front Layered Image Synthesis via Knowledge Transfer cites High-Resolution Image Synthesis with Latent Diffusion Models
  • BFS: Back-to-Front Layered Image Synthesis via Knowledge Transfer cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • DesignEdit: Unify Spatial-Aware Image Editing via Training-free Inpainting with a Multi-Layered Latent Diffusion Framework cites High-Resolution Image Synthesis with Latent Diffusion Models
  • DesignEdit: Unify Spatial-Aware Image Editing via Training-free Inpainting with a Multi-Layered Latent Diffusion Framework cites Adding Conditional Control to Text-to-Image Diffusion Models
  • DesignEdit: Unify Spatial-Aware Image Editing via Training-free Inpainting with a Multi-Layered Latent Diffusion Framework cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites High-Resolution Image Synthesis with Latent Diffusion Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. DesignEdit: Unify Spatial-Aware Image Editing via Training-free Inpainting with a Multi-Layered Latent Diffusion FrameworkYueru Jia, Aosong Cheng, Yuhui Yuan, Chuke Wang et al.AAAI 2025 · 5 citations
  2. When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following AbilityWenjie Xuan, Yufei Xu, Shanshan Zhao, Chaoyue Wang et al.ACM MM 2024 · 3 citations
  3. SuperEdit: Rectifying and Facilitating Supervision for Instruction-Based Image EditingMing Li, Xin Gu, Fan Chen, Xiaoying Xing et al.ICCV 2025 · 2 citations
  4. Teleportraits: Training-Free People Insertion Into Any SceneJialu Gao, K. J. Joseph, Fernando De la TorreICCV 2025
  5. BFS: Back-to-Front Layered Image Synthesis via Knowledge TransferKyoungkook Kang, Gyujin Sim, Sunghyun ChoSIGGRAPH 2026

Builds on27

  1. Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
  2. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  3. Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 citations
  4. Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations
  5. Adding Conditional Control to Text-to-Image Diffusion ModelsLvmin Zhang, Anyi Rao, Maneesh AgrawalaICCV 2023 · 6,759 citations

Related papers

  1. SmartBrush: Text and Shape Guided Object Inpainting with Diffusion ModelShaoan Xie, Zhifei Zhang, Zhe Lin, Tobias Hinz et al.CVPR 2023
  2. NoiseCollage: A Layout-Aware Text-to-Image Diffusion Model Based on Noise Cropping and MergingTakahiro Shirakawa, Seiichi UchidaCVPR 2024 · 19 citations
  3. LOOSECONTROL: Lifting ControlNet for Generalized Depth ConditioningShariq Farooq Bhat, Niloy J. Mitra, Peter WonkaSIGGRAPH 2024 · 26 citations
  4. Completing Visual Objects via Bridging Generation and SegmentationXiang Li, Yinpeng Chen, Chung-Ching Lin, Hao Chen et al.ICML 2024 · 3 citations
  5. Versatile Vision Foundation Model for Image and Video ColorizationVukasin Bozic, Abdelaziz Djelouah, Yang Zhang, Radu Timofte et al.SIGGRAPH 2024 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines