Compare commits

..

No commits in common. "98784a00d8adf7d9eedb17ed097f7f37828760a4" and "3ec6acb6ea5b5cde7d2db939d1d7ebc94d71cbdb" have entirely different histories.

4 changed files with 10 additions and 9 deletions

View File

@ -65,10 +65,11 @@ 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,
FLOW_PRED, SD3_FLOW_PRED,
FLUX_FLOW_PRED, FLUX_FLOW_PRED,
FLUX2_FLOW_PRED, FLUX2_FLOW_PRED,
PREDICTION_COUNT PREDICTION_COUNT
@ -287,7 +288,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 sd_get_num_physical_cores(); SD_API int32_t 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);
@ -357,4 +358,4 @@ SD_API bool preprocess_canny(sd_image_t image,
} }
#endif #endif
#endif // __STABLE_DIFFUSION_H__ #endif // __STABLE_DIFFUSION_H__

View File

@ -2,11 +2,11 @@
public enum Prediction public enum Prediction
{ {
Default,
EPS, EPS,
V, V,
EDM_V, EDM_V,
Flow, SD3Flow,
FluxFlow, FluxFlow,
Flux2Flow, Flux2Flow
Default
} }

View File

@ -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 = "sd_get_num_physical_cores")] [LibraryImport(LIB_NAME, EntryPoint = "get_num_physical_cores")]
internal static partial int32_t sd_get_num_physical_cores(); internal static partial int32_t 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)]

View File

@ -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.sd_get_num_physical_cores(); public static int GetNumPhysicalCores() => Native.get_num_physical_cores();
public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter) public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter)
{ {