clip
ClipCompareRequest
¶
Bases: ClipInferenceRequest
Request for CLIP comparison.
Attributes:
Name | Type | Description |
---|---|---|
subject |
Union[InferenceRequestImage, str]
|
The type of image data provided, one of 'url' or 'base64'. |
subject_type |
str
|
The type of subject, one of 'image' or 'text'. |
prompt |
Union[List[InferenceRequestImage], InferenceRequestImage, str, List[str], Dict[str, Union[InferenceRequestImage, str]]]
|
The prompt for comparison. |
prompt_type |
str
|
The type of prompt, one of 'image' or 'text'. |
Source code in inference/core/entities/requests/clip.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
ClipImageEmbeddingRequest
¶
Bases: ClipInferenceRequest
Request for CLIP image embedding.
Attributes:
Name | Type | Description |
---|---|---|
image |
Union[List[InferenceRequestImage], InferenceRequestImage]
|
Image(s) to be embedded. |
Source code in inference/core/entities/requests/clip.py
38 39 40 41 42 43 44 45 |
|
ClipInferenceRequest
¶
Bases: BaseRequest
Request for CLIP inference.
Attributes:
Name | Type | Description |
---|---|---|
api_key |
Optional[str]
|
Roboflow API Key. |
clip_version_id |
Optional[str]
|
The version ID of CLIP to be used for this request. |
Source code in inference/core/entities/requests/clip.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
ClipTextEmbeddingRequest
¶
Bases: ClipInferenceRequest
Request for CLIP text embedding.
Attributes:
Name | Type | Description |
---|---|---|
text |
Union[List[str], str]
|
A string or list of strings. |
Source code in inference/core/entities/requests/clip.py
48 49 50 51 52 53 54 55 56 57 58 |
|