From c41ec4be468e21d3557129fce02d310837aaf387 Mon Sep 17 00:00:00 2001 From: tim h Date: Sat, 4 Feb 2023 10:34:26 -0600 Subject: [PATCH] puts default scripts into separate file, begins possibility of user-defined script file --- defaultscripts.json | 16 ++++++++ index.html | 9 +---- js/index.js | 86 +++++++++++++---------------------------- userdefinedscripts.json | 6 +++ 4 files changed, 50 insertions(+), 67 deletions(-) create mode 100644 defaultscripts.json create mode 100644 userdefinedscripts.json diff --git a/defaultscripts.json b/defaultscripts.json new file mode 100644 index 0000000..fa6a0c5 --- /dev/null +++ b/defaultscripts.json @@ -0,0 +1,16 @@ +{ + "defaultScripts": { + "Loopback": { + "titleText": "Params:\nloops (int) //def: 8\ndenoising_strength_change_factor (decimal, 0.90-1.10) //def: 0.99", + "scriptValues": "[8, 0.99]" + }, + "Prompt matrix": { + "titleText": "Params:\nput_at_start (bool): expect pipe (|) delimited options at start of prompt //def: false\ndifferent_seeds (bool): use different seeds for each picture //def: false", + "scriptValues": "[false, false]" + }, + "X/Y/Z plot": { + "titleText": "Params:\nx_type (int): index of axis type (see below) //def: 3\nx_values (mixed, str) //def: \"0.00-0.99 [4]\"\ny_type (int) //def: 4\ny_values (mixed, str) //def: \"5-30 [4]\"\nz_type (int) //def: 5\nz_values (mixed, str) //def: \"2.5-12.5 [4]\"\ndraw_legend (bool): return grid of all images //def: false\ninclude_lone_images (bool): return individual images //def: true\ninclude_subgrids (bool) //def: false\nno_fixed_seeds (bool): use different seeds for each picture //def: false\n\nAvailable axis types:\n0: Nothing\n1: Seed\n2: Var. seed\n3: Var. strength\n4: Steps\n5: Hires steps (txt2img only)\n6: CFG Scale\n7: Prompt S/R\n8: Prompt order\n9: Sampler (txt2img only)\n10: Sampler (img2img only)\n11: Checkpoint Name\n12: Sigma Churn\n13: Sigma min\n14: Sigma max\n15: Sigma noise\n16: Eta\n17: Clip skip\n18: Denoising\n19: Hires upscaler (txt2img only)\n20: Cond. Image Mask Weight (img2img only)\n21: VAE\n22: Styles", + "scriptValues": "[3, \"0.00-0.99 [4]\", 4, \"5-30 [4]\", 6, \"2.5-12.5 [4]\", false, true, false, false]" + } + } +} diff --git a/index.html b/index.html index f1130e7..676f451 100644 --- a/index.html +++ b/index.html @@ -371,13 +371,6 @@
@@ -454,7 +447,7 @@ - +