Compare commits

..
3 Commits
Author SHA1 Message Date
asagi4 4bbf3a895f Release 1.1.2 2024-08-22 21:45:14 +03:00
asagi4 2930f03d6c Make sure that LoRAs are loaded to the correct device 2024-08-22 21:44:49 +03:00
asagi4 42acef7298 Make flux work 2024-08-15 10:15:35 +03:00
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ def encode_prompt(clip, text, default_style="comfy", default_normalization="none
log.warning("Normalization is not supported with perp style weighting. Ignored '%s'", normalization)
return perp_encode(clip, tokens)
if have_advanced_encode and not sculpts:
if "t5xxl" not in tokens and have_advanced_encode and not sculpts:
if "g" in tokens:
embs_l = None
embs_g = None
+2 -2
View File
@@ -173,10 +173,10 @@ def _patch_model(model, forget=False, orig=None, offload_to_cpu=False):
if offload_to_cpu:
saved_offload = model.offload_device
model.offload_device = torch.device("cpu")
log.info("Patching model, cpu_offload=%s", model.offload_device == torch.device("cpu"))
log.info("Patching model, model.load_device=%s model.model.device=%s cpu_offload=%s", model.load_device, model.model.device, model.offload_device == torch.device("cpu"))
if orig:
model.backup = orig.backup
model.patch_model()
model.patch_model(device_to=model.load_device)
if offload_to_cpu:
model.offload_device = saved_offload
if forget:
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-prompt-control"
description = "Nodes for convenient prompt editing, making many common operations prompt-controllable"
version = "1.1.1"
version = "1.1.2"
license = { file = "LICENSE" }
# some lark versions older than 1.1.9 apparently have a bug that breaks things, see https://github.com/asagi4/comfyui-prompt-control/issues/35
dependencies = ["lark >= 1.1.9"]