diff options
author | MMaker <henrygeorgepennypacker@gmail.com> | 2023-01-04 10:27:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 10:27:52 +0000 |
commit | f49f917cddf1cdc74bc267be873a65417be066d1 (patch) | |
tree | 2033365d4fa5a95eb839cf13f4d5f600e2f9927e | |
parent | 15fd0b8bc4734ea85bca1acfb12b51465ab9817d (diff) | |
parent | 4ec6470a1a2d9430b91266426f995e48f59564e1 (diff) | |
download | stable-diffusion-webui-gfx803-f49f917cddf1cdc74bc267be873a65417be066d1.tar.gz stable-diffusion-webui-gfx803-f49f917cddf1cdc74bc267be873a65417be066d1.tar.bz2 stable-diffusion-webui-gfx803-f49f917cddf1cdc74bc267be873a65417be066d1.zip |
Merge branch 'AUTOMATIC1111:master' into feat/latent-upscale-modes
-rw-r--r-- | modules/api/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 9c670f00..2b1f180c 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -18,7 +18,7 @@ from modules.textual_inversion.textual_inversion import create_embedding, train_ from modules.textual_inversion.preprocess import preprocess from modules.hypernetworks.hypernetwork import create_hypernetwork, train_hypernetwork from PIL import PngImagePlugin,Image -from modules.sd_models import checkpoints_list +from modules.sd_models import checkpoints_list, find_checkpoint_config from modules.realesrgan_model import get_realesrgan_models from modules import devices from typing import List @@ -303,7 +303,7 @@ class Api: return upscalers def get_sd_models(self): - return [{"title":x.title, "model_name":x.model_name, "hash":x.hash, "filename": x.filename, "config": x.config} for x in checkpoints_list.values()] + return [{"title":x.title, "model_name":x.model_name, "hash":x.hash, "filename": x.filename, "config": find_checkpoint_config(x)} for x in checkpoints_list.values()] def get_hypernetworks(self): return [{"name": name, "path": shared.hypernetworks[name]} for name in shared.hypernetworks] |