fix for an error caused by skipping initialization, for realsies this time: TypeError: expected str, bytes or os.PathLike object, not NoneType

This commit is contained in:
AUTOMATIC
2023-01-11 18:54:04 +03:00
parent 45a8b758a7
commit 4bd490727e
2 changed files with 33 additions and 39 deletions

View File

@@ -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)