mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 21:38:45 +00:00
Compare commits
4 Commits
3ec6acb6ea
...
98784a00d8
| Author | SHA1 | Date | |
|---|---|---|---|
| 98784a00d8 | |||
| 8e61dead47 | |||
| 49626b0cb4 | |||
| 8832456b8f |
@ -65,11 +65,10 @@ enum scheduler_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum prediction_t {
|
enum prediction_t {
|
||||||
DEFAULT_PRED,
|
|
||||||
EPS_PRED,
|
EPS_PRED,
|
||||||
V_PRED,
|
V_PRED,
|
||||||
EDM_V_PRED,
|
EDM_V_PRED,
|
||||||
SD3_FLOW_PRED,
|
FLOW_PRED,
|
||||||
FLUX_FLOW_PRED,
|
FLUX_FLOW_PRED,
|
||||||
FLUX2_FLOW_PRED,
|
FLUX2_FLOW_PRED,
|
||||||
PREDICTION_COUNT
|
PREDICTION_COUNT
|
||||||
@ -288,7 +287,7 @@ typedef void (*sd_preview_cb_t)(int step, int frame_count, sd_image_t* frames, b
|
|||||||
SD_API void sd_set_log_callback(sd_log_cb_t sd_log_cb, void* data);
|
SD_API void sd_set_log_callback(sd_log_cb_t sd_log_cb, void* data);
|
||||||
SD_API void sd_set_progress_callback(sd_progress_cb_t cb, void* data);
|
SD_API void sd_set_progress_callback(sd_progress_cb_t cb, void* data);
|
||||||
SD_API void sd_set_preview_callback(sd_preview_cb_t cb, enum preview_t mode, int interval, bool denoised, bool noisy, void* data);
|
SD_API void sd_set_preview_callback(sd_preview_cb_t cb, enum preview_t mode, int interval, bool denoised, bool noisy, void* data);
|
||||||
SD_API int32_t get_num_physical_cores();
|
SD_API int32_t sd_get_num_physical_cores();
|
||||||
SD_API const char* sd_get_system_info();
|
SD_API const char* sd_get_system_info();
|
||||||
|
|
||||||
SD_API const char* sd_type_name(enum sd_type_t type);
|
SD_API const char* sd_type_name(enum sd_type_t type);
|
||||||
|
|||||||
@ -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