diff --git a/modules/sd_models.py b/modules/sd_models.py index e1b819576..ff834aa6e 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -231,6 +231,8 @@ def move_model(model, device=None, force=False): if model is None or device is None: return + if getattr(model, 'sdnext_ondemand', False) and device == devices.device: # on-demand components onload at their entry points instead of pre-moves + return if hasattr(model, 'pipe'): move_model(model.pipe, device, force)