Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions StableDiffusion.NET/Enums/Prediction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

public enum Prediction
{
Default,
EPS,
V,
EDM_V,
SD3Flow,
Flow,
FluxFlow,
Flux2Flow
Flux2Flow,
Default
}
4 changes: 2 additions & 2 deletions StableDiffusion.NET/Native/Native.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ internal struct upscaler_ctx_t;
[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)]
Expand Down
2 changes: 1 addition & 1 deletion StableDiffusion.NET/StableDiffusionCpp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static void Convert(string modelPath, string vaePath, Quantization quanti

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)
{
Expand Down