diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-11 15:54:04 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-11 15:54:13 +0000 |
commit | 4bd490727e156ff53107d53416d6b89be86f2a62 (patch) | |
tree | ac73cbf93b797b7d491976b93a50fbef4eec3045 /modules/sd_models.py | |
parent | 45a8b758a7bcb144242aee710dfcd1aedcf30b7f (diff) | |
download | stable-diffusion-webui-gfx803-4bd490727e156ff53107d53416d6b89be86f2a62.tar.gz stable-diffusion-webui-gfx803-4bd490727e156ff53107d53416d6b89be86f2a62.tar.bz2 stable-diffusion-webui-gfx803-4bd490727e156ff53107d53416d6b89be86f2a62.zip |
fix for an error caused by skipping initialization, for realsies this time: TypeError: expected str, bytes or os.PathLike object, not NoneType
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r-- | modules/sd_models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py index 084ba7fa..c466f273 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -334,6 +334,7 @@ def load_model(checkpoint_info=None): timer = Timer()
sd_model = None
+
try:
with sd_disable_initialization.DisableInitialization():
sd_model = instantiate_from_config(sd_config.model)
|