forked from TensorStack-AI/TensorStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEDMEulerOptions.cs
More file actions
40 lines (30 loc) · 1.29 KB
/
EDMEulerOptions.cs
File metadata and controls
40 lines (30 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.Text.Json.Serialization;
namespace TensorStack.Python.Scheduler
{
public sealed record EDMEulerOptions : SchedulerOptions
{
public EDMEulerOptions() : base() { }
private EDMEulerOptions(EDMEulerOptions other) : base(other)
{
ShallowCopyProperties(other);
}
[JsonIgnore]
public override SchedulerType Scheduler => SchedulerType.EDMEuler;
[JsonPropertyName("num_train_timesteps")]
public int NumTrainTimesteps { get; init; } = 1000;
[JsonPropertyName("sigma_min")]
public float SigmaMin { get; init; } = 0.002f;
[JsonPropertyName("sigma_max")]
public float SigmaMax { get; init; } = 80.0f;
[JsonPropertyName("sigma_data")]
public float SigmaData { get; init; } = 0.5f;
[JsonPropertyName("sigma_schedule")]
public SigmaScheduleType SigmaScheduleType { get; init; } = SigmaScheduleType.Karras;
[JsonPropertyName("prediction_type")]
public PredictionType PredictionType { get; init; } = PredictionType.Epsilon;
[JsonPropertyName("rho")]
public float Rho { get; init; } = 7.0f;
[JsonPropertyName("final_sigmas_type")]
public FinalSigmasType FinalSigmasType { get; init; } = FinalSigmasType.Zero;
}
}