Skip to content

dynamic_class_base

DynamicClassBaseInferenceRequest

Bases: CVInferenceRequest

Request for zero-shot object detection models (with dynamic class lists).

Attributes:

Name Type Description
text List[str]

A list of strings.

Source code in inference/core/entities/requests/dynamic_class_base.py
 8
 9
10
11
12
13
14
15
16
17
18
19
class DynamicClassBaseInferenceRequest(CVInferenceRequest):
    """Request for zero-shot object detection models (with dynamic class lists).

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

    model_id: Optional[str] = Field(None)
    text: List[str] = Field(
        examples=[["person", "dog", "cat"]],
        description="A list of strings",
    )