-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: Segment Anything #5829
Open
blessedcoolant
wants to merge
6
commits into
invoke-ai:next
Choose a base branch
from
blessedcoolant:segment-anything
base: next
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
wip: Segment Anything #5829
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blessedcoolant
requested review from
psychedelicious,
maryhipp,
hipsterusername,
lstein,
ebr,
GreggHelt2,
brandonrising and
RyanJDick
as code owners
February 29, 2024 11:06
github-actions
bot
added
python
PRs that change python files
invocations
PRs that change invocations
backend
PRs that change backend files
labels
Feb 29, 2024
Very exciting! I’ll review this evening. |
I'll need your help on this too. Currently the models load each time. I can bypass that setting global vars and conditonal checks. Which I'll do now. But at some point, I'll need you to fit the model and predictor into the model manager and have the memory management be done there. |
Added support for SamHQ and Mobile models. |
- Make sure the output more is correct so other nodes can interact with it - Add option to invert mask if needed
blessedcoolant
force-pushed
the
segment-anything
branch
from
March 1, 2024 17:43
ca9b7ee
to
fdae8d2
Compare
27 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backend
PRs that change backend files
invocations
PRs that change invocations
python
PRs that change python files
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
This PR is the first draft of implementing a full fledged automated mask creation system inside InvokeAI. The first piece of that puzzle is the
Segment Anything
node.DONE
Segment Anything Image Processor
image
: A PIL Imagemodel_type
: 3 different model types are available -small
,medium
,large
,small_hq
,medium_hq
,large_hq
, andmobile
. These models are automatically downloaded on first boot.x_coordinate
: The x co-ordinate of your selected point.y_coordinate
: The y-coordinate of your selected point.background
: If your selected point is in the background or not.Note: In the Linear UI, we will need to create a UI which allows us to select a point in the image.
Workflow Example
opera_NjiymzsNkP.mp4