This repository contains the official implementation of OC-SODAgent and the associated OC-SOD Dataset generation pipeline.
Note: The OC-SOD Dataset is coming soon.
The OC-SODAgent (Object-Centric Salient Object Detection Agent) is an iterative framework that:
The project is organized efficiently as a Python package OC_SOD:
src/core: Core agent implementation (OCSODAgent).src/models: Model wrappers for SAM2 and VLM.src/pipeline: Dataset generation pipeline (Intent, Saliency, Preference).src/prompts: Large language model prompt templates.src/utils: Utility functions and visualization tools.configs/: Configuration files for models and generation.examples/: Example scripts for inference and visualization.Clone the repository
git clone https://github.com/your-username/OC-SOD.git
cd OC-SOD
Install dependencies
pip install -r requirements.txt
Install SAM2 Please follow the official instructions from SAM2 repository to install the model, or use:
pip install git+https://github.com/facebookresearch/sam2.git
from OC_SOD.src.core import OCSODAgent
# Initialize agent
# Note: Ensure you have configured your models in configs/
agent = OCSODAgent()
# Run iterative refinement
masks, info = agent.iterative_refine(image, bboxes, intent="intent description")
The src/pipeline module handles data generation.
See src/pipeline/generation.py for details.
from OC_SOD.src.pipeline import DatasetGenerator
generator = DatasetGenerator(output_dir="data/output")
# generator.paco_lvis_intent_gen(...)
This project is licensed under the MIT License - see the LICENSE file for details.
3 commits
Python
100.0%
This repository contains the official implementation of OC-SODAgent and the associated OC-SOD Dataset generation pipeline.
Note: The OC-SOD Dataset is coming soon.
The OC-SODAgent (Object-Centric Salient Object Detection Agent) is an iterative framework that:
The project is organized efficiently as a Python package OC_SOD:
src/core: Core agent implementation (OCSODAgent).src/models: Model wrappers for SAM2 and VLM.src/pipeline: Dataset generation pipeline (Intent, Saliency, Preference).src/prompts: Large language model prompt templates.src/utils: Utility functions and visualization tools.configs/: Configuration files for models and generation.examples/: Example scripts for inference and visualization.Clone the repository
git clone https://github.com/your-username/OC-SOD.git
cd OC-SOD
Install dependencies
pip install -r requirements.txt
Install SAM2 Please follow the official instructions from SAM2 repository to install the model, or use:
pip install git+https://github.com/facebookresearch/sam2.git
from OC_SOD.src.core import OCSODAgent
# Initialize agent
# Note: Ensure you have configured your models in configs/
agent = OCSODAgent()
# Run iterative refinement
masks, info = agent.iterative_refine(image, bboxes, intent="intent description")
The src/pipeline module handles data generation.
See src/pipeline/generation.py for details.
from OC_SOD.src.pipeline import DatasetGenerator
generator = DatasetGenerator(output_dir="data/output")
# generator.paco_lvis_intent_gen(...)
This project is licensed under the MIT License - see the LICENSE file for details.
3 commits
Python
100.0%