-
Notifications
You must be signed in to change notification settings - Fork 5
(0.8.0rc1) Return YES/NO instead of PASS/FAIL #50
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
Conversation
Before we release 0.8 I’d like to address the BGR / RGB issue since that’s also a breaking change. |
@robotrapta Good idea. I've created a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
def test_submit_image_query_returns_yes(gl: Groundlight): | ||
# We use the "never-review" model to guarantee a "yes" answer. | ||
detector = gl.get_or_create_detector(name="Always a dog", query="Is there a dog?", config_name="never-review") | ||
image_query = gl.submit_image_query(detector=detector, image="test/assets/dog.jpeg", wait=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this dog. :) https://github.com/groundlight/python-sdk/blob/main/docs/static/img/michonne.jpg
* Bump 0.8.0rc1 * (0.8.0rc1) Return YES/NO instead of PASS/FAIL (#50) * Convert PASS/FAIL to YES/NO * Change to classmethod * Remove logger * Bump 0.8.0 * (0.8.0rc1) Only allow "YES"/"NO" in `add_label()` (#51) * Convert PASS/FAIL to YES/NO * Change to classmethod * Remove logger * Bump 0.8.0 * Only allow YES/NO labels through SDK; Add tests * Add comments * Remove duplicates * Feedback * Add type ignore * Remove select all * Enum * Update pyproject.toml --------- Co-authored-by: Michael Vogelsong <4020875+mjvogelsong@users.noreply.github.com>
The SDK should not be returning the confusing
PASS
orFAIL
labels anymore.I'm not a big fan of the mapper in the client, but I think it's an important fix for clarity in the short term.
Fixes #7