SafeLlavaImageEmbedHandle
Namespace: LLama.Native
A Reference to a llava Image Embed handle
1 | |
Inheritance Object → CriticalFinalizerObject → SafeHandle → SafeLLamaHandleBase → SafeLlavaImageEmbedHandle
Implements IDisposable
Attributes NullableContextAttribute, NullableAttribute
Fields
handle
1 | |
Properties
Model
Get the model used to create this image embedding
1 | |
Property Value
EmbeddingDimensions
Get the number of dimensions in an embedding
1 | |
Property Value
PatchCount
Get the number of "patches" in an image embedding
1 | |
Property Value
IsInvalid
1 | |
Property Value
IsClosed
1 | |
Property Value
Constructors
SafeLlavaImageEmbedHandle()
1 | |
Methods
CreateFromFileName(SafeLlavaModelHandle, LLamaContext, String)
Create an image embed from an image file
1 | |
Parameters
clip SafeLlavaModelHandle
ctx LLamaContext
image String
Path to the image file. Supported formats:
-
-
Returns
Exceptions
CreateFromFileName(SafeLlavaModelHandle, String, Int32)
Create an image embed from an image file
1 | |
Parameters
clip SafeLlavaModelHandle
image String
Path to the image file. Supported formats:
-
-
threads Int32
Returns
Exceptions
CreateFromMemory(SafeLlavaModelHandle, LLamaContext, Byte[])
Create an image embed from the bytes of an image.
1 | |
Parameters
clip SafeLlavaModelHandle
ctx LLamaContext
image Byte[]
Image bytes. Supported formats:
-
-
Returns
CreateFromMemory(SafeLlavaModelHandle, Byte[], Int32)
Create an image embed from the bytes of an image.
1 | |
Parameters
clip SafeLlavaModelHandle
image Byte[]
Image bytes. Supported formats:
-
-
threads Int32
Returns
ReleaseHandle()
1 | |
Returns
GetEmbedding(Span<Single>, Int32)
Copy the embeddings data to the destination span
1 | |
Parameters
dest Span<Single>
index Int32