mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix(video): reset ltx loader cache on unload
This commit is contained in:
@@ -20,6 +20,8 @@ def get_frames(frames: int):
|
||||
|
||||
def load_model(engine: str, model: str):
|
||||
global loaded_model # pylint: disable=global-statement
|
||||
if not shared.sd_loaded:
|
||||
loaded_model = None
|
||||
if loaded_model == model:
|
||||
return
|
||||
if model is None or model == '' or model=='None':
|
||||
|
||||
Reference in New Issue
Block a user