Skip to content

Commit 49626b0

Browse files
authored
Merge pull request #66 from DarthAffe/sdccp_update
Small naming changes in sd.cpp
2 parents 3ec6acb + 8832456 commit 49626b0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

StableDiffusion.NET/Enums/Prediction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
public enum Prediction
44
{
5-
Default,
65
EPS,
76
V,
87
EDM_V,
9-
SD3Flow,
8+
Flow,
109
FluxFlow,
11-
Flux2Flow
10+
Flux2Flow,
11+
Default
1212
}

StableDiffusion.NET/Native/Native.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ internal struct upscaler_ctx_t;
222222
[LibraryImport(LIB_NAME, EntryPoint = "sd_set_preview_callback")]
223223
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);
224224

225-
[LibraryImport(LIB_NAME, EntryPoint = "get_num_physical_cores")]
226-
internal static partial int32_t get_num_physical_cores();
225+
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_num_physical_cores")]
226+
internal static partial int32_t sd_get_num_physical_cores();
227227

228228
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_system_info")]
229229
[return: MarshalAs(UnmanagedType.LPStr)]

StableDiffusion.NET/StableDiffusionCpp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static void Convert(string modelPath, string vaePath, Quantization quanti
6060

6161
public static string GetSystemInfo() => Native.sd_get_system_info();
6262

63-
public static int GetNumPhysicalCores() => Native.get_num_physical_cores();
63+
public static int GetNumPhysicalCores() => Native.sd_get_num_physical_cores();
6464

6565
public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter)
6666
{

0 commit comments

Comments
 (0)