mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 21:38:45 +00:00
Merge branch 'master' of https://github.com/DarthAffe/StableDiffusion.NET
This commit is contained in:
commit
98784a00d8
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
public enum Prediction
|
public enum Prediction
|
||||||
{
|
{
|
||||||
Default,
|
|
||||||
EPS,
|
EPS,
|
||||||
V,
|
V,
|
||||||
EDM_V,
|
EDM_V,
|
||||||
SD3Flow,
|
Flow,
|
||||||
FluxFlow,
|
FluxFlow,
|
||||||
Flux2Flow
|
Flux2Flow,
|
||||||
|
Default
|
||||||
}
|
}
|
||||||
|
|||||||
@ -222,8 +222,8 @@ internal unsafe partial class Native
|
|||||||
[LibraryImport(LIB_NAME, EntryPoint = "sd_set_preview_callback")]
|
[LibraryImport(LIB_NAME, EntryPoint = "sd_set_preview_callback")]
|
||||||
internal static partial void sd_set_preview_callback(sd_preview_cb_t? cb, preview_t mode, int interval, [MarshalAs(UnmanagedType.I1)] bool denoised, [MarshalAs(UnmanagedType.I1)] bool noisy, void* data);
|
internal static partial void sd_set_preview_callback(sd_preview_cb_t? cb, preview_t mode, int interval, [MarshalAs(UnmanagedType.I1)] bool denoised, [MarshalAs(UnmanagedType.I1)] bool noisy, void* data);
|
||||||
|
|
||||||
[LibraryImport(LIB_NAME, EntryPoint = "get_num_physical_cores")]
|
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_num_physical_cores")]
|
||||||
internal static partial int32_t get_num_physical_cores();
|
internal static partial int32_t sd_get_num_physical_cores();
|
||||||
|
|
||||||
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_system_info")]
|
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_system_info")]
|
||||||
[return: MarshalAs(UnmanagedType.LPStr)]
|
[return: MarshalAs(UnmanagedType.LPStr)]
|
||||||
|
|||||||
@ -60,7 +60,7 @@ public static unsafe class StableDiffusionCpp
|
|||||||
|
|
||||||
public static string GetSystemInfo() => Native.sd_get_system_info();
|
public static string GetSystemInfo() => Native.sd_get_system_info();
|
||||||
|
|
||||||
public static int GetNumPhysicalCores() => Native.get_num_physical_cores();
|
public static int GetNumPhysicalCores() => Native.sd_get_num_physical_cores();
|
||||||
|
|
||||||
public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter)
|
public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user