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

Some Empty Labels or Labels with Multiple Classes #354

Open
willjhliang opened this issue Aug 10, 2024 · 2 comments
Open

Some Empty Labels or Labels with Multiple Classes #354

willjhliang opened this issue Aug 10, 2024 · 2 comments

Comments

@willjhliang
Copy link

willjhliang commented Aug 10, 2024

Using the Huggingface API with AutoProcessor, AutoModelForZeroShotObjectDetection, and post_process_grounded_object_detection() (following Grounded SAM 2), I receive some empty label strings in the results (results[0]["labels"]) or strings that include 2 classes. My classes are specified as

text = ".".join([
    "pot", "pan", ...
])

I have a few questions:

  1. What are these labels and the boxes associated with them? Do the empty ones not meet the post processing threshold?
  2. What is the common practice with dealing with them? Do we simply discard these boxes?
  3. How are multiple classes assigned to the box?

Thank you very much!

@willjhliang willjhliang changed the title Some Empty Labels Some Empty Labels or Labels with Multiple Classes Aug 11, 2024
@YCAyca
Copy link

YCAyca commented Oct 29, 2024

Hello! I have the same issue and would like to learn the reason. I don't want that the model merges my classes and assign class x class y for one box, in this case there is no way to apply nms and choose the higher probability class for the related box since they come as one single label and it creates lower precision issue for my dataset.
Thanks

@1benwu1
Copy link

1benwu1 commented Nov 26, 2024

Hello! I have the same issue and would like to learn the reason. I don't want that the model merges my classes and assign class x class y for one box, in this case there is no way to apply nms and choose the higher probability class for the related box since they come as one single label and it creates lower precision issue for my dataset. Thanks

this happens a lot . sometimes a class with a long name, may be cut off. for example, A: motorbike---> B:motor C:bike

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

No branches or pull requests

3 participants