You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
550 B
17 lines
550 B
namespace StabilityMatrix.Core.Models.Api.Comfy; |
|
|
|
public readonly record struct ComfyUpscaler(string Name, ComfyUpscalerType Type) |
|
{ |
|
private static Dictionary<string, string> ConvertDict { get; } = |
|
new() |
|
{ |
|
["nearest-exact"] = "Nearest Exact", |
|
["bilinear"] = "Bilinear", |
|
["area"] = "Area", |
|
["bicubic"] = "Bicubic", |
|
["bislerp"] = "Bislerp", |
|
}; |
|
|
|
public string DisplayName => |
|
ConvertDict.TryGetValue(Name, out var displayName) ? displayName : Name; |
|
}
|
|
|