forked from TensorStack-AI/TensorStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPipelineOptions.cs
More file actions
80 lines (56 loc) · 2.28 KB
/
PipelineOptions.cs
File metadata and controls
80 lines (56 loc) · 2.28 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System.Collections.Generic;
using System.Text.Json.Serialization;
using TensorStack.Common.Tensor;
using TensorStack.Python.Scheduler;
namespace TensorStack.Python.Common
{
public record PipelineOptions
{
[JsonPropertyName("seed")]
public int Seed { get; set; }
[JsonPropertyName("prompt")]
public string Prompt { get; set; }
[JsonPropertyName("negative_prompt")]
public string NegativePrompt { get; set; }
[JsonPropertyName("guidance_scale")]
public float GuidanceScale { get; set; } = 1;
[JsonPropertyName("guidance_scale2")]
public float GuidanceScale2 { get; set; } = 1;
[JsonPropertyName("steps")]
public int Steps { get; set; } = 50;
[JsonPropertyName("steps2")]
public int Steps2 { get; set; } = 20;
[JsonPropertyName("height")]
public int Height { get; set; }
[JsonPropertyName("width")]
public int Width { get; set; }
[JsonPropertyName("frames")]
public int Frames { get; set; }
[JsonPropertyName("frame_rate")]
public float FrameRate { get; set; }
[JsonPropertyName("strength")]
public float Strength { get; set; } = 1;
[JsonPropertyName("control_net_scale")]
public float ControlNetScale { get; set; } = 1;
[JsonPropertyName("scheduler_options")]
public SchedulerOptions SchedulerOptions { get; set; }
[JsonPropertyName("lora_options")]
public List<LoraOptions> LoraOptions { get; set; }
[JsonPropertyName("temp_filename")]
public string TempFileName { get; set; }
[JsonPropertyName("frame_chunk")]
public int FrameChunk { get; set; }
[JsonPropertyName("frame_chunk_overlap")]
public int FrameChunkOverlap { get; set; }
[JsonPropertyName("noise_condition")]
public int NoiseCondition { get; set; }
[JsonPropertyName("enable_vae_tiling")]
public bool EnableVaeTiling { get; set; }
[JsonPropertyName("enable_vae_slicing")]
public bool EnableVaeSlicing { get; set; }
[JsonIgnore]
public List<ImageTensor> InputImages { get; set; } = [];
[JsonIgnore]
public List<ImageTensor> InputControlImages { get; set; } = [];
}
}