mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-01 20:35:06 +08:00
possible fix for fallback for fast model creation from config, attempt 2
This commit is contained in:
parent
4fdacd31e4
commit
1a23dc32ac
@ -333,6 +333,7 @@ def load_model(checkpoint_info=None):
|
|||||||
|
|
||||||
timer = Timer()
|
timer = Timer()
|
||||||
|
|
||||||
|
sd_model = None
|
||||||
try:
|
try:
|
||||||
with sd_disable_initialization.DisableInitialization():
|
with sd_disable_initialization.DisableInitialization():
|
||||||
sd_model = instantiate_from_config(sd_config.model)
|
sd_model = instantiate_from_config(sd_config.model)
|
||||||
|
Loading…
Reference in New Issue
Block a user