sd.py: make sure CLIP is running on gpu when gpu-only is set.

This commit is contained in:
guy 2025-11-16 11:18:23 +00:00
parent 7d6103325e
commit ef4c9589da

View File

@ -125,8 +125,6 @@ class CLIP:
self.patcher.hook_mode = comfy.hooks.EnumHookMode.MinVram
self.patcher.is_clip = True
self.apply_hooks_to_conds = None
if params['device'] == load_device:
model_management.load_models_gpu([self.patcher], force_full_load=True)
self.layer_idx = None
self.use_clip_schedule = False
logging.info("CLIP/text encoder model load device: {}, offload device: {}, current: {}, dtype: {}".format(load_device, offload_device, params['device'], dtype))