facebookresearch / facebookresearch/segment-anything

Segment stable diffusion output

Open
#227 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
54.9k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Description

Hi,
Regular segmentation algos dont perform so well on stable diffusion generated images. Some of the fantastic images it generates are not in training set of any of the segmentation algos. Keeping segmentation up with it will be always one step behind.

Is there a way SAM can be made part of stable diffusion itself? SD has some idea of where each object is going to show up - I'm curious if there is a way to make it also emit the segments as part of the denoising steps.

Not an issue with SAM but I'm hoping there is a way these models will keep up with generative images since no amount of train data will suffice.

Contributor guide

Open the contributing guide

Research direction

The issue names no specific files or tests; start by reviewing the repository's example notebooks and the SAM inference flow, then investigate how that could connect to Stable Diffusion denoising. Done would require a defined integration design and evidence that generated images produce usable segments, but the issue does not specify acceptance tests.

Written by the indexing model from the issue text.

Assessment

Domain
computer-vision, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.