diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-02 17:30:02 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-02 17:30:02 +0000 |
commit | 84dd7e8e2495c4fc2997e97f8267aa831eb90d11 (patch) | |
tree | 5ae26036e512cb665d8fc56b20de3d3b17d39e8d /modules/ui.py | |
parent | 4dbde228ff48dbb105241b1ed25c21ce3f87d182 (diff) | |
download | stable-diffusion-webui-gfx803-84dd7e8e2495c4fc2997e97f8267aa831eb90d11.tar.gz stable-diffusion-webui-gfx803-84dd7e8e2495c4fc2997e97f8267aa831eb90d11.tar.bz2 stable-diffusion-webui-gfx803-84dd7e8e2495c4fc2997e97f8267aa831eb90d11.zip |
error out with a readable message in chwewckpoint merger for incompatible tensor shapes (ie when trying to merge SD1.5 with SD2.0)
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 27cd9ddd..67a51888 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1663,7 +1663,7 @@ def create_ui(): print("Error loading/saving model file:", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)
modules.sd_models.list_models() # to remove the potentially missing models from the list
- return ["Error loading/saving model file. It doesn't exist or the name contains illegal characters"] + [gr.Dropdown.update(choices=modules.sd_models.checkpoint_tiles()) for _ in range(3)]
+ return [f"Error merging checkpoints: {e}"] + [gr.Dropdown.update(choices=modules.sd_models.checkpoint_tiles()) for _ in range(4)]
return results
modelmerger_merge.click(
|