aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/xyz_grid.py
diff options
context:
space:
mode:
authorbluelovers <codelovers@users.sourceforge.net>2023-04-04 15:42:39 +0000
committerbluelovers <codelovers@users.sourceforge.net>2023-04-09 21:03:02 +0000
commitc84118d70d7c3dd2f741f9e89b9a8a4643f27f98 (patch)
treedb85dbcd14052d2b0d54776fd19971d3c201cc42 /scripts/xyz_grid.py
parent22bcc7be428c94e9408f589966c2040187245d81 (diff)
downloadstable-diffusion-webui-gfx803-c84118d70d7c3dd2f741f9e89b9a8a4643f27f98.tar.gz
stable-diffusion-webui-gfx803-c84118d70d7c3dd2f741f9e89b9a8a4643f27f98.tar.bz2
stable-diffusion-webui-gfx803-c84118d70d7c3dd2f741f9e89b9a8a4643f27f98.zip
feat(xyz): try sort Checkpoint name values
Diffstat (limited to 'scripts/xyz_grid.py')
-rw-r--r--scripts/xyz_grid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py
index 3895a795..8aaee244 100644
--- a/scripts/xyz_grid.py
+++ b/scripts/xyz_grid.py
@@ -211,7 +211,7 @@ axis_options = [
AxisOption("Prompt order", str_permutations, apply_order, format_value=format_value_join_list),
AxisOptionTxt2Img("Sampler", str, apply_sampler, format_value=format_value, confirm=confirm_samplers, choices=lambda: [x.name for x in sd_samplers.samplers]),
AxisOptionImg2Img("Sampler", str, apply_sampler, format_value=format_value, confirm=confirm_samplers, choices=lambda: [x.name for x in sd_samplers.samplers_for_img2img]),
- AxisOption("Checkpoint name", str, apply_checkpoint, format_value=format_value, confirm=confirm_checkpoints, cost=1.0, choices=lambda: list(sd_models.checkpoints_list)),
+ AxisOption("Checkpoint name", str, apply_checkpoint, format_value=format_value, confirm=confirm_checkpoints, cost=1.0, choices=lambda: sorted(sd_models.checkpoints_list, key=str.casefold)),
AxisOption("Sigma Churn", float, apply_field("s_churn")),
AxisOption("Sigma min", float, apply_field("s_tmin")),
AxisOption("Sigma max", float, apply_field("s_tmax")),