SafeLlavaImageEmbedHandle
Namespace: LLama.Native
A Reference to a llava Image Embed handle
public sealed class SafeLlavaImageEmbedHandle : SafeLLamaHandleBase, System.IDisposable
Inheritance Object → CriticalFinalizerObject → SafeHandle → SafeLLamaHandleBase → SafeLlavaImageEmbedHandle
Implements IDisposable
Properties
IsInvalid
public bool IsInvalid { get; }
Property Value
IsClosed
public bool IsClosed { get; }
Property Value
Methods
CreateFromFileName(SafeLlavaModelHandle, LLamaContext, String)
Create an image embed from an image file
public static SafeLlavaImageEmbedHandle CreateFromFileName(SafeLlavaModelHandle ctxLlava, LLamaContext ctxLlama, string image)
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.
public static SafeLlavaImageEmbedHandle CreateFromMemory(SafeLlavaModelHandle ctxLlava, LLamaContext ctxLlama, Byte[] image)
Parameters
ctxLlava
SafeLlavaModelHandle
ctxLlama
LLamaContext
image
Byte[]
Image bytes. Supported formats:
JPGPNGBMPTGA
Returns
ReleaseHandle()
protected bool ReleaseHandle()