Updated stablediffusion.cpp to c6071fa

This commit is contained in:
DarthAffe committed 2024-01-16 23:40:58 +01:00
1 parent 5a217eb8ec
commit 97f44b89bc
3 files changed
+10 -1

No files matched your search

+6
View File
@@ -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();
+1 -1
View File
@@ -4,7 +4,7 @@ if not exist stable-diffusion.cpp (
cd stable-diffusion.cpp
git fetch
git checkout 2b6ec97fe244d03c40aa8d70131d40bb086099b0
git checkout c6071fa82fb1d0e688f75c9a3d870fe71d3a7a1d
git submodule init
git submodule update