This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
forked from d8ahazard/sd_dreambooth_extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
208 lines (206 loc) · 13.7 KB
/
index.html
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<div class="module" id="moduleDreambooth">
<div class="container-fluid">
<div class="row">
<div class="card shadow">
<div class="card-body text-center justify-between">
<button class="btn btn-top btn-secondary" type="button" id="db_load_params">Load Settings</button>
<button class="btn btn-top btn-secondary" type="button" id="db_save_config">Save Settings</button>
<button class="btn btn-top btn-primary" type="button" id="db_train">Train</button>
<button class="btn btn-top btn-secondary" type="button" id="db_gen_ckpt">Generate Ckpt</button>
<button class="btn btn-top btn-secondary hide" type="button" id="db_gen_ckpt_during">Save Weights
</button>
<button class="btn btn-top btn-secondary hide" type="button" id="db_train_sample">Generate Samples
</button>
<button class="btn btn-top btn-secondary hide cancelButton" type="button" id="db_cancel">Cancel</button>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6 col-lg-4">
<div class="card shadow" id="dreamModel">
<div class="card-header">Model</div>
<div class="card-body">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="db-model-select-tab" data-bs-toggle="tab"
data-bs-target="#db-model-select" type="button" role="tab"
aria-controls="db-model-select"
aria-selected="true">Select
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="db-model-create-tab" data-bs-toggle="tab"
data-bs-target="#db-model-create"
type="button" role="tab" aria-controls="profile" aria-selected="false">Create
</button>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="db-model-select" role="tabpanel"
aria-labelledby="db-model-select">
<div class="container">
<div class="row">
<div class="col-12">
<div id="dreamModelSelect" class="modelSelect" data-model_type="dreambooth"
data-label="Model"></div>
</div>
<div class="col-12">
<div id="snapshotSelect" class="modelSelect db_adv"
data-model_type="dreamboothSnapshot"
data-label="Snapshot to Resume"></div>
</div>
</div>
<div class="row" style="display: none;" id="loraSelect">
<div class="col-12">
<div id="loraModelSelect" class="modelSelect" data-model_type="lora"
data-label="Lora Model"></div>
</div>
</div>
<div class="row" id="modelDetails">
</div>
</div>
</div>
<div class="tab-pane fade" id="db-model-create" role="tabpanel"
aria-labelledby="db-model-create">
<div class="container">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="db_new_model_name">Name</label>
<input type="text" class="form-control newModelParam"
id="db_new_model_name" data-key="new_model_name">
</div>
</div>
</div>
<div class="row">
<div class="col-6 db_adv">
<div class="form-check">
<input type="checkbox" class="form-check-input newModelParam"
id="db_create_from_hub" data-key="create_from_hub">
<label class="form-check-label" for="db_create_from_hub">Create From
Hub</label>
</div>
</div>
<div class="col-6">
<div class="form-check">
<input type="checkbox" class="form-check-input newModelParam"
id="db_512_model" data-key="512_model"
checked>
<label class="form-check-label" for="db_512_model">512x Model</label>
</div>
</div>
<div class="col-6">
<div class="form-check">
<input type="checkbox" class="form-check-input newModelParam" id="db_use_shared_src" data-key="use_shared_src"
checked>
<label class="form-check-label" for="db_use_shared_src">Experimental Shared Src</label>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group db_adv" style="display: none;" id="hub_row">
<label for="db_new_model_url">Model Path</label>
<input type="text" class="form-control newModelParam"
id="db_new_model_url"
placeholder="runwayml/stable-diffusion-v1-5"
data-key="new_model_url">
<label for="db_new_model_token">HuggingFace Token</label>
<input type="text" class="form-control newModelParam"
id="db_new_model_token" data-key="new_model_token"
value="">
</div>
<div class="form-group" id="local_row">
<div class="modelSelect"
id="db_new_model"
data-add_class="newModelParam"
data-model_type="diffusers"
data-label="Source Checkpoint"
data-key="new_model_src"></div>
</div>
<div class="form-group" id="shared_row">
<div class="sharedModelSelect"
id="new_model_shared_src"
data-add_class="newModelParam"
data-model_type="diffusers"
data-label="EXPERIMENTAL: LoRA Shared Diffusers Source"
data-key="new_model_shared_src"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 db_adv">
<div class="form-check">
<input type="checkbox" class="form-check-input newModelParam"
id="db_new_model_extract_ema" data-key="new_model_extract_ema">
<label class="form-check-label" for="db_new_model_extract_ema">Extract
EMA Weights</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input newModelParam"
id="db_train_unfrozen" data-key="train_unfrozen" checked>
<label class="form-check-label" for="db_train_unfrozen">Unfreeze
Model</label>
</div>
</div>
<div class="col-12 text-center">
<button class="btn btn-primary" type="button" id="db_create_model">Create
Model
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-6 col-lg-4">
<div class="card shadow" id="dreamSettings">
<div class="card-header">
Input
</div>
<div class="card-body">
<div class="borderSection">
<div class="sectionLabel">Concepts</div>
<div class="form-group">
<label for="dreamInputBrowser">Select Images</label>
<div class="dreamInputBrowser" id="dreamInputBrowser"></div>
</div>
<div class="form-group">
<label for="db_instance_token">Instance Token</label>
<input type="text" id="db_instance_token" class="form-control dbInput" data-elem_id="c1_instance_token">
</div>
<div class="form-group">
<label for="db_class_token">Class Token</label>
<input type="text" id="db_class_token" class="form-control dbInput" data-elem_id="c1_class_token">
</div>
</div>
<div class="borderSection">
<div class="sectionLabel">Settings</div>
<div class="db-slider" data-elem_id="num_epochs" data-max="1000" data-min="1"
data-value="150" data-label="Number of Epochs"></div>
<div class="db-slider" data-elem_id="max_res" data-max="1024" data-min="512" data-step="64"
data-value="768" data-label="Maximum Resolution"></div>
<div class="db-slider" data-elem_id="batch_size" data-max="100" data-min="1" data-step="1"
data-value="5" data-label="Batch Size"></div>
<div class="db-slider" data-elem_id="grad_steps" data-max="100" data-min="1" data-step="1"
data-value="1" data-label="Gradient Accumulation Steps"></div>
</div>
</div>
</div>
</div>
<div class="col-14 col-md-6 col-lg-4">
<div class="card shadow" id="dreamStatus">
<div class="card-header">
Output
</div>
<div class="card-body">
<div class="progressGroup" id="dreamProgress"></div>
<div class="image-container inline-gallery-container" id="dreamGallery"></div>
</div>
</div>
</div>
</div>
</div>
</div>