Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-06-15 13:03:09 +02:00
parent 5aea60ab71
commit 1a59647b12
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -1,7 +1,6 @@
from dataclasses import dataclass
import sys
import time
import types
import diffusers
import transformers
from modules import errors
+1 -1
View File
@@ -40,7 +40,7 @@ def load_model(selected: models_def.Model):
# shared.sd_model auto-reloads the default checkpoint when model_data.sd_model is None,
# which silently swaps the pipe class behind the name-based cache. Pipe-class mismatch
# is the reliable signal that the cached name no longer maps to the cached object.
log.warning(f'Video load: cached model="{selected.name}" pipe class swapped to {type(shared.sd_model).__name__}; forcing reload')
log.warning(f'Video load: cached model="{selected.name}" cls={type(shared.sd_model).__name__} mismatch forcing reload')
loaded_model = None
if loaded_model == selected.name:
return ''