mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 13:28:35 +00:00
Updated stablediffusion.cpp to c6071fa
This commit is contained in:
parent
5a217eb8ec
commit
97f44b89bc
@ -104,6 +104,12 @@ internal unsafe partial class Native
|
||||
sd_image_t input_image,
|
||||
int upscale_factor);
|
||||
|
||||
[LibraryImport(LIB_NAME, EntryPoint = "convert")]
|
||||
internal static partial void convert([MarshalAs(UnmanagedType.LPStr)] string input_path,
|
||||
[MarshalAs(UnmanagedType.LPStr)] string vae_path,
|
||||
[MarshalAs(UnmanagedType.LPStr)] string output_path,
|
||||
sd_type_t output_type);
|
||||
|
||||
[LibraryImport(LIB_NAME, EntryPoint = "sd_set_log_callback")]
|
||||
internal static partial void sd_set_log_callback(sd_log_cb_t sd_log_cb, void* data);
|
||||
|
||||
|
||||
@ -180,6 +180,9 @@ public sealed unsafe class StableDiffusionModel : IDisposable
|
||||
_disposed = true;
|
||||
}
|
||||
|
||||
public static void Convert(string modelPath, string vaePath, Quantization quantization, string outputPath)
|
||||
=> Native.convert(modelPath, vaePath, outputPath, quantization);
|
||||
|
||||
public static string GetSystemInfo()
|
||||
{
|
||||
void* s = Native.sd_get_system_info();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user