From 1b6ebd95a2e590425ccbe49b962c3028510a7630 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 30 Aug 2024 20:22:22 -0400 Subject: [PATCH] update diffusers --- CHANGELOG.md | 2 ++ extensions-builtin/Lora/network.py | 1 - requirements.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4a961e08..2c938d0f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,8 @@ To use and of the new models, simply select model from *Networks -> Reference* a *note*: Optimum Quanto requires PyTorch 2.4 - new prompt attention mode: **xhinker** which brings support for prompt attention to new models such as FLUX.1 and SD3 to use, enable in *Settings -> Execution -> Prompt attention* +- use [PEFT](https://huggingface.co/docs/peft/main/en/index) for **LoRA** handling on all models other than SD15/SD21/SDXL + this improves LoRA compatibility for SC, SD3, AuraFlow, Flux, etc. **Changes & Fixes...** diff --git a/extensions-builtin/Lora/network.py b/extensions-builtin/Lora/network.py index 5d4b39a12..a0874325f 100644 --- a/extensions-builtin/Lora/network.py +++ b/extensions-builtin/Lora/network.py @@ -24,7 +24,6 @@ class NetworkOnDisk: self.fullname = os.path.splitext(filename[len(shared.cmd_opts.lora_dir):].strip("/"))[0] else: self.fullname = name - print('HERE', self.fullname, self.filename) self.metadata = {} self.is_safetensors = os.path.splitext(filename)[1].lower() == ".safetensors" if self.is_safetensors: diff --git a/requirements.txt b/requirements.txt index 21a2dbed3..abecc4a57 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,7 +27,7 @@ fasteners orjson invisible-watermark pi-heif -diffusers==0.30.1 +diffusers==0.30.2 safetensors==0.4.4 tensordict==0.1.2 peft==0.11.1