Skip to content

fearless0721/SAM-PFF

Repository files navigation

Henghao Sun, Litao Zhua, Weibin Ma, Yucheng Mao and Wen Dai

Introduction

image Salient Object Detection (SOD) is a fundamental task in computer vision that aims to accurately identify and segment the most visually distinctive regions within complex backgrounds. However, the performance of existing SOD methods is limited in indoor scenarios characterized by dynamic lighting, severe background clutter, and low contrast between objects and their backgrounds. Recently, the Segment Anything Model (SAM) has emerged as a promising paradigm for mitigating these challenges, leveraging its exceptional zero-shot segmentation capabilities and robust generalization. Consequently, we propose a novel indoor salient object detection model, named SAM2-PFF (SAM2 with Progressive Feature Fusion).

Clone Repository

git clone  https://github.com/fearless0721/SAM-PFF.git

Requirements

Our project does not depend on installing SAM2. If you have already configured an environment for SAM2, then directly using this environment should also be fine. You may also create a new conda environment:

conda create -n sam2-pff python=3.10
conda activate sam2-pff
pip install -r requirements.txt

Training

If you want to train your own model, please download the pre-trained segment anything 2 from the official repository. You can also directly download sam2_hiera_large.pt from here. After the above preparations, you can run train.sh to start your training.

Evaluation

After obtaining the prediction maps, you can run eval.sh to get most of the quantitative results.

Citation and Star

Please star this project if you use this repository in your research. Thank you!

Acknowledgement

segment anything 2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors