Skip to content

groundingdino

GroundingDINOInferenceRequest

Bases: DynamicClassBaseInferenceRequest

Request for Grounding DINO zero-shot predictions.

Attributes:

Name Type Description
text List[str]

A list of strings.

Source code in inference/core/entities/requests/groundingdino.py
 9
10
11
12
13
14
15
16
17
18
19
class GroundingDINOInferenceRequest(DynamicClassBaseInferenceRequest):
    """Request for Grounding DINO zero-shot predictions.

    Attributes:
        text (List[str]): A list of strings.
    """

    box_threshold: Optional[float] = 0.5
    grounding_dino_version_id: Optional[str] = "default"
    text_threshold: Optional[float] = 0.5
    class_agnostic_nms: Optional[bool] = CLASS_AGNOSTIC_NMS