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 segment-anything node #157

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

add segment-anything node #157

wants to merge 9 commits into from

Conversation

Wanghanying
Copy link
Collaborator

add auto segment-anything node

Copy link

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

Copy link

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

Copy link

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

@@ -0,0 +1,162 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个例子效果不好,不需要了

@@ -0,0 +1,166 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

同步更新下仓库的 bizyair_example_menu.json 文件。

加一个 Segment Anything xxxx

supernode.py Outdated
Comment on lines 276 to 283
"image": None,
"input_points": None,
"input_label": None,
"input_boxes": None,
"prompt": None,
"box_threshold": None, #置信度
"text_threshold": None,
"mode": 0 #自动分割模式
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个最好根据 mod 来决定如何传参数,而不是所有 mode,传一样的参数。

supernode.py Outdated

msg = ret["data"]
if msg["type"] not in (
"comfyair",
Copy link
Collaborator

Choose a reason for hiding this comment

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

comfyair 可以删除

supernode.py Outdated
@@ -243,16 +246,177 @@ def super_resolution(self, image):
image = image.to(device)
return (image,)

class BizyAirSegmentAnythingAuto:
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个效果还不好,可以删除

Copy link

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

Copy link

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

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.

2 participants