mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-13 05:48:40 +00:00
29 lines
586 B
C#
29 lines
586 B
C#
using JetBrains.Annotations;
|
|
|
|
namespace StableDiffusion.NET;
|
|
|
|
[PublicAPI]
|
|
public sealed class ESRGANModelBuilder : IQuantizedModelBuilder
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public UpscaleModelParameter Parameter { get; }
|
|
IQuantizedModelParameter IQuantizedModelBuilder.Parameter => Parameter;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public ESRGANModelBuilder(string modelPath)
|
|
{
|
|
Parameter = new UpscaleModelParameter { ModelPath = modelPath };
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public UpscaleModel Build() => new(Parameter);
|
|
|
|
#endregion
|
|
} |