Skip to content

Conversation

@brandon-wada
Copy link
Collaborator

Tests and labeling support for multiclass detectors

return label


def convert_display_label_to_internal(
Copy link
Contributor

Choose a reason for hiding this comment

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

🥳

**Example usage**::
gl = Groundlight()
gl = ExperimentalApi()
Copy link
Contributor

@tyler-romero tyler-romero Dec 4, 2024

Choose a reason for hiding this comment

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

Why does this need to be ExperimentalAPI()?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy paste, my greatest power and greatest weakness

Copy link
Contributor

@tyler-romero tyler-romero left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for adding those new tests too

@tyler-romero
Copy link
Contributor

I'm seeing backend errors that I believe are related to this PR. Specifically, submitting counting labels triggers count-detector training. But our create_count_detector sdk method doesnt allow specifying what the object to be counted is. This bad specification of count detectors causes errors during training.

gl_experimental.add_label(iq1, "cherry")
iq1 = gl_experimental.get_image_query(iq1.id)
assert iq1.result.label == "cherry"
# You can submit the index of the class as well
Copy link
Contributor

Choose a reason for hiding this comment

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

Ohh, I see that we can use class index in labels. Should we add this to function description for add_label too?

Copy link
Contributor

@srnangi srnangi left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

@brandon-wada brandon-wada merged commit ee5d7e1 into main Dec 10, 2024
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.

4 participants