possible fix for fallback for fast model creation from config, attempt 2

This commit is contained in:
AUTOMATIC 2023-01-11 10:34:36 +03:00
parent 4fdacd31e4
commit 1a23dc32ac

View file

@ -333,6 +333,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)