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

fix(nodes): relaxed validation for segment anything #7253

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

The validation on this node causes graph validation to valid. It must be validated after instantiation.

Also, it was a bit too strict. The only case we explicitly do not handle is when both bboxes and points are provided. It's acceptable if neither are provided.

Related Issues / Discussions

Closes #7248

QA Instructions

  • The node should not cause a graph validation error when using connection inputs for the points/bbox inputs.
  • The node should not cause a graph validation error when neither points nor bbox are provided.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations labels Nov 4, 2024
The validation on this node causes graph validation to valid. It must be validated _after_ instantiation.

Also, it was a bit too strict. The only case we explicitly do not handle is when both bboxes and points are provided. It's acceptable if neither are provided.

Closes #7248
@hipsterusername hipsterusername force-pushed the psyche/fix/nodes/segment-anything-validation branch from a842e5a to e4022e5 Compare November 4, 2024 12:12
@hipsterusername hipsterusername merged commit be13340 into main Nov 4, 2024
14 checks passed
@hipsterusername hipsterusername deleted the psyche/fix/nodes/segment-anything-validation branch November 4, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invocations PRs that change invocations python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Segment Anything node error
2 participants