Skip to content

Our new auto-prompting system automates object segmentation training for PaintSeg. It uses color and depth data to create masks, reducing manual input. Initial results on DUTS dataset show promise (IOU 45-55%), with further improvement possible through a hybrid approach. This streamlines segmentation and advances image processing automation.

Notifications You must be signed in to change notification settings

PranavMishra17/Auto-Prompting-for-PaintSeg

Repository files navigation

Automating Prompt Generation for Training-Free Object Segmentation in PaintSeg

Developed an innovative autoprompting system for PaintSeg, automating input generation for training-free object segmentation. Leveraged k-means clustering for color-based segmentation and the Dense Prediction Transformer (DPT) model to extract depth maps, creating precise binary and bounding box masks without manual input. Experiments on the DUTS dataset showed IOU scores between 45% and 55%, with enhancements up to 60% using a hybrid prompting strategy. This approach significantly streamlines the segmentation process and paves the way for further automation in image processing tasks. Title

Abstract

Abstract Object segmentation in visual computing has traditionally relied on manual or semi-supervised methods that require extensive training and human intervention for prompt specification. This paper introduces an innovative autoprompting system designed to automate the input generation for PaintSeg, a training-free and unseen object segmentation model. Our methodology leverages k-means clustering for color-based segmentation and employs the Dense Prediction Transformer (DPT) model to extract depth maps, creating precise binary and bounding box masks without manual input. Conducted experiments on the DUTS dataset demonstrated that our autoprompting approach achieves Intersection Over Union (IOU) scores between 45 and 55 percent, with an enhancement of up to 60 percent through a hybrid prompting strategy that intelligently combines mask types based on their spatial characteristics. This work not only streamlines the segmentation process but also opens new avenues for further automation in image processing tasks. Title

Project Report/Paper:

Automating Prompt Generation for Training-Free Object Segmentation in PaintSeg

Pranav Pushkar Mishra,Annesh Potnis, Aditya Pimpley

Title

Reference Paper:

PaintSeg: Training-free Segmentation via Painting

Xiang Li, Chung-Ching Lin, Yinpeng Chen, Zicheng Liu, Jinglu Wang, Bhiksha Raj

Environment setup

conda env create -f environment.yaml
conda activate PaintSeg
pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
pip install --force-reinstall cython==0.29.36
pip install --no-build-isolation git+https://github.com/lucasb-eyer/pydensecrf.git

Datasets

Download datasets and put them in the main folder. ECSSD, DUTS, PASCAL VOC, COCO MVal, GrabCut, Berkeley, DAVIS.

Run

python scripts/PaintSeg.py --outdir $outdir$ --iters $iter_num$ --steps $diffusion step$ --dataset $dataset$ 

About

Our new auto-prompting system automates object segmentation training for PaintSeg. It uses color and depth data to create masks, reducing manual input. Initial results on DUTS dataset show promise (IOU 45-55%), with further improvement possible through a hybrid approach. This streamlines segmentation and advances image processing automation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published