set min
Browse files- static/controlnetlora.html +1 -1
- static/txt2imglora.html +2 -11
static/controlnetlora.html
CHANGED
@@ -245,7 +245,7 @@
|
|
245 |
const activation = models_id[model];
|
246 |
if (prompt.includes(activation))
|
247 |
return;
|
248 |
-
document.querySelector("#prompt").value = `${activation} portrait of a
|
249 |
})
|
250 |
|
251 |
})
|
|
|
245 |
const activation = models_id[model];
|
246 |
if (prompt.includes(activation))
|
247 |
return;
|
248 |
+
document.querySelector("#prompt").value = `${activation} portrait of a person`;
|
249 |
})
|
250 |
|
251 |
})
|
static/txt2imglora.html
CHANGED
@@ -80,7 +80,6 @@
|
|
80 |
"prompt": getValue("#prompt"),
|
81 |
"guidance_scale": getValue("#guidance-scale"),
|
82 |
"steps": getValue("#steps"),
|
83 |
-
"lcm_steps": getValue("#lcm_steps"),
|
84 |
"width": WIDTH,
|
85 |
"height": HEIGHT,
|
86 |
}));
|
@@ -134,7 +133,7 @@
|
|
134 |
const exif = {};
|
135 |
const gps = {};
|
136 |
zeroth[piexif.ImageIFD.Make] = "LCM Text-to-Image";
|
137 |
-
zeroth[piexif.ImageIFD.ImageDescription] = `prompt: ${getValue("#prompt")} | seed: ${getValue("#seed")} | guidance_scale: ${getValue("#guidance-scale")}
|
138 |
zeroth[piexif.ImageIFD.Software] = "https://github.com/radames/Real-Time-Latent-Consistency-Model";
|
139 |
|
140 |
exif[piexif.ExifIFD.DateTimeOriginal] = new Date().toISOString();
|
@@ -237,18 +236,10 @@
|
|
237 |
<form class="grid grid-cols-3 items-center gap-3 py-3" id="params" action="">
|
238 |
<label class="text-sm font-medium " for="steps">Inference Steps
|
239 |
</label>
|
240 |
-
<input type="range" id="steps" name="steps" min="
|
241 |
oninput="this.nextElementSibling.value = Number(this.value)">
|
242 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
243 |
4</output>
|
244 |
-
<!-- -->
|
245 |
-
<label class="text-sm font-medium" for="lcm_steps">LCM Inference Steps
|
246 |
-
</label>
|
247 |
-
<input type="range" id="lcm_steps" name="lcm_steps" min="2" max="60" value="50"
|
248 |
-
oninput="this.nextElementSibling.value = Number(this.value)">
|
249 |
-
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
250 |
-
50</output>
|
251 |
-
<!-- -->
|
252 |
<label class="text-sm font-medium" for="guidance-scale">Guidance Scale
|
253 |
</label>
|
254 |
<input type="range" id="guidance-scale" name="guidance-scale" min="0" max="5" step="0.0001"
|
|
|
80 |
"prompt": getValue("#prompt"),
|
81 |
"guidance_scale": getValue("#guidance-scale"),
|
82 |
"steps": getValue("#steps"),
|
|
|
83 |
"width": WIDTH,
|
84 |
"height": HEIGHT,
|
85 |
}));
|
|
|
133 |
const exif = {};
|
134 |
const gps = {};
|
135 |
zeroth[piexif.ImageIFD.Make] = "LCM Text-to-Image";
|
136 |
+
zeroth[piexif.ImageIFD.ImageDescription] = `prompt: ${getValue("#prompt")} | seed: ${getValue("#seed")} | guidance_scale: ${getValue("#guidance-scale")} | steps: ${getValue("#steps")}`;
|
137 |
zeroth[piexif.ImageIFD.Software] = "https://github.com/radames/Real-Time-Latent-Consistency-Model";
|
138 |
|
139 |
exif[piexif.ExifIFD.DateTimeOriginal] = new Date().toISOString();
|
|
|
236 |
<form class="grid grid-cols-3 items-center gap-3 py-3" id="params" action="">
|
237 |
<label class="text-sm font-medium " for="steps">Inference Steps
|
238 |
</label>
|
239 |
+
<input type="range" id="steps" name="steps" min="2" max="10" value="4"
|
240 |
oninput="this.nextElementSibling.value = Number(this.value)">
|
241 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
242 |
4</output>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
<label class="text-sm font-medium" for="guidance-scale">Guidance Scale
|
244 |
</label>
|
245 |
<input type="range" id="guidance-scale" name="guidance-scale" min="0" max="5" step="0.0001"
|