Compare commits

...

4 Commits

Author SHA1 Message Date
98784a00d8 Merge branch 'master' of https://github.com/DarthAffe/StableDiffusion.NET 2025-12-07 10:55:34 +01:00
8e61dead47 Updated header-file 2025-12-07 10:55:29 +01:00
49626b0cb4
Merge pull request #66 from DarthAffe/sdccp_update
Small naming changes in sd.cpp
2025-12-07 10:17:30 +01:00
8832456b8f Small naming changes in sd.cpp 2025-12-07 10:15:36 +01:00
4 changed files with 9 additions and 10 deletions

View File

@ -65,11 +65,10 @@ enum scheduler_t {
};
enum prediction_t {
DEFAULT_PRED,
EPS_PRED,
V_PRED,
EDM_V_PRED,
SD3_FLOW_PRED,
FLOW_PRED,
FLUX_FLOW_PRED,
FLUX2_FLOW_PRED,
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_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 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_type_name(enum sd_type_t type);
@ -358,4 +357,4 @@ SD_API bool preprocess_canny(sd_image_t image,
}
#endif
#endif // __STABLE_DIFFUSION_H__
#endif // __STABLE_DIFFUSION_H__

View File

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

View File

@ -222,8 +222,8 @@ internal unsafe partial class Native
[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);
[LibraryImport(LIB_NAME, EntryPoint = "get_num_physical_cores")]
internal static partial int32_t get_num_physical_cores();
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_num_physical_cores")]
internal static partial int32_t sd_get_num_physical_cores();
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_system_info")]
[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 int GetNumPhysicalCores() => Native.get_num_physical_cores();
public static int GetNumPhysicalCores() => Native.sd_get_num_physical_cores();
public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter)
{