SafeLlavaImageEmbedHandle
Namespace: LLama.Native
A Reference to a llava Image Embed handle
1 | |
Inheritance Object → CriticalFinalizerObject → SafeHandle → SafeLLamaHandleBase → SafeLlavaImageEmbedHandle
Implements IDisposable
Properties
IsInvalid
1 | |
Property Value
IsClosed
1 | |
Property Value
Methods
CreateFromFileName(SafeLlavaModelHandle, LLamaContext, String)
Create an image embed from an image file
1 | |
Parameters
ctxLlava SafeLlavaModelHandle
ctxLlama LLamaContext
image String
Path to the image file. Supported formats:
JPGPNGBMPTGA
Returns
Exceptions
CreateFromMemory(SafeLlavaModelHandle, LLamaContext, Byte[])
Create an image embed from the bytes of an image.
1 | |
Parameters
ctxLlava SafeLlavaModelHandle
ctxLlama LLamaContext
image Byte[]
Image bytes. Supported formats:
JPGPNGBMPTGA
Returns
ReleaseHandle()
1 | |