Adam-Al-Rahman/SalientX

The image generation with salient features preserved

0

stars

7

commits

Python

primary language

Jun 26, 2025

updated

README

SalientX

Based on the prompt change background of image but the position of salient remain unchanged.

Concepts

  • Inputs: Image, salient and background prompt
  • Resize Image to (512, 512) but maintaining the ratio
  • Send the resize image to SAM based model
  • Send the prompt image and result of SAM based model to Stable Diffusion + ControlNet model

Acknowledgement

⚠️ Note on EVF-SAM Usage

We have borrowed some code from the official EVF-SAM repository. Initially, our team intended to integrate EVF-SAM directly via the Hugging Face transformers library using:

AutoModel.from_pretrained("...")

However, as of now, EVF-SAM does not support loading through AutoModel.from_pretrained. For reference, you can check the related Hugging Face model page: EVF-SAM-MULTITASK.

Citations

This project leverages the EVF-SAM model proposed by EVF-SAM team. If you find this work useful, please consider citing the original paper

@article{zhang2024evfsamearlyvisionlanguagefusion,
      title={EVF-SAM: Early Vision-Language Fusion for Text-Prompted Segment Anything Model}, 
      author={Yuxuan Zhang and Tianheng Cheng and Rui Hu and Lei Liu and Heng Liu and Longjin Ran and Xiaoxin Chen and Wenyu Liu and Xinggang Wang},
      year={2024},
      eprint={2406.20076},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2406.20076}, 
}

Salient Object-Aware Background Generation

@misc{eshratifar2024salient,
      title={Salient Object-Aware Background Generation using Text-Guided Diffusion Models}, 
      author={Amir Erfan Eshratifar and Joao V. B. Soares and Kapil Thadani and Shaunak Mishra and Mikhail Kuznetsov and Yueh-Ning Ku and Paloma de Juan},
      year={2024},
      eprint={2404.10157},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Contributors

Adam-Al-Rahman/SalientX

The image generation with salient features preserved

0

stars

7

commits

Python

primary language

Jun 26, 2025

updated

README

SalientX

Based on the prompt change background of image but the position of salient remain unchanged.

Concepts

  • Inputs: Image, salient and background prompt
  • Resize Image to (512, 512) but maintaining the ratio
  • Send the resize image to SAM based model
  • Send the prompt image and result of SAM based model to Stable Diffusion + ControlNet model

Acknowledgement

⚠️ Note on EVF-SAM Usage

We have borrowed some code from the official EVF-SAM repository. Initially, our team intended to integrate EVF-SAM directly via the Hugging Face transformers library using:

AutoModel.from_pretrained("...")

However, as of now, EVF-SAM does not support loading through AutoModel.from_pretrained. For reference, you can check the related Hugging Face model page: EVF-SAM-MULTITASK.

Citations

This project leverages the EVF-SAM model proposed by EVF-SAM team. If you find this work useful, please consider citing the original paper

@article{zhang2024evfsamearlyvisionlanguagefusion,
      title={EVF-SAM: Early Vision-Language Fusion for Text-Prompted Segment Anything Model}, 
      author={Yuxuan Zhang and Tianheng Cheng and Rui Hu and Lei Liu and Heng Liu and Longjin Ran and Xiaoxin Chen and Wenyu Liu and Xinggang Wang},
      year={2024},
      eprint={2406.20076},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2406.20076}, 
}

Salient Object-Aware Background Generation

@misc{eshratifar2024salient,
      title={Salient Object-Aware Background Generation using Text-Guided Diffusion Models}, 
      author={Amir Erfan Eshratifar and Joao V. B. Soares and Kapil Thadani and Shaunak Mishra and Mikhail Kuznetsov and Yueh-Ning Ku and Paloma de Juan},
      year={2024},
      eprint={2404.10157},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Contributors

Languages

Python

98.9%

Cuda

1.1%