mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
fix model loading twice in some situations
This commit is contained in:
@@ -414,6 +414,9 @@ class SdModelData:
|
||||
def get_sd_model(self):
|
||||
if self.sd_model is None:
|
||||
with self.lock:
|
||||
if self.sd_model is not None:
|
||||
return self.sd_model
|
||||
|
||||
try:
|
||||
load_model()
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user