A HYBRID SYSTEM BASED ON SAM-2 AND A LATENT CROSS-ATTENTION DIFFUSION MODEL FOR AUTOMATIC OBJECT SEGMENTATION AND CONTEXTUAL INPAINTING IN IMAGES
PDF

Keywords

SAM-2, Latent Diffusion, Inpainting, segmentation, Cross-Attention, computer vision, artificial intelligence.

How to Cite

Choriyev Ilxom, & Ibragimova Mahfuza. (2026). A HYBRID SYSTEM BASED ON SAM-2 AND A LATENT CROSS-ATTENTION DIFFUSION MODEL FOR AUTOMATIC OBJECT SEGMENTATION AND CONTEXTUAL INPAINTING IN IMAGES. INTERNATIONAL CONFERENCE ON SCIENCE, INNOVATION AND GLOBAL DEVELOPMENT, 1(9), 278-282. https://doi.org/10.5281/zenodo.23125221

Abstract

This article addresses the problem of high-precision segmentation of objects in images and their contextually accurate restoration through inpainting. The authors propose a novel hybrid system based on the Segment Anything Model 2 (SAM-2) and a Latent Cross-Attention (LCA) diffusion mechanism. The SAM-2 model enables precise delineation of object boundaries in complex backgrounds, while the LCA-Inpaint module fills missing regions while preserving semantic consistency with the remaining parts of the image. Experimental results demonstrate that the proposed method achieves 15–20% higher performance than existing models in terms of PSNR and SSIM metrics.

PDF

References

1. Ravi, N., et al. "SAM 2: Segment Anything in Images and Videos." arXiv preprint arXiv:2408.00714 (2024).

2. Kirillov, A., et al. "Segment Anything." IEEE/CVF International Conference on Computer Vision (ICCV), 2023.

3. Rombach, R., et al. "High-Resolution Image Synthesis with Latent Diffusion Models." CVPR, 2022.

4. Suvorov, R., et al. "Resolution-robust Large Mask Inpainting with Fourier Convolutions." WACV, 2022.

5. Vaswani, A., et al. "Attention is All You Need." NIPS, 2017.

6. Ronneberger, O., et al. "U-Net: Convolutional Networks for Biomedical Image Segmentation." MICCAI, 2015.

7. He, K., et al. "Deep Residual Learning for Image Recognition." CVPR, 2016.

8. Goodfellow, I., et al. "Generative Adversarial Nets." NIPS, 2014.

Downloads

Download data is not yet available.