update hints

This commit is contained in:
Vladimir Mandic
2023-07-09 16:11:08 -04:00
parent 4b3cdb73f0
commit 85a197ca52
3 changed files with 61 additions and 16 deletions
+57 -13
View File
@@ -42,11 +42,31 @@
{"id":"","label":"Enqueue","localized":"","hint":"Add task to background queueu in Agent Scheduler"},
{"id":"","label":"Stop","localized":"","hint":"Stop processing"},
{"id":"","label":"Skip","localized":"","hint":"Stop processing current job and continue processing"},
{"id":"","label":"Interrupt","localized":"","hint":"Interrupt current processing job"},
{"id":"","label":"Pause","localized":"","hint":"Pause processing"},
{"id":"","label":"Interrogate\nCLIP","localized":"","hint":"Run interrogate using CLIP model"},
{"id":"","label":"Interrogate\nDeepBooru","localized":"","hint":"Run interrogate using DeepBooru model"}
],
"extra networks": [
{"id":"","label":"Extra networks tab order","localized":"","hint":"Comma-separated list of tab names; tabs listed here will appear in the extra networks UI first and in order lsited"},
{"id":"","label":"UI position","localized":"","hint":""},
{"id":"","label":"UI height (%)","localized":"","hint":""},
{"id":"","label":"UI sidebar width (%)","localized":"","hint":""},
{"id":"","label":"UI card preview lazy loading","localized":"","hint":""},
{"id":"","label":"UI card size (px)","localized":"","hint":""},
{"id":"","label":"UI disable variable aspect ratio","localized":"","hint":""},
{"id":"","label":"UI image contain method","localized":"","hint":""},
{"id":"","label":"Do not automatically build extra network pages","localized":"","hint":""},
{"id":"","label":"Use LyCoris handler for all Lora types","localized":"","hint":""},
{"id":"","label":"Disable built-in Lora handler","localized":"","hint":""},
{"id":"","label":"Use Kohya method for handling multiple Loras","localized":"","hint":""},
{"id":"","label":"Multiplier for extra networks","localized":"","hint":"When adding extra network such as Hypernetwork or Lora to prompt, use this multiplier for it"},
{"id":"","label":"Add hypernetwork to prompt","localized":"","hint":""},
{"id":"","label":"Add Lora to prompt","localized":"","hint":""},
{"id":"","label":"shuffle tags by ',' when creating prompts.","localized":"","hint":""},
{"id":"","label":"extra text to add before <...> when adding extra network to prompt","localized":"","hint":""},
{"id":"","label":"When adding to prompt, refer to Lora by","localized":"","hint":""},
{"id":"","label":"add lora hashes to infotext","localized":"","hint":""},
{"id":"","label":"Checkpoints","localized":"","hint":""},
{"id":"","label":"Lora","localized":"","hint":""},
{"id":"","label":"LyCORIS","localized":"","hint":""},
@@ -143,6 +163,7 @@
{"id":"","label":"Stable Diffusion","localized":"","hint":""},
{"id":"","label":"Optimizations","localized":"","hint":""},
{"id":"","label":"Compute Settings","localized":"","hint":""},
{"id":"","label":"Diffusers Settings","localized":"","hint":""},
{"id":"","label":"System Paths","localized":"","hint":""},
{"id":"","label":"Image Options","localized":"","hint":""},
{"id":"","label":"Image Processing","localized":"","hint":""},
@@ -195,7 +216,13 @@
{"id":"","label":"Merge","localized":"","hint":""},
{"id":"","label":"Validate","localized":"","hint":""},
{"id":"","label":"List model details","localized":"","hint":""},
{"id":"","label":"Calculate hash for all models (may take a long time)","localized":"","hint":""}
{"id":"","label":"Calculate hash for all models (may take a long time)","localized":"","hint":""},
{"id":"","label":"seach models","localized":"","hint":""},
{"id":"","label":"select model","localized":"","hint":""},
{"id":"","label":"specify model variant","localized":"","hint":""},
{"id":"","label":"specify model revision","localized":"","hint":""},
{"id":"","label":"huggingface token","localized":"","hint":""},
{"id":"","label":"huggingface mirror","localized":"","hint":""}
],
"train tabs": [
{"id":"","label":"Preprocess","localized":"","hint":""},
@@ -277,9 +304,24 @@
{"id":"","label":"Drop out tags when creating prompts","localized":"","hint":""},
{"id":"","label":"once","localized":"","hint":""},
{"id":"","label":"deterministic","localized":"","hint":""},
{"id":"","label":"random","localized":"","hint":""}
{"id":"","label":"select embedding","localized":"","hint":""},
{"id":"","label":"create emebedding","localized":"","hint":""},
{"id":"","label":"gradient clip value","localized":"","hint":""},
{"id":"","label":"create interim hypernetworks","localized":"","hint":""},
{"id":"","label":"original model","localized":"","hint":""}
],
"settings": [
{"id":"","label":"Stable Diffusion checkpoint","localized":"","hint":""},
{"id":"","label":"Stable Diffusion refiner","localized":"","hint":""},
{"id":"","label":"stable diffusion checkpoint autoload on server start","localized":"","hint":""},
{"id":"","label":"stable diffusion checkpoint dict","localized":"","hint":""},
{"id":"","label":"disallow usage of checkpoints in ckpt format","localized":"","hint":""},
{"id":"","label":"model compile fullgraph","localized":"","hint":""},
{"id":"","label":"create zip archive when downloading multiple images","localized":"","hint":""},
{"id":"","label":"samplers solver order where applicable","localized":"","hint":""},
{"id":"","label":"samplers should use karras sigmas where applicable","localized":"","hint":""},
{"id":"","label":"samplers should use use lower-order solvers in the final steps where applicable","localized":"","hint":""},
{"id":"","label":"samplers should use dynamic thresholding where applicable","localized":"","hint":""},
{"id":"","label":"Number of cached model checkpoints","localized":"","hint":"The amount of models to store in RAM for quick access"},
{"id":"","label":"Number of cached VAE checkpoints","localized":"","hint":"The amount of VAE files to store in RAM for quick access"},
{"id":"","label":"Select VAE","localized":"","hint":"VAE helps with fine details in the final image and may also alter colors"},
@@ -332,7 +374,7 @@
{"id":"","label":"ipex","localized":"","hint":""},
{"id":"","label":"Model compile verbose mode","localized":"","hint":""},
{"id":"","label":"Model compile suppress errors","localized":"","hint":""},
{"id":"","label":"Disable Torch memory garbage collection","localized":"","hint":""},
{"id":"","label":"Disable Torch memory garbage collection","localized":"","hint":"Disable Torch memory garbage collection on each generation. CG will still run before & after model load as well when low GPU memory threshold is reached."},
{"id":"","label":"Directory for temporary images; leave empty for default","localized":"","hint":""},
{"id":"","label":"Cleanup non-default temporary directory when starting webui","localized":"","hint":""},
{"id":"","label":"Path to directory with stable diffusion checkpoints","localized":"","hint":""},
@@ -416,7 +458,6 @@
{"id":"","label":"UI tabs order","localized":"","hint":""},
{"id":"","label":"UI scripts order","localized":"","hint":""},
{"id":"","label":"txt2img/img2img UI item order","localized":"","hint":""},
{"id":"","label":"Extra networks tab order","localized":"","hint":"Comma-separated list of tab names; tabs listed here will appear in the extra networks UI first and in order lsited"},
{"id":"","label":"Show progressbar","localized":"","hint":""},
{"id":"","label":"Show live previews of the created image","localized":"","hint":""},
{"id":"","label":"Show previews of all images generated in a batch as a grid","localized":"","hint":""},
@@ -507,20 +548,24 @@
{"id":"","label":"Tile overlap for SCUNET upscalers","localized":"","hint":" Low values = visible seam"},
{"id":"","label":"Hires fix uses width & height to set final resolution","localized":"","hint":"Hires fix uses width & height to set final resolution rather than first pass"},
{"id":"","label":"Do not fix prompt schedule for second order samplers","localized":"","hint":""},
{"id":"","label":"Use LyCoris handler for all Lora types","localized":"","hint":""},
{"id":"","label":"Use Kohya method for handling multiple Loras","localized":"","hint":""},
{"id":"","label":"CodeFormer","localized":"","hint":""},
{"id":"","label":"GFPGAN","localized":"","hint":"Restore low quality faces using GFPGAN neural network"},
{"id":"","label":"CodeFormer weight parameter","localized":"","hint":"0 = maximum effect; 1 = minimum effect"},
{"id":"","label":"Move face restoration model from VRAM into RAM after processing","localized":"","hint":""},
{"id":"","label":"Default view for Extra Networks","localized":"","hint":""},
{"id":"","label":"Multiplier for extra networks","localized":"","hint":"When adding extra network such as Hypernetwork or Lora to prompt, use this multiplier for it"},
{"id":"","label":"Card width for Extra Networks (px)","localized":"","hint":""},
{"id":"","label":"Card height for Extra Networks (px)","localized":"","hint":""},
{"id":"","label":"Add hypernetwork to prompt","localized":"","hint":""},
{"id":"","label":"Token merging ratio","localized":"","hint":"Enable redundant token merging via tomesd for speed and memory improvements, 0=disabled"},
{"id":"","label":"Token merging ratio for img2img","localized":"","hint":"Enable redundant token merging for img2img via tomesd for speed and memory improvements, 0=disabled"},
{"id":"","label":"Token merging ratio for hires pass","localized":"","hint":"Enable redundant token merging for hires pass via tomesd for speed and memory improvements, 0=disabled"}
{"id":"","label":"Token merging ratio for hires pass","localized":"","hint":"Enable redundant token merging for hires pass via tomesd for speed and memory improvements, 0=disabled"},
{"id":"","label":"Diffusers allow loading from safetensors files","localized":"","hint":"Allow loading of safetensors files as diffuser models"},
{"id":"","label":"Select diffuser pipeline when loading from safetensors","localized":"","hint":""},
{"id":"","label":"Move base model to CPU when using refiner","localized":"","hint":""},
{"id":"","label":"Move refiner model to CPU when not in use","localized":"","hint":""},
{"id":"","label":"Use model EMA weights when possible","localized":"","hint":""},
{"id":"","label":"Generator device","localized":"","hint":""},
{"id":"","label":"Enable sequential CPU offload","localized":"","hint":""},
{"id":"","label":"Enable model CPU offload","localized":"","hint":""},
{"id":"","label":"Enable VAE slicing","localized":"","hint":""},
{"id":"","label":"Enable VAE tiling","localized":"","hint":""},
{"id":"","label":"Enable attention slicing","localized":"","hint":""}
],
"scripts": [
{"id":"","label":"Script","localized":"","hint":""},
@@ -530,7 +575,6 @@
{"id":"","label":"Resize to","localized":"","hint":""},
{"id":"","label":"Resize by","localized":"","hint":""},
{"id":"","label":"Use via API","localized":"","hint":""},
{"id":"","label":"Stable Diffusion checkpoint","localized":"","hint":""},
{"id":"","label":"Styles","localized":"","hint":""},
{"id":"","label":"Put variable parts at start of prompt","localized":"","hint":""},
{"id":"","label":"Use different seed for each picture","localized":"","hint":""},
+3 -2
View File
@@ -29,10 +29,11 @@ async function tooltipHide(e) {
}
async function validateHints(elements, data) {
let original = elements.map(e => e.textContent.trim()).sort((a, b) => a > b)
let original = elements.map(e => e.textContent.toLowerCase().trim()).sort((a, b) => a > b)
original = [...new Set(original)];
console.log('all hints:', original)
console.log('hints-differences', { elements: original.length, hints: data.length });
const current = data.map(e => e.label).sort((a, b) => a > b)
const current = data.map(e => e.label.toLowerCase().trim()).sort((a, b) => a > b)
let missing = [];
for (let i = 0; i < original.length; i++) {
if (!current.includes(original[i])) missing.push(original[i]);
+1 -1
View File
@@ -355,7 +355,7 @@ options_templates.update(options_section(('cuda', "Compute Settings"), {
"cuda_compile_fullgraph": OptionInfo(False, "Model compile fullgraph"),
"cuda_compile_verbose": OptionInfo(False, "Model compile verbose mode"),
"cuda_compile_errors": OptionInfo(True, "Model compile suppress errors"),
"disable_gc": OptionInfo(True, "Disable Torch memory garbage collection on each generation"),
"disable_gc": OptionInfo(True, "Disable Torch memory garbage collection"),
}))
options_templates.update(options_section(('diffusers', "Diffusers Settings"), {