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

Good Job!!! When calling the API to output bbox, can I set the threshold? Found bbox score>0.2 #42

Open
lidapengpeng opened this issue Oct 17, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@lidapengpeng
Copy link

After actually testing various detectors, I found that Grounding DINO is indeed SOTA and performs very well on my own data!

When I called the API, I found that the input image resolution could not specify the size. Secondly, when outputting the results, I found that the bbox threshold score would only be output when it is above 0.2. I wanted to modify the threshold, such as greater than 0.1 manually, but I couldn't find where. Can you give me some suggestions for setting this parameter?

@rentainhe
Copy link
Collaborator

Hi @lidapengpeng

We use a uniform transformation method for the input image, so the users don't have to refine the input image size for detection. And I was wondering the scenarios in which you need to specify the size of the input image. Regarding the setting of the box threshold, we generally recommend using a fixed threshold for more stable detection results. However, it is true that there may be a need to adjust the box threshold in actual use. We will optimize our API calls to support the setting of this parameter.

@rentainhe
Copy link
Collaborator

rentainhe commented Oct 31, 2024

@lidapengpeng We have already update our SDK API, you can set box threshold by setting bbox_threshold, here is an example:

  • update dds-sdk first
pip install dds-cloudapi-sdk --upgrade
  • set bbox_threshold when calling API
task = DetectionTask(
    image_url=image_url,
    prompts=[TextPrompt(text=TEXT_PROMPT)],
    targets=[DetectionTarget.BBox],  # detect bbox
    model=DetectionModel.GDino1_5_Pro,
    bbox_threshold=0.1,
)

@rentainhe rentainhe added the documentation Improvements or additions to documentation label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants