diff options
author | Bernard Maltais <bmaltais@gmail.com> | 2022-09-27 14:29:52 +0000 |
---|---|---|
committer | Bernard Maltais <bmaltais@gmail.com> | 2022-09-27 14:29:52 +0000 |
commit | 0bd8aa937f9172b44de30d158258c51b2174f136 (patch) | |
tree | 034430ec6c885459b37c5238a5b6b84dfebc331b /modules/extras.py | |
parent | ada901ed661a717c44281d640b8fc0a275d4cb48 (diff) | |
download | stable-diffusion-webui-gfx803-0bd8aa937f9172b44de30d158258c51b2174f136.tar.gz stable-diffusion-webui-gfx803-0bd8aa937f9172b44de30d158258c51b2174f136.tar.bz2 stable-diffusion-webui-gfx803-0bd8aa937f9172b44de30d158258c51b2174f136.zip |
Add interpolation method and weight to output filename
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py index 15873204..c4ee2b62 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -186,7 +186,7 @@ def run_modelmerger(modelname_0, modelname_1, interp_method, interp_amount): if 'model' in key and key not in theta_0:
theta_0[key] = theta_1[key]
- output_modelname = 'models/' + modelname_0 + '-' + modelname_1 + '-merged.ckpt'
+ output_modelname = 'models/' + modelname_0 + '-' + modelname_1 + '-' + interp_method.replace(" ", "_") + '-' + str(interp_amount) + '-merged.ckpt'
print(f"Saving to {output_modelname}...")
torch.save(model_0, output_modelname)
|