Skip to content
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

Add Chroma Key node #2381

Merged
merged 3 commits into from Dec 6, 2023
Merged

Conversation

RunDevelopment
Copy link
Member

Fixes #1786
Fixes #2226

This adds a Chroma key node.

image

The node as 2 key modes: binary and trimap matting. While the binary method is just a threshold to decide a binary transparent yes/no, the trimap option will generate a trimap and then perform alpha matting. As such, the trimap option is substantially slower, but can produce pretty good results. Here are some examples:

Before After Settings
green coco 5 image image
green stop image image
green alice 1 clean image image
white toki 1 image image
gray original 3 image image

Not perfect, but pretty good.

…ma_key.py

Co-authored-by: Joey Ballentine <34788790+joeyballentine@users.noreply.github.com>
Copy link
Member

@joeyballentine joeyballentine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@joeyballentine joeyballentine merged commit 25b4305 into chaiNNer-org:main Dec 6, 2023
14 checks passed
@RunDevelopment RunDevelopment deleted the chroma-key-node branch December 6, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a chroma key node [ Feature Request ] Color mask node
2 participants